Lines 646-678
$(document).ready(function() {
Link Here
|
646 |
<legend id="library_management_lgd">Library management</legend><ol> |
646 |
<legend id="library_management_lgd">Library management</legend><ol> |
647 |
[% UNLESS nocardnumber %] |
647 |
[% UNLESS nocardnumber %] |
648 |
<li> |
648 |
<li> |
649 |
[% IF mandatorycardnumber and not autoMemberNum %] |
649 |
[% IF mandatorycardnumber %] |
650 |
<label for="cardnumber" class="required"> |
650 |
<label for="cardnumber" class="required"> |
651 |
[% ELSE %] |
651 |
[% ELSE %] |
652 |
<label for="cardnumber" class="validated"> |
652 |
<label for="cardnumber" class="validated"> |
653 |
[% END %] |
653 |
[% END %] |
654 |
[% IF autoMemberNum %] |
654 |
Card number: </label> |
655 |
Card number<br>(<u>leave blank for auto calc during registration</u>): </label> |
655 |
|
656 |
[% ELSE %] |
656 |
<!-- NOTE: div.hint closing tag isn't on the same line --> |
657 |
Card number: </label> |
|
|
658 |
[% END %] |
659 |
[% IF minlength_cardnumber == maxlength_cardnumber %] |
657 |
[% IF minlength_cardnumber == maxlength_cardnumber %] |
660 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" /> |
658 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" /> |
661 |
[% IF mandatorycardnumber and not autoMemberNum %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber %] characters.</span> |
659 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber %] characters.</span> |
662 |
<div class="hint">Card number must be exactly [% minlength_cardnumber %] characters.</div> |
660 |
<div class="hint">Card number must be exactly [% minlength_cardnumber %] characters. |
663 |
[% ELSIF minlength_cardnumber && maxlength_cardnumber %] |
661 |
[% ELSIF minlength_cardnumber && maxlength_cardnumber %] |
664 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" /> |
662 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" /> |
665 |
[% IF mandatorycardnumber and not autoMemberNum %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber %] characters.</span> |
663 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber %] characters.</span> |
666 |
<div class="hint">Card number must be between [% minlength_cardnumber %] and [% maxlength_cardnumber %] characters.</div> |
664 |
<div class="hint">Card number must be between [% minlength_cardnumber %] and [% maxlength_cardnumber %] characters. |
667 |
[% ELSIF maxlength_cardnumber %] |
665 |
[% ELSIF maxlength_cardnumber %] |
668 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber %]" /> |
666 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber %]" /> |
669 |
[% IF mandatorycardnumber and not autoMemberNum %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber %] characters.</span> |
667 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %]<span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber %] characters.</span> |
670 |
<div class="hint">Card number can be up to [% maxlength_cardnumber %] characters.</div> |
668 |
<div class="hint">Card number can be up to [% maxlength_cardnumber %] characters. |
671 |
[% ELSE %] |
669 |
[% ELSE %] |
672 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" /> |
670 |
<input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" /> |
673 |
[% IF mandatorycardnumber and not autoMemberNum %]<span class="required">Required</span>[% END %] |
671 |
[% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] |
674 |
<div class="hint">There is no minimum or maximum character length.</div> |
672 |
<div class="hint">There is no minimum or maximum character length. |
|
|
673 |
[% END %] |
674 |
[% IF autoMemberNum %] |
675 |
[% IF mandatorycardnumber %] |
676 |
<br/><span class="error">AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField : auto calc has been disabled.</span> |
677 |
[% ELSE %] |
678 |
<br/>Leave empty for auto calc during registration |
679 |
[% END %] |
675 |
[% END %] |
680 |
[% END %] |
|
|
681 |
</div><!--/hint div --> |
676 |
</li> |
682 |
</li> |
677 |
[% END %] |
683 |
[% END %] |
678 |
[% UNLESS nobranchcode %] |
684 |
[% UNLESS nobranchcode %] |
679 |
- |
|
|