View | Details | Raw Unified | Return to bug 15691
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-6 / +12 lines)
Lines 633-647 Link Here
633
          [% END %]
633
          [% END %]
634
          Card number: </label>
634
          Card number: </label>
635
          [% IF minlength_cardnumber == maxlength_cardnumber %]
635
          [% IF minlength_cardnumber == maxlength_cardnumber %]
636
              <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" title="exactly [% minlength_cardnumber %] characters" />
636
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" />
637
                [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]
638
                <div class="hint">Card number must be exactly [% minlength_cardnumber %] characters.</div>
637
          [% ELSIF minlength_cardnumber && maxlength_cardnumber %]
639
          [% ELSIF minlength_cardnumber && maxlength_cardnumber %]
638
              <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" title="between [% minlength_cardnumber %] and [% maxlength_cardnumber %] characters" />
640
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" minlength="[% minlength_cardnumber %]" maxlength="[% maxlength_cardnumber %]" />
641
                [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]
642
                <div class="hint">Card number must be between [% minlength_cardnumber %] and [% maxlength_cardnumber %] characters.</div>
639
          [% ELSIF maxlength_cardnumber %]
643
          [% ELSIF maxlength_cardnumber %]
640
              <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" maxlength="[% maxlength_cardnumber %]" title="up to [% maxlength_cardnumber %] characters" />
644
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" maxlength="[% maxlength_cardnumber %]" />
645
                [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]
646
                <div class="hint">Card number can be up to [% maxlength_cardnumber %] characters.</div>
641
          [% ELSE %]
647
          [% ELSE %]
642
               <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" />
648
                <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber %]" />
649
                [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]
650
                <div class="hint">There is no minimum or maximum character length.</div>
643
          [% END %]
651
          [% END %]
644
          [% IF ( mandatorycardnumber ) %]<span class="required">Required</span>[% END %]
645
        </li>
652
        </li>
646
      [% END %]
653
      [% END %]
647
      [% UNLESS nobranchcode %]
654
      [% UNLESS nobranchcode %]
648
- 

Return to bug 15691