</fieldset>
[% END %]
- [% UNLESS action == 'edit' %]
+ [% UNLESS action == 'edit' || hidden.defined('password') %]
<fieldset class="rows" id="memberentry_password">
- <legend id="contact_legend">Contact information</legend>
- [% UNLESS hidden.defined('password') %]
- <div class="alert alert-info">Your password must be at least [% minpassw %] characters long.
+ <legend id="contact_legend">Password</legend>
+ [% IF Koha.Preference('minPasswordLength') || !mandatory.defined('password') %]
+ <div class="alert alert-info">
+ [% IF Koha.Preference('minPasswordLength') %]
+ <p>Your password must be at least [% Koha.Preference('minPasswordLength') %] characters long.</p>
+ [% END %]
+ [% UNLESS mandatory.defined('password') %]
+ If you do not enter a password a system generated password will be created.
+ [% END %]
+ </div>
+ [% END %]
+
[% IF mandatory.defined('password') %]
- <br>You must enter a password!</div>
<ol>
<li><label for="borrower_password" class="required">Password</label>
<input type="text" name="borrower_password" id="password" />
+ <span class="required">Required</span>
</li>
<li><label for="borrower_password2" class="required">Confirm password</label>
<input type="text" name="borrower_password2" id="password2" />
+ <span class="required">Required</span>
</li>
</ol>
[% ELSE %]
- <br>If you do not enter a password a system generated password will be created</div>
<ol>
<li><label for="borrower_password">Password</label>
<input type="text" name="borrower_password" id="password" />
</li>
</ol>
[% END %]
- [% END %]
</fieldset>
<fieldset class="rows" id="memberentry_captcha">
action => $action,
hidden => $hidden,
mandatory => $mandatory,
- minpassw => C4::Context->preference('minPasswordLength'),
member_titles => GetTitles() || undef,
branches => GetBranchesLoop(),
OPACPatronDetails => C4::Context->preference('OPACPatronDetails'),