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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-356 / +356 lines)
Lines 65-71 Link Here
65
                [% END %])
65
                [% END %])
66
            </strong>
66
            </strong>
67
        [% END %]
67
        [% END %]
68
    </div>
68
    </div> <!-- /#breadcrumbs -->
69
69
70
    <div class="main container-fluid">
70
    <div class="main container-fluid">
71
        <div class="row">
71
        <div class="row">
Lines 234-240 Link Here
234
                            [% END %]
234
                            [% END %]
235
235
236
                            [% IF ( step_1 ) %]
236
                            [% IF ( step_1 ) %]
237
                                [%UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
237
                                [% UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %]
238
                                    <fieldset class="rows" id="memberentry_identity">
238
                                    <fieldset class="rows" id="memberentry_identity">
239
                                        <legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
239
                                        <legend id="identity_lgd">[% IF ( I ) %]Organization [% ELSE %]Patron [% END %]identity</legend>
240
                                        <ol>
240
                                        <ol>
Lines 262-270 Link Here
262
                                                                <span class="required">Required</span>
262
                                                                <span class="required">Required</span>
263
                                                            [% END %]
263
                                                            [% END %]
264
                                                        </li>
264
                                                        </li>
265
                                                    [% END %]
265
                                                    [% END # /IF Koha.Preference('BorrowersTitles') %]
266
                                                [% END %]
266
                                                [% END # /UNLESS notitle %]
267
                                            [% END %]
267
                                            [% END # /UNLESS ( I ) %]
268
268
269
                                            [% UNLESS nosurname %]
269
                                            [% UNLESS nosurname %]
270
                                                <li>
270
                                                <li>
Lines 290-296 Link Here
290
                                                        <span class="required">Required</span>
290
                                                        <span class="required">Required</span>
291
                                                    [% END %]
291
                                                    [% END %]
292
                                                </li>
292
                                                </li>
293
                                            [% END %]
293
                                            [% END # /UNLESS nosurname %]
294
294
295
                                            [% UNLESS ( I ) %]
295
                                            [% UNLESS ( I ) %]
296
                                                [% UNLESS nofirstname %]
296
                                                [% UNLESS nofirstname %]
Lines 307-313 Link Here
307
                                                            <span class="required">Required</span>
307
                                                            <span class="required">Required</span>
308
                                                        [% END %]
308
                                                        [% END %]
309
                                                    </li>
309
                                                    </li>
310
                                                [% END %]
310
                                                [% END #/UNLESS nofirstname %]
311
                                                [% UNLESS nodateofbirth %]
311
                                                [% UNLESS nodateofbirth %]
312
                                                    <li>
312
                                                    <li>
313
                                                        [% IF ( mandatorydateofbirth ) %]
313
                                                        [% IF ( mandatorydateofbirth ) %]
Lines 326-332 Link Here
326
                                                        [% END %]
326
                                                        [% END %]
327
                                                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
327
                                                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
328
                                                    </li>
328
                                                    </li>
329
                                                [% END %]
329
                                                [% END # /UNLESS nodateofbirth %]
330
                                                [% UNLESS noinitials %]
330
                                                [% UNLESS noinitials %]
331
                                                    <li>
331
                                                    <li>
332
                                                        [% IF ( mandatoryinitials ) %]
332
                                                        [% IF ( mandatoryinitials ) %]
Lines 341-348 Link Here
341
                                                            <span class="required">Required</span>
341
                                                            <span class="required">Required</span>
342
                                                        [% END %]
342
                                                        [% END %]
343
                                                    </li>
343
                                                    </li>
344
                                                [% END %]
344
                                                [% END # /UNLESS noinitials %]
345
                                            [% END %]
345
                                            [% END #/UNLESS ( I ) %]
346
                                            [% UNLESS noothernames %]
346
                                            [% UNLESS noothernames %]
347
                                                <li>
347
                                                <li>
348
                                                    [% IF ( mandatoryothernames ) %]
348
                                                    [% IF ( mandatoryothernames ) %]
Lines 358-364 Link Here
358
                                                    [% END %]
358
                                                    [% END %]
359
                                                    [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
359
                                                    [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %]
360
                                                </li>
360
                                                </li>
361
                                            [% END %]
361
                                            [% END #/UNLESS noothernames %]
362
362
363
                                            [% UNLESS ( I ) %]
363
                                            [% UNLESS ( I ) %]
364
                                                [% UNLESS nosex %]
364
                                                [% UNLESS nosex %]
Lines 383-394 Link Here
383
                                                            <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
383
                                                            <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" />
384
                                                            <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
384
                                                            <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" />
385
                                                            <label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
385
                                                            <label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
386
                                                        [% END %]
386
                                                        [% END # /UNLESS ( opduplicate )%]
387
                                                    </li>
387
                                                    </li>
388
                                                [% END %]
388
                                                [% END # /UNLESS nosex %]
389
                                            [% END %]
389
                                            [% END # /UNLESS ( I ) %]
390
                                        </ol>
390
                                        </ol>
391
                                    </fieldset>
391
                                    </fieldset> <!-- /#memberentry_identity -->
392
                                [% END # hide fieldset %]
392
                                [% END # hide fieldset %]
393
393
394
                                [% IF show_guarantor || guarantor %]
394
                                [% IF show_guarantor || guarantor %]
Lines 443-483 Link Here
443
                                                        </ol>
443
                                                        </ol>
444
                                                    </fieldset>
444
                                                    </fieldset>
445
                                                [% END # END relationships foreach %]
445
                                                [% END # END relationships foreach %]
446
                                        </span>
446
                                            </span> <!-- #/guarantor_relationships -->
447
447
448
                                        <fieldset class="rows guarantor" id="guarantor_template">
448
                                            <fieldset class="rows guarantor" id="guarantor_template">
449
                                            <ol>
449
                                                <ol>
450
                                                <li class="guarantor-details" data-borrowernumber="0">
450
                                                    <li class="guarantor-details" data-borrowernumber="0">
451
                                                    <span class="label">Patron #:</span>
451
                                                        <span class="label">Patron #:</span>
452
                                                    <span class="new_guarantor_id_text"></span>
452
                                                        <span class="new_guarantor_id_text"></span>
453
                                                    <input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value=""/>
453
                                                        <input type="hidden" class="new_guarantor_id" name="new_guarantor_id" value=""/>
454
                                                </li>
454
                                                    </li>
455
455
456
                                                <li>
456
                                                    <li>
457
                                                    <label for="guarantor_surname">Surname: </label>
457
                                                        <label for="guarantor_surname">Surname: </label>
458
                                                    <span class="new_guarantor_surname_text"></span>
458
                                                        <span class="new_guarantor_surname_text"></span>
459
                                                </li>
459
                                                    </li>
460
460
461
                                                <li>
461
                                                    <li>
462
                                                    <label for="guarantor_firstname">First name: </label>
462
                                                        <label for="guarantor_firstname">First name: </label>
463
                                                    <span class="new_guarantor_firstname_text"></span>
463
                                                        <span class="new_guarantor_firstname_text"></span>
464
                                                </li>
464
                                                    </li>
465
465
466
                                                <li>
466
                                                    <li>
467
                                                    <label for="guarantor_relationship">Relationship: </label>
467
                                                        <label for="guarantor_relationship">Relationship: </label>
468
                                                    <select class="new_guarantor_relationship" name="new_guarantor_relationship">
468
                                                        <select class="new_guarantor_relationship" name="new_guarantor_relationship">
469
                                                        [% FOREACH pr IN possible_relationships.split('\|') %]
469
                                                            [% FOREACH pr IN possible_relationships.split('\|') %]
470
                                                            <option value="[% pr | html %]">[% pr | html %]</option>
470
                                                                <option value="[% pr | html %]">[% pr | html %]</option>
471
                                                        [% END %]
471
                                                            [% END %]
472
                                                    </select>
472
                                                        </select>
473
                                                </li>
473
                                                    </li>
474
474
475
                                                <li>
475
                                                    <li>
476
                                                    <label for="guarantor_cancel">&nbsp;</label>
476
                                                        <label for="guarantor_cancel">&nbsp;</label>
477
                                                    <span><a href="#" class="guarantor_cancel">Remove</a></span>
477
                                                        <span><a href="#" class="guarantor_cancel">Remove</a></span>
478
                                                </li>
478
                                                    </li>
479
                                            </ol>
479
                                                </ol>
480
                                        </fieldset>
480
                                            </fieldset>
481
481
482
                                            <ol>
482
                                            <ol>
483
                                                <input type="hidden" id="guarantor_id" value="" />
483
                                                <input type="hidden" id="guarantor_id" value="" />
Lines 519-534 Link Here
519
                                                    </li>
519
                                                    </li>
520
                                                [% END %]
520
                                                [% END %]
521
                                            </ol>
521
                                            </ol>
522
                                        </fieldset>
522
                                        </fieldset> <!-- /#memberentry_guarantor -->
523
                                    </span>
523
                                    </span> <!-- #/memberentry_guarantor_anchor -->
524
                                [% END %]
524
                                [% END # /IF show_guarantor || guarantor  %]
525
525
526
526
527
                                [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
527
                                [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %]
528
                                    [% IF Koha.Preference( 'AddressFormat' ) %]
528
                                    [% IF Koha.Preference( 'AddressFormat' ) %]
529
                                        [% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
529
                                        [% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
530
                                    [% END %]
530
                                    [% END %]
531
                                [% END # nostreet && nocity etc group%]
531
                                [% END # /UNLESS nostreet && nocity etc group%]
532
532
533
                                [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
533
                                [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %]
534
                                    <fieldset class="rows" id="memberentry_contact">
534
                                    <fieldset class="rows" id="memberentry_contact">
Lines 549-555 Link Here
549
                                                    [% END %]
549
                                                    [% END %]
550
                                                    <div class="hint">Non-patron guarantor surname</div>
550
                                                    <div class="hint">Non-patron guarantor surname</div>
551
                                                </li>
551
                                                </li>
552
                                            [% END %]
552
                                            [% END # /UNLESS nocontactname %]
553
553
554
                                            [% UNLESS nocontactfirstname %]
554
                                            [% UNLESS nocontactfirstname %]
555
                                                <li>
555
                                                <li>
Lines 566-572 Link Here
566
                                                    [% END %]
566
                                                    [% END %]
567
                                                    <div class="hint">Non-patron guarantor first name</div>
567
                                                    <div class="hint">Non-patron guarantor first name</div>
568
                                                </li>
568
                                                </li>
569
                                            [% END %]
569
                                            [% END # /UNLESS noaltcontactfirstname %]
570
570
571
                                            [% UNLESS norelationship %]
571
                                            [% UNLESS norelationship %]
572
                                                [% IF possible_relationships %]
572
                                                [% IF possible_relationships %]
Lines 583-590 Link Here
583
                                                            [% END %]
583
                                                            [% END %]
584
                                                        </select>
584
                                                        </select>
585
                                                    </li>
585
                                                    </li>
586
                                                [% END %]
586
                                                [% END #/IF possible_relationships %]
587
                                            [% END %]
587
                                            [% END # /UNLESS norelationship %]
588
588
589
                                            [% UNLESS nophone %]
589
                                            [% UNLESS nophone %]
590
                                                <li>
590
                                                <li>
Lines 601-607 Link Here
601
                                                    [% END %]
601
                                                    [% END %]
602
                                                    <div class="hint">Shows on transit slips</div>
602
                                                    <div class="hint">Shows on transit slips</div>
603
                                                </li>
603
                                                </li>
604
                                            [% END %]
604
                                            [% END # /UNLESS nophone %]
605
605
606
                                            [% UNLESS nophonepro %]
606
                                            [% UNLESS nophonepro %]
607
                                                <li>
607
                                                <li>
Lines 617-623 Link Here
617
                                                        <span class="required">Required</span>
617
                                                        <span class="required">Required</span>
618
                                                    [% END %]
618
                                                    [% END %]
619
                                                </li>
619
                                                </li>
620
                                            [% END %]
620
                                            [% END # /UNLESS nophonepro %]
621
621
622
                                            [% UNLESS nomobile %]
622
                                            [% UNLESS nomobile %]
623
                                                <li>
623
                                                <li>
Lines 633-639 Link Here
633
                                                        <span class="required">Required</span>
633
                                                        <span class="required">Required</span>
634
                                                    [% END %]
634
                                                    [% END %]
635
                                                </li>
635
                                                </li>
636
                                            [% END %]
636
                                            [% END # /UNLESS nomobile %]
637
637
638
                                            [% UNLESS noemail %]
638
                                            [% UNLESS noemail %]
639
                                                <li>
639
                                                <li>
Lines 650-656 Link Here
650
                                                    [% END %]
650
                                                    [% END %]
651
                                                    <div class="hint">Shows on transit slips</div>
651
                                                    <div class="hint">Shows on transit slips</div>
652
                                                </li>
652
                                                </li>
653
                                            [% END %]
653
                                            [% END #/UNLESS noemail %]
654
654
655
                                            [% UNLESS noemailpro %]
655
                                            [% UNLESS noemailpro %]
656
                                                <li>
656
                                                <li>
Lines 666-672 Link Here
666
                                                        <span class="required">Required</span>
666
                                                        <span class="required">Required</span>
667
                                                    [% END %]
667
                                                    [% END %]
668
                                                </li>
668
                                                </li>
669
                                            [% END %]
669
                                            [% END # /UNLESS noemailpro %]
670
670
671
                                            [% UNLESS nofax %]
671
                                            [% UNLESS nofax %]
672
                                                <li>
672
                                                <li>
Lines 682-694 Link Here
682
                                                        <span class="required">Required</span>
682
                                                        <span class="required">Required</span>
683
                                                    [% END %]
683
                                                    [% END %]
684
                                                </li>
684
                                                </li>
685
                                            [% END %]
685
                                            [% END #/UNLESS nofax %]
686
                                        </ol>
686
                                        </ol>
687
                                    </fieldset>
687
                                    </fieldset> <!-- /#memberentry_contact -->
688
                                [% END # hide fieldset %]
688
                                [% END # hide fieldset %]
689
689
690
                                <!-- ************************ STEP_1 *********************** -->
690
                                <!-- ************************ STEP_1 *********************** -->
691
                            [% END %]
691
                            [% END # /IF ( step_1 ) %]
692
692
693
                            [% IF ( step_6 ) %]
693
                            [% IF ( step_6 ) %]
694
                                [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
694
                                [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %]
Lines 699-705 Link Here
699
                                        [% INCLUDE 'member-alt-address-style-us.inc' %]
699
                                        [% INCLUDE 'member-alt-address-style-us.inc' %]
700
                                 [% END %]
700
                                 [% END %]
701
                                [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
701
                                [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %]
702
                            [% END %]
702
                            [% END # /IF ( step_6 ) %]
703
703
704
                            [% IF ( step_2 ) %]
704
                            [% IF ( step_2 ) %]
705
                                [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
705
                                [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %]
Lines 710-771 Link Here
710
                                            [% INCLUDE 'member-alt-contact-style-us.inc' %]
710
                                            [% INCLUDE 'member-alt-contact-style-us.inc' %]
711
                                    [% END %]
711
                                    [% END %]
712
                                [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
712
                                [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %]
713
                            [% END %]
713
                            [% END # /IF ( step_2 ) %]
714
714
715
                            [% IF ( step_3 ) %]
715
                            [% IF ( step_3 ) %]
716
                                [% SET autoMemberNum = Koha.Preference('autoMemberNum') %]
716
                                [% SET autoMemberNum = Koha.Preference('autoMemberNum') %]
717
                                    <fieldset class="rows" id="memberentry_library_management">
717
                                <fieldset class="rows" id="memberentry_library_management">
718
                                        <legend id="library_management_lgd">Library management</legend>
718
                                    <legend id="library_management_lgd">Library management</legend>
719
                                        <ol>
719
                                    <ol>
720
                                            [% UNLESS nocardnumber %]
720
                                        [% UNLESS nocardnumber %]
721
                                                <li>
721
                                            <li>
722
                                                [% IF mandatorycardnumber %]
723
                                                    <label for="cardnumber" class="required">
724
                                                [% ELSE %]
725
                                                    <label for="cardnumber" class="validated">
726
                                                [% END %]
727
                                                    Card number:
728
                                                </label>
729
730
                                                <!-- NOTE: div.hint closing tag isn't on the same line -->
731
                                                [% IF minlength_cardnumber == maxlength_cardnumber %]
732
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
722
                                                    [% IF mandatorycardnumber %]
733
                                                    [% IF mandatorycardnumber %]
723
                                                        <label for="cardnumber" class="required">
734
                                                        <span class="required">Required</span>
724
                                                    [% ELSE %]
725
                                                        <label for="cardnumber" class="validated">
726
                                                    [% END %]
735
                                                    [% END %]
727
                                                        Card number:
736
                                                    <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
728
                                                    </label>
737
                                                    <div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters.
729
738
                                                [% ELSIF minlength_cardnumber && maxlength_cardnumber %]
730
                                                    <!-- NOTE: div.hint closing tag isn't on the same line -->
739
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
731
                                                    [% IF minlength_cardnumber == maxlength_cardnumber %]
740
                                                    [% IF mandatorycardnumber %]
732
                                                        <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
741
                                                        <span class="required">Required</span>
733
                                                        [% IF mandatorycardnumber %]
734
                                                            <span class="required">Required</span>
735
                                                        [% END %]
736
                                                        <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
737
                                                        <div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters.
738
                                                    [% ELSIF minlength_cardnumber && maxlength_cardnumber %]
739
                                                        <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
740
                                                        [% IF mandatorycardnumber %]
741
                                                            <span class="required">Required</span>
742
                                                        [% END %]
743
                                                        <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
744
                                                        <div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters.
745
                                                    [% ELSIF maxlength_cardnumber %]
746
                                                        <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
747
                                                        [% IF mandatorycardnumber %]
748
                                                            <span class="required">Required</span>
749
                                                        [% END %]
750
                                                        <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
751
                                                        <div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters.
752
                                                    [% ELSE %]
753
                                                        <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" />
754
                                                        [% IF mandatorycardnumber %]
755
                                                            <span class="required">Required</span>
756
                                                        [% END %]
757
                                                        <div class="hint">There is no minimum or maximum character length.
758
                                                    [% END %]
742
                                                    [% END %]
759
                                                    [% IF autoMemberNum %]
743
                                                    <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
760
                                                        [% IF mandatorycardnumber %]
744
                                                    <div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters.
761
                                                            <br/><span class="error">AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField: auto calc has been disabled.</span>
745
                                                [% ELSIF maxlength_cardnumber %]
762
                                                        [% ELSE %]
746
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
763
                                                            <br/>Leave blank for auto calc during registration
747
                                                    [% IF mandatorycardnumber %]
764
                                                        [% END %]
748
                                                        <span class="required">Required</span>
749
                                                    [% END %]
750
                                                    <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
751
                                                    <div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters.
752
                                                [% ELSE %]
753
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" />
754
                                                    [% IF mandatorycardnumber %]
755
                                                        <span class="required">Required</span>
756
                                                    [% END %]
757
                                                    <div class="hint">There is no minimum or maximum character length.
758
                                                [% END %]
759
                                                [% IF autoMemberNum %]
760
                                                    [% IF mandatorycardnumber %]
761
                                                        <br/><span class="error">AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField: auto calc has been disabled.</span>
762
                                                    [% ELSE %]
763
                                                        <br/>Leave blank for auto calc during registration
765
                                                    [% END %]
764
                                                    [% END %]
766
                                                </div><!--/hint div -->
765
                                                [% END %]
766
                                                </div><!--/div.hint -->
767
                                            </li>
767
                                            </li>
768
                                        [% END %]
768
                                        [% END # /UNLESS nocardnumber %]
769
769
770
                                        [% UNLESS nobranchcode %]
770
                                        [% UNLESS nobranchcode %]
771
                                            <li>
771
                                            <li>
Lines 798-805 Link Here
798
                                                        [% IF ( loop.last ) %]
798
                                                        [% IF ( loop.last ) %]
799
                                                            </optgroup>
799
                                                            </optgroup>
800
                                                        [% END %]
800
                                                        [% END %]
801
                                                    [% END %]
801
                                                    [% END # /FOREACH categoryloo %]
802
                                                [% END %]
802
                                                [% END # /FOREACH typeloo %]
803
                                            </select>
803
                                            </select>
804
                                            <span class="required">Required</span>
804
                                            <span class="required">Required</span>
805
                                        </li>
805
                                        </li>
Lines 818-824 Link Here
818
                                                    <span class="required">Required</span>
818
                                                    <span class="required">Required</span>
819
                                                [% END %]
819
                                                [% END %]
820
                                            </li>
820
                                            </li>
821
                                        [% END %]
821
                                        [% END # /UNLESS nosort1 %]
822
822
823
                                        [% UNLESS nosort2 %]
823
                                        [% UNLESS nosort2 %]
824
                                            <li>
824
                                            <li>
Lines 834-840 Link Here
834
                                                    <span class="required">Required</span>
834
                                                    <span class="required">Required</span>
835
                                                [% END %]
835
                                                [% END %]
836
                                            </li>
836
                                            </li>
837
                                        [% END %]
837
                                        [% END # /UNLESS nosort2 %]
838
838
839
                                        [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
839
                                        [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
840
                                            <li>
840
                                            <li>
Lines 855-861 Link Here
855
                                                    [% END %]
855
                                                    [% END %]
856
                                                </select>
856
                                                </select>
857
                                            </li>
857
                                            </li>
858
                                        [% END %]
858
                                        [% END # /IF ( Koha.Preference('CheckPrevCheckout') %]
859
859
860
                                        [% IF Koha.Preference('TranslateNotices') %]
860
                                        [% IF Koha.Preference('TranslateNotices') %]
861
                                            <li>
861
                                            <li>
Lines 876-889 Link Here
876
                                                                [% ELSE %]
876
                                                                [% ELSE %]
877
                                                                    <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
877
                                                                    <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
878
                                                                [% END %]
878
                                                                [% END %]
879
                                                            [% END %]
879
                                                            [% END # /IF language.plural %]
880
                                                        [% END %]
880
                                                        [% END # /FOR sublanguage %]
881
                                                    [% END %]
881
                                                    [% END #/FOR language %]
882
                                                </select>
882
                                                </select> <!-- /#lang -->
883
                                            </li>
883
                                            </li>
884
                                        [% END %]
884
                                        [% END #/IF Koha.Preference('TranslateNotices') %]
885
                                    </ol>
885
                                    </ol>
886
                                </fieldset>
886
                                </fieldset> <!-- /#memberentry_library_management -->
887
887
888
                                [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
888
                                [% UNLESS nodateenrolled &&  noopacnote && noborrowernotes %]
889
                                    <fieldset class="rows" id="memberentry_subscription">
889
                                    <fieldset class="rows" id="memberentry_subscription">
Lines 910-916 Link Here
910
                                                [% END %]
910
                                                [% END %]
911
                                                <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
911
                                                <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
912
                                            </li>
912
                                            </li>
913
                                        [% END %]
913
                                        [% END # /UNLESS nodateenrolled %]
914
914
915
                                        [% UNLESS nodateexpiry %]
915
                                        [% UNLESS nodateexpiry %]
916
                                            <li>
916
                                            <li>
Lines 936-942 Link Here
936
                                                    [% ELSE %]
936
                                                    [% ELSE %]
937
                                                        <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html %]" class="datepickerto" />
937
                                                        <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html %]" class="datepickerto" />
938
                                                    [% END %]
938
                                                    [% END %]
939
                                                [% END %]
939
                                                [% END # /IF ( dateformat == "metric" ) %]
940
                                                [% IF ( mandatorydateexpiry ) %]
940
                                                [% IF ( mandatorydateexpiry ) %]
941
                                                    <span class="required">Required</span>
941
                                                    <span class="required">Required</span>
942
                                                [% END %]
942
                                                [% END %]
Lines 961-967 Link Here
961
                                                        <span class="required">Required</span>
961
                                                        <span class="required">Required</span>
962
                                                    [% END %]
962
                                                    [% END %]
963
                                                </li>
963
                                                </li>
964
                                            [% END %]
964
                                            [% END # /UNLESS noopacnote %]
965
965
966
                                            [% UNLESS noborrowernotes %]
966
                                            [% UNLESS noborrowernotes %]
967
                                                <li>
967
                                                <li>
Lines 978-1246 Link Here
978
                                                        <span class="required">Required</span>
978
                                                        <span class="required">Required</span>
979
                                                    [% END %]
979
                                                    [% END %]
980
                                                </li>
980
                                                </li>
981
                                            [% END %]
981
                                            [% END # /UNLESS noborrowernotes %]
982
                                        </ol>
982
                                        </ol>
983
                                    </fieldset>
983
                                    </fieldset> <!-- /#memberentry_subscription -->
984
                                [% END # hide fieldset %]
984
                                [% END # hide fieldset %]
985
985
986
                                [% UNLESS nouserid && nopassword %]
986
                                [% UNLESS nouserid && nopassword %]
987
                                    <fieldset class="rows" id="memberentry_userid">
987
                                    <fieldset class="rows" id="memberentry_userid">
988
                                        <legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol>
988
                                        <legend id="opac_staff_login_lgd">OPAC/Staff login</legend>
989
                                        [% UNLESS nouserid %]
989
                                        <ol>
990
                                            <li>
990
                                            [% UNLESS nouserid %]
991
                                                [% IF ( mandatoryuserid ) %]
991
                                                <li>
992
                                                    <label for="userid" class="required">
992
                                                    [% IF ( mandatoryuserid ) %]
993
                                                [% ELSE %]
993
                                                        <label for="userid" class="required">
994
                                                    <label for="userid">
995
                                                [% END %]
996
                                                    Username:
997
                                                </label>
998
999
                                                [% IF ( NoUpdateLogin ) %]
1000
                                                    [% IF ( opduplicate ) %]
1001
                                                        <input type="text" id="userid" name="userid" size="20" disabled="disabled" />
1002
                                                    [% ELSE %]
1003
                                                        <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid | html %]" />
1004
                                                    [% END %]
1005
                                                [% ELSE %]
1006
                                                    [% IF ( opduplicate ) %]
1007
                                                        <input type="text" id="userid" name="userid" size="20" value="" />
1008
                                                    [% ELSE %]
994
                                                    [% ELSE %]
1009
                                                        <input type="text" id="userid" name="userid" size="20" value="[% userid | html %]" />
995
                                                        <label for="userid">
1010
                                                    [% END %]
996
                                                    [% END %]
1011
                                                [% END %]
997
                                                        Username:
1012
998
                                                    </label>
1013
                                                [%# Dummy input to avoid Firefox from using userid/password saved for authentication %]
1014
                                                <input type="text" disabled="disabled" style="display:none" />
1015
1016
                                                [% IF ( mandatoryuserid ) %]
1017
                                                    <span class="required">Required</span>
1018
                                                [% END %]
1019
                                            </li>
1020
                                        [% END %]
1021
999
1022
                                        [% UNLESS nopassword %]
1023
                                            <li>
1024
                                                [% IF ( mandatorypassword ) %]
1025
                                                    <label for="password" class="required">
1026
                                                [% ELSE %]
1027
                                                    <label for="password">
1028
                                                [% END %]
1029
                                                    Password:
1030
                                                </label>
1031
                                                [% IF ( opadd ) %]
1032
                                                    [% IF ( NoUpdateLogin ) %]
1000
                                                    [% IF ( NoUpdateLogin ) %]
1033
                                                        [% IF ( opduplicate ) %]
1001
                                                        [% IF ( opduplicate ) %]
1034
                                                            <input type="password" id="password" name="password" size="20"  disabled="disabled" />
1002
                                                            <input type="text" id="userid" name="userid" size="20" disabled="disabled" />
1035
                                                        [% ELSE %]
1003
                                                        [% ELSE %]
1036
                                                            <input type="password" id="password" name="password" size="20"  disabled="disabled" value="[% password | html %]" />
1004
                                                            <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid | html %]" />
1037
                                                        [% END %]
1005
                                                        [% END %]
1038
                                                    [% ELSE %]
1006
                                                    [% ELSE %]
1039
                                                        [% IF ( opduplicate ) %]
1007
                                                        [% IF ( opduplicate ) %]
1040
                                                            <input type="password" id="password" name="password" size="20" />
1008
                                                            <input type="text" id="userid" name="userid" size="20" value="" />
1041
                                                        [% ELSE %]
1009
                                                        [% ELSE %]
1042
                                                            <input type="password" id="password" name="password" size="20" value="[% password | html %]" />
1010
                                                            <input type="text" id="userid" name="userid" size="20" value="[% userid | html %]" />
1043
                                                        [% END %]
1011
                                                        [% END %]
1012
                                                    [% END # /IF ( NoUpdateLogin ) %]
1013
1014
                                                    [%# Dummy input to avoid Firefox from using userid/password saved for authentication %]
1015
                                                    <input type="text" disabled="disabled" style="display:none" />
1016
1017
                                                    [% IF ( mandatoryuserid ) %]
1018
                                                        <span class="required">Required</span>
1044
                                                    [% END %]
1019
                                                    [% END %]
1045
                                                [% ELSE %]
1020
                                                </li>
1021
                                            [% END # /UNLESS nouserid %]
1046
1022
1047
                                                    [% IF ( password ) %]
1023
                                            [% UNLESS nopassword %]
1024
                                                <li>
1025
                                                    [% IF ( mandatorypassword ) %]
1026
                                                        <label for="password" class="required">
1027
                                                    [% ELSE %]
1028
                                                        <label for="password">
1029
                                                    [% END %]
1030
                                                        Password:
1031
                                                    </label>
1032
                                                    [% IF ( opadd ) %]
1048
                                                        [% IF ( NoUpdateLogin ) %]
1033
                                                        [% IF ( NoUpdateLogin ) %]
1049
                                                            <input type="password" id="password" name="password" size="20"  disabled="disabled" value="****" />
1034
                                                            [% IF ( opduplicate ) %]
1035
                                                                <input type="password" id="password" name="password" size="20"  disabled="disabled" />
1036
                                                            [% ELSE %]
1037
                                                                <input type="password" id="password" name="password" size="20"  disabled="disabled" value="[% password | html %]" />
1038
                                                            [% END %]
1050
                                                        [% ELSE %]
1039
                                                        [% ELSE %]
1051
                                                            [% IF ( opduplicate ) %]
1040
                                                            [% IF ( opduplicate ) %]
1052
                                                                <input type="password" id="password" name="password" size="20" />
1041
                                                                <input type="password" id="password" name="password" size="20" />
1053
                                                            [% ELSE %]
1042
                                                            [% ELSE %]
1054
                                                                <input type="password" id="password" name="password" size="20" value="****" />
1043
                                                                <input type="password" id="password" name="password" size="20" value="[% password | html %]" />
1044
                                                            [% END %]
1045
                                                        [% END # /IF ( NoUpdateLogin ) %]
1046
                                                    [% ELSE # IF ( opadd ) %]
1047
1048
                                                        [% IF ( password ) %]
1049
                                                            [% IF ( NoUpdateLogin ) %]
1050
                                                                <input type="password" id="password" name="password" size="20"  disabled="disabled" value="****" />
1051
                                                            [% ELSE %]
1052
                                                                [% IF ( opduplicate ) %]
1053
                                                                    <input type="password" id="password" name="password" size="20" />
1054
                                                                [% ELSE %]
1055
                                                                    <input type="password" id="password" name="password" size="20" value="****" />
1056
                                                                [% END %]
1055
                                                            [% END %]
1057
                                                            [% END %]
1056
                                                        [% END %]
1057
                                                    [% ELSE %]
1058
                                                        [% IF ( NoUpdateLogin ) %]
1059
                                                            <input type="password" id="password" name="password" size="20"  disabled="disabled" value="" />
1060
                                                        [% ELSE %]
1058
                                                        [% ELSE %]
1061
                                                            <input type="password" id="password" name="password" size="20" value="" />
1059
                                                            [% IF ( NoUpdateLogin ) %]
1062
                                                        [% END %]
1060
                                                                <input type="password" id="password" name="password" size="20"  disabled="disabled" value="" />
1061
                                                            [% ELSE %]
1062
                                                                <input type="password" id="password" name="password" size="20" value="" />
1063
                                                            [% END %]
1064
                                                        [% END # /IF ( password ) %]
1065
                                                    [% END # /IF ( opadd )  %]
1066
                                                    [% IF ( mandatorypassword ) %]
1067
                                                        <span class="required">Required</span>
1063
                                                    [% END %]
1068
                                                    [% END %]
1064
                                                [% END %]
1069
                                                    [% IF ( ERROR_password_too_short ) %]
1065
                                                [% IF ( mandatorypassword ) %]
1070
                                                        <span class="required">Password is too short</span>
1066
                                                    <span class="required">Required</span>
1071
                                                    [% END %]
1067
                                                [% END %]
1072
                                                    [% IF ( ERROR_password_too_weak ) %]
1068
                                                [% IF ( ERROR_password_too_short ) %]
1073
                                                        <span class="required">Password is too weak</span>
1069
                                                    <span class="required">Password is too short</span>
1074
                                                    [% END %]
1070
                                                [% END %]
1075
                                                    [% IF ( ERROR_password_has_whitespaces ) %]
1071
                                                [% IF ( ERROR_password_too_weak ) %]
1076
                                                        <span class="required">Password has leading or trailing whitespaces</span>
1072
                                                    <span class="required">Password is too weak</span>
1077
                                                    [% END %]
1073
                                                [% END %]
1078
                                                    <div class="hint">Minimum password length: [% minPasswordLength | html %]</div>
1074
                                                [% IF ( ERROR_password_has_whitespaces ) %]
1079
                                                </li>
1075
                                                    <span class="required">Password has leading or trailing whitespaces</span>
1076
                                                [% END %]
1077
                                                <div class="hint">Minimum password length: [% minPasswordLength | html %]</div>
1078
                                            </li>
1079
1080
1080
                                            <li>
1081
                                                <li>
1081
                                                [% IF ( mandatorypassword ) %]
1082
                                                    [% IF ( mandatorypassword ) %]
1082
                                                    <label for="password2" class="required">
1083
                                                        <label for="password2" class="required">
1083
                                                [% ELSE %]
1084
                                                    <label for="password2">
1085
                                                [% END %]
1086
                                                    Confirm password:
1087
                                                </label>
1088
                                                [% IF ( opadd ) %]
1089
                                                    [% IF ( NoUpdateLogin ) %]
1090
                                                        [% IF ( opduplicate ) %]
1091
                                                            <input type="password" id="password2" name="password2" size="20"  disabled="disabled" />
1092
                                                        [% ELSE %]
1093
                                                            <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="[% password | html %]" />
1094
                                                        [% END %]
1095
                                                    [% ELSE %]
1084
                                                    [% ELSE %]
1096
                                                        [% IF ( opduplicate ) %]
1085
                                                        <label for="password2">
1097
                                                            <input type="password" id="password2" name="password2" size="20" />
1098
                                                        [% ELSE %]
1099
                                                            <input type="password" id="password2" name="password2" size="20" value="[% password | html %]" />
1100
                                                        [% END %]
1101
                                                    [% END %]
1086
                                                    [% END %]
1102
                                                [% ELSE %]
1087
                                                        Confirm password:
1103
                                                    [% IF ( password ) %]
1088
                                                    </label>
1089
                                                    [% IF ( opadd ) %]
1104
                                                        [% IF ( NoUpdateLogin ) %]
1090
                                                        [% IF ( NoUpdateLogin ) %]
1105
                                                            <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="****" />
1091
                                                            [% IF ( opduplicate ) %]
1092
                                                                <input type="password" id="password2" name="password2" size="20"  disabled="disabled" />
1093
                                                            [% ELSE %]
1094
                                                                <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="[% password | html %]" />
1095
                                                            [% END %]
1106
                                                        [% ELSE %]
1096
                                                        [% ELSE %]
1107
                                                            [% IF ( opduplicate ) %]
1097
                                                            [% IF ( opduplicate ) %]
1108
                                                                <input type="password" id="password2" name="password2" size="20" />
1098
                                                                <input type="password" id="password2" name="password2" size="20" />
1109
                                                            [% ELSE %]
1099
                                                            [% ELSE %]
1110
                                                                <input type="password" id="password2" name="password2" size="20" value="****" />
1100
                                                                <input type="password" id="password2" name="password2" size="20" value="[% password | html %]" />
1111
                                                            [% END %]
1101
                                                            [% END %]
1112
                                                        [% END %]
1102
                                                        [% END %]
1113
                                                    [% ELSE %]
1103
                                                    [% ELSE # IF ( opadd ) %]
1114
                                                        [% IF ( NoUpdateLogin ) %]
1104
                                                        [% IF ( password ) %]
1115
                                                            <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="" />
1105
                                                            [% IF ( NoUpdateLogin ) %]
1106
                                                                <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="****" />
1107
                                                            [% ELSE %]
1108
                                                                [% IF ( opduplicate ) %]
1109
                                                                    <input type="password" id="password2" name="password2" size="20" />
1110
                                                                [% ELSE %]
1111
                                                                    <input type="password" id="password2" name="password2" size="20" value="****" />
1112
                                                                [% END %]
1113
                                                            [% END %]
1116
                                                        [% ELSE %]
1114
                                                        [% ELSE %]
1117
                                                            <input type="password" id="password2" name="password2" size="20" value="" />
1115
                                                            [% IF ( NoUpdateLogin ) %]
1116
                                                                <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="" />
1117
                                                            [% ELSE %]
1118
                                                                <input type="password" id="password2" name="password2" size="20" value="" />
1119
                                                            [% END %]
1118
                                                        [% END %]
1120
                                                        [% END %]
1119
                                                    [% END %]
1121
                                                    [% END # /IF ( opadd ) %]
1120
                                                [% END %]
1121
1122
1122
                                                [% IF ( mandatorypassword ) %]
1123
                                                    [% IF ( mandatorypassword ) %]
1123
                                                    <span class="required">Required</span>
1124
                                                        <span class="required">Required</span>
1124
                                                [% END %]
1125
                                                    [% END %]
1125
                                                [% IF ( ERROR_password_mismatch ) %]
1126
                                                    [% IF ( ERROR_password_mismatch ) %]
1126
                                                    <span class="required">Passwords do not match</span>
1127
                                                        <span class="required">Passwords do not match</span>
1127
                                                [% END %]
1128
                                                    [% END %]
1128
                                            </li>
1129
                                                </li>
1130
                                            [% END # /UNLESS nopassword %]
1129
                                        </ol>
1131
                                        </ol>
1130
                                    </fieldset>
1132
                                    </fieldset> <!-- /#memberentry_userid -->
1131
                                [% END # hide fieldset %]
1133
                                [% END # UNLESS nouserid && nopassword %]
1132
                            [% END %]
1133
1134
1134
                            <!--this zones are not necessary in modif mode -->
1135
                                <!--this zones are not necessary in modif mode -->
1135
                            [% UNLESS ( opadd || opduplicate ) %]
1136
                                [% UNLESS ( opadd || opduplicate ) %]
1136
                                <fieldset class="rows" id="memberentry_account_flags">
1137
                                    <fieldset class="rows" id="memberentry_account_flags">
1137
                                    <legend id="account_flags_lgd">Patron account flags</legend>
1138
                                        <legend id="account_flags_lgd">Patron account flags</legend>
1138
                                    <ol class="radio">
1139
                                        <ol class="radio">
1139
                                        [% FOREACH flagloo IN flagloop %]
1140
                                            [% FOREACH flagloo IN flagloop %]
1140
                                            <li>
1141
                                                <li>
1141
                                                <label class="radio" for="yes[% flagloo.name | html %]">
1142
                                                    <label class="radio" for="yes[% flagloo.name | html %]">
1142
                                                    [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %]
1143
                                                        [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %]
1143
                                                    [% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %]
1144
                                                        [% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %]
1144
                                                </label>
1145
                                                [% IF CAN_user_circulate_manage_restrictions %]
1146
                                                    <label for="yes[% flagloo.name | html %]">
1147
                                                        [% IF ( flagloo.yes ) %]
1148
                                                            <input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" checked="checked" />
1149
                                                        [% ELSE %]
1150
                                                            <input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" />
1151
                                                        [% END %]
1152
                                                            Yes
1153
                                                    </label>
1154
                                                    <label for="no[% flagloo.name | html %]">
1155
                                                        [% IF ( flagloo.no ) %]
1156
                                                            <input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" checked="checked"/>
1157
                                                        [% ELSE %]
1158
                                                            <input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" />
1159
                                                        [% END %]
1160
                                                            No
1161
                                                    </label>
1145
                                                    </label>
1162
                                                [% ELSE %]
1146
                                                    [% IF CAN_user_circulate_manage_restrictions %]
1163
                                                    [% IF flagloo.yes %]Yes[% ELSE %]No[% END %]
1147
                                                        <label for="yes[% flagloo.name | html %]">
1164
                                                [% END %]
1148
                                                            [% IF ( flagloo.yes ) %]
1165
                                            </li>
1149
                                                                <input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" checked="checked" />
1166
                                        [% END %]
1167
                                    </ol>
1168
                                </fieldset>
1169
1170
                                <fieldset class="rows" id="memberentry_restrictions">
1171
                                    <legend id="restrictions_lgd">Patron restrictions</legend>
1172
                                    [% IF ( debarments ) %]
1173
                                        <table>
1174
                                            <thead>
1175
                                                <tr>
1176
                                                     <th>Type</th>
1177
                                                     <th>Comment</th>
1178
                                                     <th>Expiration</th>
1179
                                                     <th>Created</th>
1180
                                                     [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
1181
                                                       <th>Remove?</th>
1182
                                                     [% END %]
1183
                                                </tr>
1184
                                            </thead>
1185
                                            <tbody>
1186
                                                [% FOREACH d IN debarments %]
1187
                                                    <tr>
1188
                                                        <td>[% d.type | html %]</td>
1189
                                                        <td>
1190
                                                            [% IF d.comment.search('OVERDUES_PROCESS') %]
1191
                                                                Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %]
1192
                                                            [% ELSE %]
1150
                                                            [% ELSE %]
1193
                                                                [% d.comment | $raw %]
1151
                                                                <input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" />
1194
                                                            [% END %]
1152
                                                            [% END %]
1195
                                                        </td>
1153
                                                                Yes
1196
                                                        <td>
1154
                                                        </label>
1197
                                                            [% IF d.expiration %]
1155
                                                        <label for="no[% flagloo.name | html %]">
1198
                                                                [% d.expiration | $KohaDates %]
1156
                                                            [% IF ( flagloo.no ) %]
1157
                                                                <input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" checked="checked"/>
1199
                                                            [% ELSE %]
1158
                                                            [% ELSE %]
1200
                                                                <i>Indefinite</i>
1159
                                                                <input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" />
1201
                                                            [% END %]
1160
                                                            [% END %]
1202
                                                        </td>
1161
                                                                No
1203
                                                        <td>[% d.created | $KohaDates %]</td>
1162
                                                        </label>
1204
                                                        [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
1163
                                                    [% ELSE %]
1205
                                                            <td>
1164
                                                        [% IF flagloo.yes %]Yes[% ELSE %]No[% END %]
1206
                                                                <input type="checkbox" id="debarment_[% d.borrower_debarment_id | html %]" name="remove_debarment" value="[% d.borrower_debarment_id | html %]" />
1165
                                                    [% END # /IF CAN_user_circulate_manage_restrictions %]
1207
                                                            </td>
1208
                                                        [% END %]
1209
                                                    </tr>
1210
                                                [% END %]
1211
                                            </tbody>
1212
                                        </table>
1213
                                    [% ELSE %]
1214
                                        <p>Patron is currently unrestricted.</p>
1215
                                    [% END %]
1216
1217
                                    [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
1218
                                        <p><a href="#" id="add_manual_restriction">Add manual restriction</a></p>
1219
                                        <fieldset id="manual_restriction_form">
1220
                                            <input type="hidden" id="add_debarment" name="add_debarment" value="0" />
1221
                                            <legend id="manual_restriction_lgd">Add manual restriction</legend>
1222
                                            <ol>
1223
                                                <li>
1224
                                                    <label for="debarred_comment">Comment: </label>
1225
                                                    <input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" />
1226
                                                </li>
1227
                                                <li>
1228
                                                    <label for="debarred_expiration">Expiration: </label>
1229
                                                    <input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" />
1230
                                                    <a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a>
1231
                                                </li>
1166
                                                </li>
1232
                                            </ol>
1167
                                            [% END # /FOREACH flagloo %]
1233
                                            <p>
1168
                                        </ol>
1234
                                                <a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a>
1169
                                    </fieldset> <!-- /#memberentry_account_flags -->
1235
                                            </p>
1236
                                        </fieldset>
1237
                                    [% END %]
1238
                                </fieldset>
1239
                            [% END %]
1240
                        [% END %]
1241
1170
1242
                        [% IF ( step_7 ) %]
1171
                                    <fieldset class="rows" id="memberentry_restrictions">
1243
                            [% IF Koha.Preference('HouseboundModule') %]
1172
                                        <legend id="restrictions_lgd">Patron restrictions</legend>
1173
                                        [% IF ( debarments ) %]
1174
                                            <table>
1175
                                                <thead>
1176
                                                    <tr>
1177
                                                         <th>Type</th>
1178
                                                         <th>Comment</th>
1179
                                                         <th>Expiration</th>
1180
                                                         <th>Created</th>
1181
                                                         [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
1182
                                                           <th>Remove?</th>
1183
                                                         [% END %]
1184
                                                    </tr>
1185
                                                </thead>
1186
                                                <tbody>
1187
                                                    [% FOREACH d IN debarments %]
1188
                                                        <tr>
1189
                                                            <td>[% d.type | html %]</td>
1190
                                                            <td>
1191
                                                                [% IF d.comment.search('OVERDUES_PROCESS') %]
1192
                                                                    Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %]
1193
                                                                [% ELSE %]
1194
                                                                    [% d.comment | $raw %]
1195
                                                                [% END %]
1196
                                                            </td>
1197
                                                            <td>
1198
                                                                [% IF d.expiration %]
1199
                                                                    [% d.expiration | $KohaDates %]
1200
                                                                [% ELSE %]
1201
                                                                    <i>Indefinite</i>
1202
                                                                [% END %]
1203
                                                            </td>
1204
                                                            <td>[% d.created | $KohaDates %]</td>
1205
                                                            [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
1206
                                                                <td>
1207
                                                                    <input type="checkbox" id="debarment_[% d.borrower_debarment_id | html %]" name="remove_debarment" value="[% d.borrower_debarment_id | html %]" />
1208
                                                                </td>
1209
                                                            [% END %]
1210
                                                        </tr>
1211
                                                    [% END # /FOREACH d %]
1212
                                                </tbody>
1213
                                            </table>
1214
                                        [% ELSE %]
1215
                                            <p>Patron is currently unrestricted.</p>
1216
                                        [% END # /IF ( debarments ) %]
1217
1218
                                        [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
1219
                                            <p><a href="#" id="add_manual_restriction">Add manual restriction</a></p>
1220
                                            <fieldset id="manual_restriction_form">
1221
                                                <input type="hidden" id="add_debarment" name="add_debarment" value="0" />
1222
                                                <legend id="manual_restriction_lgd">Add manual restriction</legend>
1223
                                                <ol>
1224
                                                    <li>
1225
                                                        <label for="debarred_comment">Comment: </label>
1226
                                                        <input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" />
1227
                                                    </li>
1228
                                                    <li>
1229
                                                        <label for="debarred_expiration">Expiration: </label>
1230
                                                        <input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" />
1231
                                                        <a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a>
1232
                                                    </li>
1233
                                                </ol>
1234
                                                <p>
1235
                                                    <a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a>
1236
                                                </p>
1237
                                            </fieldset> <!-- /#manual_restriction_form -->
1238
                                        [% END # /IF CAN_user_borrowers_edit_borrowers %]
1239
                                    </fieldset> <!-- /#memberentry_restrictions -->
1240
                                [% END # /UNLESS ( opadd || opduplicate ) %]
1241
                            [% END # /IF ( step_3 ) %]
1242
1243
                            [% IF ( step_7 ) %]
1244
                                [% IF Koha.Preference('HouseboundModule') %]
1244
                                    <fieldset class="rows" id="memberentry_housebound_roles">
1245
                                    <fieldset class="rows" id="memberentry_housebound_roles">
1245
                                        <legend id="housebound_roles">Housebound roles</legend>
1246
                                        <legend id="housebound_roles">Housebound roles</legend>
1246
                                        <ol class="radio">
1247
                                        <ol class="radio">
Lines 1274-1281 Link Here
1274
                                                    <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" />
1275
                                                    <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" />
1275
                                                [% END %]
1276
                                                [% END %]
1276
                                            </li>
1277
                                            </li>
1277
                                        </ol>
1278
                                        </ol> <!-- /ol.radio -->
1278
                                    </fieldset>
1279
                                    </fieldset> <!-- /#memberentry_housebound_roles -->
1279
                                [% END # hide fieldset %]
1280
                                [% END # hide fieldset %]
1280
                            [% END # IF step_7 %]
1281
                            [% END # IF step_7 %]
1281
1282
Lines 1313-1333 Link Here
1313
                                                                </select>
1314
                                                                </select>
1314
                                                            [% ELSE %]
1315
                                                            [% ELSE %]
1315
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1316
                                                                <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea>
1316
                                                            [% END %]
1317
                                                            [% END # /IF ( patron_attribute.use_dropdown ) %]
1317
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1318
                                                            <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" />
1318
                                                            <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a>
1319
                                                            <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a>
1319
                                                            [% IF ( patron_attribute.repeatable ) %]
1320
                                                            [% IF ( patron_attribute.repeatable ) %]
1320
                                                                <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1321
                                                                <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a>
1321
                                                            [% END %]
1322
                                                            [% END %]
1322
                                                        </li>
1323
                                                        </li>
1323
                                                    [% END %]
1324
                                                    [% END # /FOREACH patron_attribute %]
1324
                                                    [% IF pa_loo.class %]</fieldset>[% END %]
1325
                                                    [% IF pa_loo.class %]</fieldset>[% END %]
1325
                                                </ol>
1326
                                                </ol>
1326
                                            [% END %]
1327
                                            [% END # /FOREACH pa_loo %]
1327
                                        </fieldset>
1328
                                        </fieldset> <!-- /#memberentry_patron_attributes -->
1328
                                    [% END %]
1329
                                    [% END # UNLESS ( no_patron_attribute_types ) %]
1329
                                [% END %]
1330
                                [% END # IF Koha.Preference('ExtendedPatronAttributes') %]
1330
                            [% END %]
1331
                            [% END # IF ( step_4 ) %]
1331
1332
1332
                            [% IF ( step_5 ) %]
1333
                            [% IF ( step_5 ) %]
1333
                                [% IF ( EnhancedMessagingPreferences ) %]
1334
                                [% IF ( EnhancedMessagingPreferences ) %]
Lines 1358-1369 Link Here
1358
                                                        [% END %]
1359
                                                        [% END %]
1359
                                                    </select>
1360
                                                    </select>
1360
                                                </p>
1361
                                                </p>
1361
                                            [% END %]
1362
                                            [% END # /UNLESS nosms_provider_id %]
1362
                                        [% END %]
1363
                                        [% END # IF ( SMSSendDriver ) %]
1363
                                    </fieldset>
1364
                                    </fieldset>
1364
                                [% END %]
1365
                                [% END # IF ( EnhancedMessagingPreferences ) %]
1365
                            [% END %]
1366
                            [% END # /IF step_5 %]
1366
                        </form>
1367
                        </form> <!-- /#entryform -->
1367
1368
1368
                        [% IF quickadd && opadd  && !check_member %]
1369
                        [% IF quickadd && opadd  && !check_member %]
1369
                            <form id="quick_add_form" class="toggler">
1370
                            <form id="quick_add_form" class="toggler">
Lines 1374-1380 Link Here
1374
                            </form>
1375
                            </form>
1375
                        [% END %]
1376
                        [% END %]
1376
1377
1377
                    [% END %]
1378
                    [% END # /UNLESS ( no_add ) %]
1378
                </main>
1379
                </main>
1379
            </div> <!-- /.col-sm-10.col-sm-push-2 -->
1380
            </div> <!-- /.col-sm-10.col-sm-push-2 -->
1380
1381
1381
- 

Return to bug 23533