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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/member-attribute-types.inc (-2 / +2 lines)
Lines 16-24 Link Here
16
                            [% FOREACH patron_attribute IN pa_loo.items %]
16
                            [% FOREACH patron_attribute IN pa_loo.items %]
17
                                <li data-category_code="[% patron_attribute.category_code | html %]" data-pa_code="[% patron_attribute.code | replace('[^a-zA-Z0-9_-]', '') %]">
17
                                <li data-category_code="[% patron_attribute.category_code | html %]" data-pa_code="[% patron_attribute.code | replace('[^a-zA-Z0-9_-]', '') %]">
18
                                    [% IF patron_attribute.mandatory %]
18
                                    [% IF patron_attribute.mandatory %]
19
                                        <label for="[% patron_attribute.form_id | html %]" class="required" required="required">[% patron_attribute.description | html %]: </label>
19
                                        <label for="[% patron_attribute.form_id | html %]" class="required" required="required" id="[% patron_attribute.form_id | html %]_label">[% patron_attribute.description | html %]: </label>
20
                                    [% ELSE %]
20
                                    [% ELSE %]
21
                                        <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label>
21
                                        <label for="[% patron_attribute.form_id | html %]" id="[% patron_attribute.form_id | html %]_label">[% patron_attribute.description | html %]: </label>
22
                                    [% END %]
22
                                    [% END %]
23
                                    [% IF ( patron_attribute.use_dropdown ) %]
23
                                    [% IF ( patron_attribute.use_dropdown ) %]
24
                                        <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" [% IF patron_attribute.mandatory %]required="required"[% END %]>
24
                                        <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]" [% IF patron_attribute.mandatory %]required="required"[% END %]>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-90 / +93 lines)
Lines 317-323 Link Here
317
                                            [% UNLESS notitle %]
317
                                            [% UNLESS notitle %]
318
                                                [% IF Koha.Preference('BorrowersTitles') %]
318
                                                [% IF Koha.Preference('BorrowersTitles') %]
319
                                                    <li>
319
                                                    <li>
320
                                                        <label for="btitle" [% IF mandatorytitle %]class="required"[% END %]> Salutation: </label>
320
                                                        <label for="btitle" [% IF mandatorytitle %]class="required"[% END %] id="btitle_label"> Salutation: </label>
321
                                                        <select id="btitle" name="title">
321
                                                        <select id="btitle" name="title">
322
                                                            <option value=""></option>
322
                                                            <option value=""></option>
323
                                                            [% FOREACH patron_title IN Koha.Preference('BorrowersTitles').split('\|') %]
323
                                                            [% FOREACH patron_title IN Koha.Preference('BorrowersTitles').split('\|') %]
Lines 339-347 Link Here
339
                                        [% UNLESS nosurname %]
339
                                        [% UNLESS nosurname %]
340
                                            <li>
340
                                            <li>
341
                                                [% IF ( patron_category.category_type == 'I' ) %]
341
                                                [% IF ( patron_category.category_type == 'I' ) %]
342
                                                    <label for="surname" class="required"> Name: </label>
342
                                                    <label for="surname" class="required" id="surname_label"> Name: </label>
343
                                                [% ELSE %]
343
                                                [% ELSE %]
344
                                                    <label for="surname" [% IF mandatorysurname %]class="required"[% END %]> Surname: </label>
344
                                                    <label for="surname" [% IF mandatorysurname %]class="required"[% END %] id="surname_label"> Surname: </label>
345
                                                [% END %]
345
                                                [% END %]
346
346
347
                                                [% IF ( uppercasesurnames ) %]
347
                                                [% IF ( uppercasesurnames ) %]
Lines 358-364 Link Here
358
                                        [% UNLESS ( patron_category.category_type == 'I' ) %]
358
                                        [% UNLESS ( patron_category.category_type == 'I' ) %]
359
                                            [% UNLESS nofirstname %]
359
                                            [% UNLESS nofirstname %]
360
                                                <li>
360
                                                <li>
361
                                                    <label for="firstname" [% IF mandatoryfirstname %]class="required"[% END %]> First name: </label>
361
                                                    <label for="firstname" [% IF mandatoryfirstname %]class="required"[% END %] id="firstname_label"> First name: </label>
362
                                                    <input type="text" id="firstname" name="firstname" size="20" value="[% borrower_data.firstname | html UNLESS op == 'duplicate' %]" />
362
                                                    <input type="text" id="firstname" name="firstname" size="20" value="[% borrower_data.firstname | html UNLESS op == 'duplicate' %]" />
363
                                                    [% IF ( mandatoryfirstname ) %]
363
                                                    [% IF ( mandatoryfirstname ) %]
364
                                                        <span class="required">Required</span>
364
                                                        <span class="required">Required</span>
Lines 367-373 Link Here
367
                                            [% END #/UNLESS nofirstname %]
367
                                            [% END #/UNLESS nofirstname %]
368
                                            [% UNLESS nopreferred_name %]
368
                                            [% UNLESS nopreferred_name %]
369
                                                <li>
369
                                                <li>
370
                                                    <label for="preferred_name" [% IF mandatorypreferred_name %]class="required"[% END %]> Preferred name: </label>
370
                                                    <label for="preferred_name" [% IF mandatorypreferred_name %]class="required"[% END %] id="preferred_name_label"> Preferred name: </label>
371
                                                    <input type="text" id="preferred_name" name="preferred_name" size="20" value="[% borrower_data.preferred_name | html UNLESS op == 'duplicate' %]" />
371
                                                    <input type="text" id="preferred_name" name="preferred_name" size="20" value="[% borrower_data.preferred_name | html UNLESS op == 'duplicate' %]" />
372
                                                    [% IF ( mandatorypreferred_name ) %]
372
                                                    [% IF ( mandatorypreferred_name ) %]
373
                                                        <span class="required">Required</span>
373
                                                        <span class="required">Required</span>
Lines 376-382 Link Here
376
                                            [% END #/UNLESS nopreferred_name %]
376
                                            [% END #/UNLESS nopreferred_name %]
377
                                            [% UNLESS nomiddle_name %]
377
                                            [% UNLESS nomiddle_name %]
378
                                                <li>
378
                                                <li>
379
                                                    <label for="middle_name" [% IF mandatorymiddle_name %]class="required"[% END %]> Middle name: </label>
379
                                                    <label for="middle_name" [% IF mandatorymiddle_name %]class="required"[% END %] id="middle_name_label"> Middle name: </label>
380
                                                    <input type="text" id="middle_name" name="middle_name" size="20" value="[% borrower_data.middle_name | html UNLESS op == 'duplicate' %]" />
380
                                                    <input type="text" id="middle_name" name="middle_name" size="20" value="[% borrower_data.middle_name | html UNLESS op == 'duplicate' %]" />
381
                                                    [% IF ( mandatorymiddle_name ) %]
381
                                                    [% IF ( mandatorymiddle_name ) %]
382
                                                        <span class="required">Required</span>
382
                                                        <span class="required">Required</span>
Lines 385-391 Link Here
385
                                            [% END #/UNLESS nomiddle_name %]
385
                                            [% END #/UNLESS nomiddle_name %]
386
                                            [% UNLESS nodateofbirth %]
386
                                            [% UNLESS nodateofbirth %]
387
                                                <li>
387
                                                <li>
388
                                                    <label for="dateofbirth" [% IF mandatorydateofbirth %]class="required"[% END %]> Date of birth: </label>
388
                                                    <label for="dateofbirth" [% IF mandatorydateofbirth %]class="required"[% END %] id="dateofbirth_label"> Date of birth: </label>
389
                                                    <input
389
                                                    <input
390
                                                        type="text"
390
                                                        type="text"
391
                                                        id="dateofbirth"
391
                                                        id="dateofbirth"
Lines 406-412 Link Here
406
                                            [% END # /UNLESS nodateofbirth %]
406
                                            [% END # /UNLESS nodateofbirth %]
407
                                            [% UNLESS noinitials %]
407
                                            [% UNLESS noinitials %]
408
                                                <li>
408
                                                <li>
409
                                                    <label for="initials" [% IF mandatoryinitials %]class="required"[% END %]> Initials: </label>
409
                                                    <label for="initials" [% IF mandatoryinitials %]class="required"[% END %] id="initials_label"> Initials: </label>
410
                                                    <input type="text" id="initials" name="initials" size="20" value="[% borrower_data.initials | html UNLESS op == 'duplicate' %]" />
410
                                                    <input type="text" id="initials" name="initials" size="20" value="[% borrower_data.initials | html UNLESS op == 'duplicate' %]" />
411
                                                    [% IF ( mandatoryinitials ) %]
411
                                                    [% IF ( mandatoryinitials ) %]
412
                                                        <span class="required">Required</span>
412
                                                        <span class="required">Required</span>
Lines 415-421 Link Here
415
                                            [% END # /UNLESS noinitials %]
415
                                            [% END # /UNLESS noinitials %]
416
                                            [% UNLESS nopronouns %]
416
                                            [% UNLESS nopronouns %]
417
                                                <li>
417
                                                <li>
418
                                                    <label for="pronouns" [% IF mandatorypronouns %]class="required"[% END %]> Pronouns: </label>
418
                                                    <label for="pronouns" [% IF mandatorypronouns %]class="required"[% END %] id="pronouns_label"> Pronouns: </label>
419
                                                    <input type="text" id="pronouns" name="pronouns" size="20" value="[% borrower_data.pronouns | html UNLESS op == 'duplicate' %]" />
419
                                                    <input type="text" id="pronouns" name="pronouns" size="20" value="[% borrower_data.pronouns | html UNLESS op == 'duplicate' %]" />
420
                                                    [% IF ( mandatorypronouns ) %]
420
                                                    [% IF ( mandatorypronouns ) %]
421
                                                        <span class="required">Required</span>
421
                                                        <span class="required">Required</span>
Lines 425-431 Link Here
425
                                        [% END #/UNLESS ( I ) %]
425
                                        [% END #/UNLESS ( I ) %]
426
                                        [% UNLESS noothernames %]
426
                                        [% UNLESS noothernames %]
427
                                            <li>
427
                                            <li>
428
                                                <label for="othernames" [% IF mandatoryothernames %]class="required"[% END %]> Other name: </label>
428
                                                <label for="othernames" [% IF mandatoryothernames %]class="required"[% END %] id="othernames_label"> Other name: </label>
429
                                                <input type="text" id="othernames" name="othernames" size="20" value="[% borrower_data.othernames | html UNLESS op == 'duplicate' %]" />
429
                                                <input type="text" id="othernames" name="othernames" size="20" value="[% borrower_data.othernames | html UNLESS op == 'duplicate' %]" />
430
                                                [% IF ( mandatoryothernames ) %]
430
                                                [% IF ( mandatoryothernames ) %]
431
                                                    <span class="required">Required</span>
431
                                                    <span class="required">Required</span>
Lines 437-469 Link Here
437
                                        [% UNLESS ( patron_category.category_type == 'I' ) %]
437
                                        [% UNLESS ( patron_category.category_type == 'I' ) %]
438
                                            [% UNLESS nosex %]
438
                                            [% UNLESS nosex %]
439
                                                <li class="radio">
439
                                                <li class="radio">
440
                                                    <label for="gender">Gender:</label>
440
                                                    <label for="gender" id="gender_label">Gender:</label>
441
                                                    [% UNLESS ( op == 'duplicate' ) %]
441
                                                    [% UNLESS ( op == 'duplicate' ) %]
442
                                                        [% IF ( female ) %]
442
                                                        [% IF ( female ) %]
443
                                                            <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /><span class="patronsex-female"> Female</span></label>
443
                                                            <label for="sex-female" id="sex-female_label"><input type="radio" name="sex" id="sex-female" value="F" checked="checked" /><span class="patronsex-female"> Female</span></label>
444
                                                        [% ELSE %]
444
                                                        [% ELSE %]
445
                                                            <label for="sex-female"><input type="radio" name="sex" id="sex-female" value="F" /><span class="patronsex-female"> Female</span></label>
445
                                                            <label for="sex-female" id="sex-female_label"><input type="radio" name="sex" id="sex-female" value="F" /><span class="patronsex-female"> Female</span></label>
446
                                                        [% END %]
446
                                                        [% END %]
447
                                                        [% IF ( male ) %]
447
                                                        [% IF ( male ) %]
448
                                                            <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /><span class="patronsex-male"> Male</span></label>
448
                                                            <label for="sex-male" id="sex-male_label"><input type="radio" name="sex" id="sex-male" value="M" checked="checked" /><span class="patronsex-male"> Male</span></label>
449
                                                        [% ELSE %]
449
                                                        [% ELSE %]
450
                                                            <label for="sex-male"><input type="radio" name="sex" id="sex-male" value="M" /><span class="patronsex-male"> Male</span></label>
450
                                                            <label for="sex-male" id="sex-male_label"><input type="radio" name="sex" id="sex-male" value="M" /><span class="patronsex-male"> Male</span></label>
451
                                                        [% END %]
451
                                                        [% END %]
452
                                                        [% IF ( other ) %]
452
                                                        [% IF ( other ) %]
453
                                                            <label for="sex-other"><input type="radio" name="sex" id="sex-other" value="O" checked="checked" /><span class="patronsex-other"> [% tp('gender', 'Other') | html %]</span></label>
453
                                                            <label for="sex-other" id="sex-other_label"
454
                                                                ><input type="radio" name="sex" id="sex-other" value="O" checked="checked" /><span class="patronsex-other"> [% tp('gender', 'Other') | html %]</span></label
455
                                                            >
454
                                                        [% ELSE %]
456
                                                        [% ELSE %]
455
                                                            <label for="sex-other"><input type="radio" name="sex" id="sex-other" value="O" /><span class="patronsex-other"> [% tp('gender', 'Other') | html %]</span></label>
457
                                                            <label for="sex-other" id="sex-other_label"
458
                                                                ><input type="radio" name="sex" id="sex-other" value="O" /><span class="patronsex-other"> [% tp('gender', 'Other') | html %]</span></label
459
                                                            >
456
                                                        [% END %]
460
                                                        [% END %]
457
                                                        [% IF ( none ) %]
461
                                                        [% IF ( none ) %]
458
                                                            <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" checked="checked" /><span class="patronsex-none"> None specified</span></label>
462
                                                            <label for="sex-none" id="sex-none_label"><input type="radio" name="sex" id="sex-none" value="" checked="checked" /><span class="patronsex-none"> None specified</span></label>
459
                                                        [% ELSE %]
463
                                                        [% ELSE %]
460
                                                            <label for="sex-none"><input type="radio" name="sex" id="sex-none" value="" /><span class="patronsex-none"> None specified</span></label>
464
                                                            <label for="sex-none" id="sex-none_label"><input type="radio" name="sex" id="sex-none" value="" /><span class="patronsex-none"> None specified</span></label>
461
                                                        [% END %]
465
                                                        [% END %]
462
                                                    [% ELSE %]
466
                                                    [% ELSE %]
463
                                                        <label for="sex-female"><span class="patronsex-female">Female </span></label><input type="radio" name="sex" id="sex-female" value="F" />
467
                                                        <label for="sex-female" id="sex-female_label"><span class="patronsex-female">Female </span></label><input type="radio" name="sex" id="sex-female" value="F" />
464
                                                        <label for="sex-male"><span class="patronsex-male">Male </span></label><input type="radio" name="sex" id="sex-male" value="M" />
468
                                                        <label for="sex-male" id="sex-male_label"><span class="patronsex-male">Male </span></label><input type="radio" name="sex" id="sex-male" value="M" />
465
                                                        <label for="sex-other"><span class="patronsex-other">[% tp('gender', 'Other') | html %] </span></label><input type="radio" name="sex" id="sex-other" value="O" />
469
                                                        <label for="sex-other" id="sex-other_label"><span class="patronsex-other">[% tp('gender', 'Other') | html %] </span></label><input type="radio" name="sex" id="sex-other" value="O" />
466
                                                        <label for="sex-none"><span class="patronsex-none">None specified </span></label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
470
                                                        <label for="sex-none" id="sex-none_label"><span class="patronsex-none">None specified </span></label><input type="radio" name="sex" id="sex-none" value="" checked="checked" />
467
                                                    [% END # /UNLESS ( op == 'duplicate' ) %]
471
                                                    [% END # /UNLESS ( op == 'duplicate' ) %]
468
                                                </li>
472
                                                </li>
469
                                            [% END # /UNLESS nosex %]
473
                                            [% END # /UNLESS nosex %]
Lines 488-494 Link Here
488
                                                    <ol>
492
                                                    <ol>
489
                                                        [% IF patron_category.category_type == 'I' %]
493
                                                        [% IF patron_category.category_type == 'I' %]
490
                                                            <li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]">
494
                                                            <li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]">
491
                                                                <span class="label">Organization:</span>
495
                                                                <span class="label" id="organization_label">Organization:</span>
492
                                                                [% INCLUDE 'patron-title.inc' patron=r.guarantor %]
496
                                                                [% INCLUDE 'patron-title.inc' patron=r.guarantor %]
493
                                                            </li>
497
                                                            </li>
494
                                                            <li>
498
                                                            <li>
Lines 497-514 Link Here
497
                                                            </li>
501
                                                            </li>
498
                                                        [% ELSE %]
502
                                                        [% ELSE %]
499
                                                            <li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]">
503
                                                            <li class="guarantor-details" data-borrowernumber="[% r.guarantor_id | $raw %]">
500
                                                                <span class="label">Guarantor:</span>
504
                                                                <span class="label" id="guarantor_label">Guarantor:</span>
501
                                                                [% INCLUDE 'patron-title.inc' patron=r.guarantor %]
505
                                                                [% INCLUDE 'patron-title.inc' patron=r.guarantor %]
502
                                                                <input type="hidden" class="guarantor_id relation-[% r.id | html %]" name="guarantor_id" value="[% r.guarantor_id | html %]" />
506
                                                                <input type="hidden" class="guarantor_id relation-[% r.id | html %]" name="guarantor_id" value="[% r.guarantor_id | html %]" />
503
                                                            </li>
507
                                                            </li>
504
                                                            <li>
508
                                                            <li>
505
                                                                <span class="label">Relationship:</span>
509
                                                                <span class="label" id="relationship_label">Relationship:</span>
506
                                                                <span>[% r.relationship | html %]</span>
510
                                                                <span>[% r.relationship | html %]</span>
507
                                                                <input type="hidden" class="guarantor_relationship relation-[% r.id | html %]" name="guarantor_relationship" value="[% r.relationship | html %]" />
511
                                                                <input type="hidden" class="guarantor_relationship relation-[% r.id | html %]" name="guarantor_relationship" value="[% r.relationship | html %]" />
508
                                                            </li>
512
                                                            </li>
509
513
510
                                                            <li>
514
                                                            <li>
511
                                                                <label for="delete_guarantor-[% r.id | uri %]">Remove: </label>
515
                                                                <label for="delete_guarantor-[% r.id | uri %]" id="delete_guarantor-[% r.id | uri %]_label">Remove: </label>
512
                                                                <input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" onclick="toggle_guarantor_field([% r.id | html %])" />
516
                                                                <input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" onclick="toggle_guarantor_field([% r.id | html %])" />
513
                                                            </li>
517
                                                            </li>
514
                                                        [% END %]
518
                                                        [% END %]
Lines 519-525 Link Here
519
                                                <fieldset class="guarantor">
523
                                                <fieldset class="guarantor">
520
                                                    <ol>
524
                                                    <ol>
521
                                                        <li class="guarantor-details" data-borrowernumber="0">
525
                                                        <li class="guarantor-details" data-borrowernumber="0">
522
                                                            <span class="label">Guarantor:</span>
526
                                                            <span class="label" id="relationship_label">Guarantor:</span>
523
                                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank"
527
                                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% guarantor.borrowernumber | uri %]" target="blank"
524
                                                                >[% guarantor.firstname | html %] [% guarantor.surname | html %] ([% guarantor.cardnumber | html %])</a
528
                                                                >[% guarantor.firstname | html %] [% guarantor.surname | html %] ([% guarantor.cardnumber | html %])</a
525
                                                            >
529
                                                            >
Lines 528-534 Link Here
528
532
529
                                                        [% UNLESS norelationship %]
533
                                                        [% UNLESS norelationship %]
530
                                                            <li>
534
                                                            <li>
531
                                                                <label for="guarantor_relationship" [% IF mandatoryrelationship %]class="required"[% END %]>Relationship: </label>
535
                                                                <label for="guarantor_relationship" [% IF mandatoryrelationship %]class="required"[% END %] id="relationship_label">Relationship: </label>
532
                                                                <select class="new_guarantor_relationship" name="new_guarantor_relationship" [% IF mandatoryrelationship %]required="required"[% END %]>
536
                                                                <select class="new_guarantor_relationship" name="new_guarantor_relationship" [% IF mandatoryrelationship %]required="required"[% END %]>
533
                                                                    <option value=""></option>
537
                                                                    <option value=""></option>
534
                                                                    [% FOREACH pr IN possible_relationships.split('\|') %]
538
                                                                    [% FOREACH pr IN possible_relationships.split('\|') %]
Lines 546-552 Link Here
546
                                                        [% END %]
550
                                                        [% END %]
547
551
548
                                                        <li>
552
                                                        <li>
549
                                                            <label for="guarantor_cancel">&nbsp;</label>
553
                                                            <label for="guarantor_cancel" id="guarantor_cancel_label">&nbsp;</label>
550
                                                            <span
554
                                                            <span
551
                                                                ><a href="#" class="guarantor_cancel"><i class="fa fa-trash-can" aria-hidden="true"></i> Remove</a></span
555
                                                                ><a href="#" class="guarantor_cancel"><i class="fa fa-trash-can" aria-hidden="true"></i> Remove</a></span
552
                                                            >
556
                                                            >
Lines 569-575 Link Here
569
573
570
                                                [% UNLESS norelationship %]
574
                                                [% UNLESS norelationship %]
571
                                                    <li>
575
                                                    <li>
572
                                                        <label for="guarantor_relationship" [% IF mandatoryrelationship %]class="required"[% END %]>Relationship: </label>
576
                                                        <label for="guarantor_relationship" [% IF mandatoryrelationship %]class="required"[% END %] id="guarantor_relationship_label">Relationship: </label>
573
                                                        <select class="new_guarantor_relationship" name="new_guarantor_relationship" [% IF mandatoryrelationship %]required="required"[% END %]>
577
                                                        <select class="new_guarantor_relationship" name="new_guarantor_relationship" [% IF mandatoryrelationship %]required="required"[% END %]>
574
                                                            <option value="" selected></option>
578
                                                            <option value="" selected></option>
575
                                                            [% FOREACH pr IN possible_relationships.split('\|') %]
579
                                                            [% FOREACH pr IN possible_relationships.split('\|') %]
Lines 587-593 Link Here
587
                                                [% END %]
591
                                                [% END %]
588
592
589
                                                <li>
593
                                                <li>
590
                                                    <label for="guarantor_cancel">&nbsp;</label>
594
                                                    <label for="guarantor_cancel" id="guarantor_cancel_label">&nbsp;</label>
591
                                                    <span
595
                                                    <span
592
                                                        ><a href="#" class="guarantor_cancel"><i class="fa fa-trash-can"></i> Remove</a></span
596
                                                        ><a href="#" class="guarantor_cancel"><i class="fa fa-trash-can"></i> Remove</a></span
593
                                                    >
597
                                                    >
Lines 606-612 Link Here
606
610
607
                                            [% IF Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %]
611
                                            [% IF Koha.Preference('AllowStaffToSetCheckoutsVisibilityForGuarantor') %]
608
                                                <li>
612
                                                <li>
609
                                                    <label for="privacy_guarantor_checkouts">Show checkouts to guarantors:</label>
613
                                                    <label for="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts_label">Show checkouts to guarantors:</label>
610
                                                    <select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts">
614
                                                    <select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts">
611
                                                        [% IF borrower_data.privacy_guarantor_checkouts %]
615
                                                        [% IF borrower_data.privacy_guarantor_checkouts %]
612
                                                            <option value="0">No</option>
616
                                                            <option value="0">No</option>
Lines 621-627 Link Here
621
                                            [% END %]
625
                                            [% END %]
622
                                            [% IF Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %]
626
                                            [% IF Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %]
623
                                                <li>
627
                                                <li>
624
                                                    <label for="privacy_guarantor_fines">Show charges to guarantors:</label>
628
                                                    <label for="privacy_guarantor_fines" id="privacy_guarantor_fines_label">Show charges to guarantors:</label>
625
                                                    <select name="privacy_guarantor_fines" id="privacy_guarantor_fines">
629
                                                    <select name="privacy_guarantor_fines" id="privacy_guarantor_fines">
626
                                                        [% IF borrower_data.privacy_guarantor_fines %]
630
                                                        [% IF borrower_data.privacy_guarantor_fines %]
627
                                                            <option value="0">No</option>
631
                                                            <option value="0">No</option>
Lines 649-655 Link Here
649
                                        <ol>
653
                                        <ol>
650
                                            [% UNLESS nocontactname %]
654
                                            [% UNLESS nocontactname %]
651
                                                <li>
655
                                                <li>
652
                                                    <label for="contactname" [% IF mandatorycontactname %]class="required"[% END %]> Guarantor surname: </label>
656
                                                    <label for="contactname" [% IF mandatorycontactname %]class="required"[% END %] id="contactname_label"> Guarantor surname: </label>
653
                                                    <input type="text" id="contactname" name="contactname" value="[% patron.contactname | html %]" />
657
                                                    <input type="text" id="contactname" name="contactname" value="[% patron.contactname | html %]" />
654
                                                    [% IF ( mandatorycontactname ) %]
658
                                                    [% IF ( mandatorycontactname ) %]
655
                                                        <span class="required">Required</span>
659
                                                        <span class="required">Required</span>
Lines 660-666 Link Here
660
664
661
                                            [% UNLESS nocontactfirstname %]
665
                                            [% UNLESS nocontactfirstname %]
662
                                                <li>
666
                                                <li>
663
                                                    <label for="contactfirstname" [% IF mandatorycontactfirstname %]class="required"[% END %]> Guarantor first name: </label>
667
                                                    <label for="contactfirstname" [% IF mandatorycontactfirstname %]class="required"[% END %] id="contactfirstname_label"> Guarantor first name: </label>
664
                                                    <input type="text" id="contactfirstname" name="contactfirstname" value="[% patron.contactfirstname | html %]" />
668
                                                    <input type="text" id="contactfirstname" name="contactfirstname" value="[% patron.contactfirstname | html %]" />
665
                                                    [% IF ( mandatorycontactfirstname ) %]
669
                                                    [% IF ( mandatorycontactfirstname ) %]
666
                                                        <span class="required">Required</span>
670
                                                        <span class="required">Required</span>
Lines 671-677 Link Here
671
675
672
                                            [% UNLESS norelationship %]
676
                                            [% UNLESS norelationship %]
673
                                                <li>
677
                                                <li>
674
                                                    <label for="relationship" [% IF mandatoryrelationship %]class="required"[% END %]>Relationship: </label>
678
                                                    <label for="relationship" [% IF mandatoryrelationship %]class="required"[% END %] id="relationship_label">Relationship: </label>
675
                                                    <select class="relationship" name="relationship" id="relationship" [% IF mandatoryrelationship %]required="required"[% END %]>
679
                                                    <select class="relationship" name="relationship" id="relationship" [% IF mandatoryrelationship %]required="required"[% END %]>
676
                                                        <option value=""></option>
680
                                                        <option value=""></option>
677
                                                        [% FOREACH pr IN possible_relationships.split('\|') %]
681
                                                        [% FOREACH pr IN possible_relationships.split('\|') %]
Lines 706-712 Link Here
706
                                    <ol>
710
                                    <ol>
707
                                        [% UNLESS nophone %]
711
                                        [% UNLESS nophone %]
708
                                            <li>
712
                                            <li>
709
                                                <label for="phone" [% IF mandatoryphone %]class="required"[% END %]> Primary phone: </label>
713
                                                <label for="phone" [% IF mandatoryphone %]class="required"[% END %] id="phone_label"> Primary phone: </label>
710
                                                <input type="text" id="phone" name="phone" value="[% patron.phone | html %]" />
714
                                                <input type="text" id="phone" name="phone" value="[% patron.phone | html %]" />
711
                                                [% IF ( mandatoryphone ) %]
715
                                                [% IF ( mandatoryphone ) %]
712
                                                    <span class="required">Required</span>
716
                                                    <span class="required">Required</span>
Lines 717-723 Link Here
717
721
718
                                        [% UNLESS nophonepro %]
722
                                        [% UNLESS nophonepro %]
719
                                            <li>
723
                                            <li>
720
                                                <label for="phonepro" [% IF mandatoryphonepro %]class="required"[% END %]> Secondary phone: </label>
724
                                                <label for="phonepro" [% IF mandatoryphonepro %]class="required"[% END %] id="phonepro_label"> Secondary phone: </label>
721
                                                <input type="text" id="phonepro" name="phonepro" value="[% patron.phonepro | html %]" />
725
                                                <input type="text" id="phonepro" name="phonepro" value="[% patron.phonepro | html %]" />
722
                                                [% IF ( mandatoryphonepro ) %]
726
                                                [% IF ( mandatoryphonepro ) %]
723
                                                    <span class="required">Required</span>
727
                                                    <span class="required">Required</span>
Lines 727-733 Link Here
727
731
728
                                        [% UNLESS nomobile %]
732
                                        [% UNLESS nomobile %]
729
                                            <li>
733
                                            <li>
730
                                                <label for="mobile" [% IF mandatorymobile %]class="required"[% END %]> Other phone: </label>
734
                                                <label for="mobile" [% IF mandatorymobile %]class="required"[% END %] id="mobile_label"> Other phone: </label>
731
                                                <input type="text" id="mobile" name="mobile" value="[% patron.mobile | html %]" />
735
                                                <input type="text" id="mobile" name="mobile" value="[% patron.mobile | html %]" />
732
                                                [% IF ( mandatorymobile ) %]
736
                                                [% IF ( mandatorymobile ) %]
733
                                                    <span class="required">Required</span>
737
                                                    <span class="required">Required</span>
Lines 737-743 Link Here
737
741
738
                                        [% UNLESS noemail %]
742
                                        [% UNLESS noemail %]
739
                                            <li>
743
                                            <li>
740
                                                <label for="email" [% IF mandatoryemail %]class="required"[% END %]> Primary email: </label>
744
                                                <label for="email" [% IF mandatoryemail %]class="required"[% END %] id="email_label"> Primary email: </label>
741
                                                [% IF ( NoUpdateEmail ) %]
745
                                                [% IF ( NoUpdateEmail ) %]
742
                                                    <input type="text" id="email" name="email" size="45" value="[% patron.email | html %]" disabled="disabled" />
746
                                                    <input type="text" id="email" name="email" size="45" value="[% patron.email | html %]" disabled="disabled" />
743
                                                [% ELSE %]
747
                                                [% ELSE %]
Lines 752-758 Link Here
752
756
753
                                        [% UNLESS noemailpro %]
757
                                        [% UNLESS noemailpro %]
754
                                            <li>
758
                                            <li>
755
                                                <label for="emailpro" [% IF mandatoryemailpro %]class="required"[% END %]> Secondary email: </label>
759
                                                <label for="emailpro" [% IF mandatoryemailpro %]class="required"[% END %] id="emailpro_label"> Secondary email: </label>
756
                                                [% IF ( NoUpdateEmail ) %]
760
                                                [% IF ( NoUpdateEmail ) %]
757
                                                    <input type="text" id="emailpro" name="emailpro" size="45" value="[% patron.emailpro | html %]" disabled="disabled" />
761
                                                    <input type="text" id="emailpro" name="emailpro" size="45" value="[% patron.emailpro | html %]" disabled="disabled" />
758
                                                [% ELSE %]
762
                                                [% ELSE %]
Lines 766-772 Link Here
766
770
767
                                        [% UNLESS nofax %]
771
                                        [% UNLESS nofax %]
768
                                            <li>
772
                                            <li>
769
                                                <label for="fax" [% IF mandatoryfax %]class="required"[% END %]> Fax: </label>
773
                                                <label for="fax" [% IF mandatoryfax %]class="required"[% END %] id="fax_label"> Fax: </label>
770
                                                <input type="text" id="fax" name="fax" value="[% patron.fax | html %]" />
774
                                                <input type="text" id="fax" name="fax" value="[% patron.fax | html %]" />
771
                                                [% IF ( mandatoryfax ) %]
775
                                                [% IF ( mandatoryfax ) %]
772
                                                    <span class="required">Required</span>
776
                                                    <span class="required">Required</span>
Lines 776-782 Link Here
776
780
777
                                        [% UNLESS noprimary_contact_method %]
781
                                        [% UNLESS noprimary_contact_method %]
778
                                            <li>
782
                                            <li>
779
                                                <label for="primary_contact_method" [% IF mandatoryprimary_contact_method %]class="required"[% END %]> Main contact method: </label>
783
                                                <label for="primary_contact_method" [% IF mandatoryprimary_contact_method %]class="required"[% END %] id="primary_contact_method_label"> Main contact method: </label>
780
784
781
                                                <select id="primary_contact_method" name="primary_contact_method">
785
                                                <select id="primary_contact_method" name="primary_contact_method">
782
                                                    <option value=""></option>
786
                                                    <option value=""></option>
Lines 858-864 Link Here
858
                                <ol>
862
                                <ol>
859
                                    [% UNLESS nocardnumber %]
863
                                    [% UNLESS nocardnumber %]
860
                                        <li>
864
                                        <li>
861
                                            <label for="cardnumber" class="[% mandatorycardnumber ? 'required' : 'validated' | html %]"> Card number: </label>
865
                                            <label for="cardnumber" class="[% mandatorycardnumber ? 'required' : 'validated' | html %]" id="cardnumber_label"> Card number: </label>
862
866
863
                                            [% IF minlength_cardnumber == maxlength_cardnumber %]
867
                                            [% IF minlength_cardnumber == maxlength_cardnumber %]
864
                                                <input
868
                                                <input
Lines 916-922 Link Here
916
920
917
                                    [% UNLESS nobranchcode %]
921
                                    [% UNLESS nobranchcode %]
918
                                        <li>
922
                                        <li>
919
                                            <label for="libraries" class="required">Library:</label>
923
                                            <label for="libraries" class="required" id="libraries_label">Library:</label>
920
                                            <select name="branchcode" id="libraries">
924
                                            <select name="branchcode" id="libraries">
921
                                                [% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %]
925
                                                [% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %]
922
                                            </select>
926
                                            </select>
Lines 925-931 Link Here
925
                                    [% END %]
929
                                    [% END %]
926
930
927
                                    <li>
931
                                    <li>
928
                                        <label for="categorycode_entry" class="required">Category: </label>
932
                                        <label for="categorycode_entry" class="required" id="categorycode_entry_label">Category: </label>
929
                                        <select id="categorycode_entry" name="categorycode">
933
                                        <select id="categorycode_entry" name="categorycode">
930
                                            [% FOREACH category_type IN patron_categories.keys.sort %]
934
                                            [% FOREACH category_type IN patron_categories.keys.sort %]
931
                                                [% SET optgroup_label = t("Unknown") %]
935
                                                [% SET optgroup_label = t("Unknown") %]
Lines 980-986 Link Here
980
984
981
                                    [% UNLESS nosort1 %]
985
                                    [% UNLESS nosort1 %]
982
                                        <li>
986
                                        <li>
983
                                            <label for="sort1" [% IF mandatorysort1 %]class="required"[% END %]> Sort 1: </label>
987
                                            <label for="sort1" [% IF mandatorysort1 %]class="required"[% END %] id="sort1_label"> Sort 1: </label>
984
                                            [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=borrower_data.sort1, empty=1, size = 20 %]
988
                                            [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=borrower_data.sort1, empty=1, size = 20 %]
985
                                            [% IF ( mandatorysort1 ) %]
989
                                            [% IF ( mandatorysort1 ) %]
986
                                                <span class="required">Required</span>
990
                                                <span class="required">Required</span>
Lines 990-996 Link Here
990
994
991
                                    [% UNLESS nosort2 %]
995
                                    [% UNLESS nosort2 %]
992
                                        <li>
996
                                        <li>
993
                                            <label for="sort2" [% IF mandatorysort2 %]class="required"[% END %]> Sort 2: </label>
997
                                            <label for="sort2" [% IF mandatorysort2 %]class="required"[% END %] id="sort2_label"> Sort 2: </label>
994
                                            [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=borrower_data.sort2, empty=1, size = 20 %]
998
                                            [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=borrower_data.sort2, empty=1, size = 20 %]
995
                                            [% IF ( mandatorysort2 ) %]
999
                                            [% IF ( mandatorysort2 ) %]
996
                                                <span class="required">Required</span>
1000
                                                <span class="required">Required</span>
Lines 1000-1021 Link Here
1000
1004
1001
                                    [% UNLESS noautorenew_checkouts %]
1005
                                    [% UNLESS noautorenew_checkouts %]
1002
                                        <li class="radio">
1006
                                        <li class="radio">
1003
                                            <label for="yes-autorenew_checkouts"> Allow auto-renewal of items: </label>
1007
                                            <label for="yes-autorenew_checkouts" id="yes-autorenew_checkouts_label"> Allow auto-renewal of items: </label>
1004
                                            [% IF ( borrower_data.autorenew_checkouts || op == 'add_form' ) %]
1008
                                            [% IF ( borrower_data.autorenew_checkouts || op == 'add_form' ) %]
1005
                                                <label for="yes-autorenew_checkouts">
1009
                                                <label for="yes-autorenew_checkouts" id="yes-autorenew_checkouts_label">
1006
                                                    Yes
1010
                                                    Yes
1007
                                                    <input type="radio" id="yes-autorenew_checkouts" name="autorenew_checkouts" value="1" checked="checked" />
1011
                                                    <input type="radio" id="yes-autorenew_checkouts" name="autorenew_checkouts" value="1" checked="checked" />
1008
                                                </label>
1012
                                                </label>
1009
                                                <label for="no-autorenew_checkouts">
1013
                                                <label for="no-autorenew_checkouts" id="no-autorenew_checkouts_label">
1010
                                                    No
1014
                                                    No
1011
                                                    <input type="radio" id="no-autorenew_checkouts" name="autorenew_checkouts" value="0" />
1015
                                                    <input type="radio" id="no-autorenew_checkouts" name="autorenew_checkouts" value="0" />
1012
                                                </label>
1016
                                                </label>
1013
                                            [% ELSE %]
1017
                                            [% ELSE %]
1014
                                                <label for="yes-autorenew_checkouts">
1018
                                                <label for="yes-autorenew_checkouts" id="yes-autorenew_checkouts_label">
1015
                                                    Yes
1019
                                                    Yes
1016
                                                    <input type="radio" id="yes-autorenew_checkouts" name="autorenew_checkouts" value="1" />
1020
                                                    <input type="radio" id="yes-autorenew_checkouts" name="autorenew_checkouts" value="1" />
1017
                                                </label>
1021
                                                </label>
1018
                                                <label for="no-autorenew_checkouts">
1022
                                                <label for="no-autorenew_checkouts" id="no-autorenew_checkouts_label">
1019
                                                    No
1023
                                                    No
1020
                                                    <input type="radio" id="no-autorenew_checkouts" name="autorenew_checkouts" value="0" checked="checked" />
1024
                                                    <input type="radio" id="no-autorenew_checkouts" name="autorenew_checkouts" value="0" checked="checked" />
1021
                                                </label>
1025
                                                </label>
Lines 1025-1046 Link Here
1025
1029
1026
                                    [% UNLESS noprotected || !CanUpdateProtectPatron %]
1030
                                    [% UNLESS noprotected || !CanUpdateProtectPatron %]
1027
                                        <li class="radio">
1031
                                        <li class="radio">
1028
                                            <label for="protected">Protected:</label>
1032
                                            <label for="protected" id="protected_label">Protected:</label>
1029
                                            [% IF ( patron.protected == 1 ) %]
1033
                                            [% IF ( patron.protected == 1 ) %]
1030
                                                <label for="yes-protected">
1034
                                                <label for="yes-protected" id="yes-protected_label">
1031
                                                    Yes
1035
                                                    Yes
1032
                                                    <input type="radio" id="yes-protected" name="protected" value="1" checked="checked" />
1036
                                                    <input type="radio" id="yes-protected" name="protected" value="1" checked="checked" />
1033
                                                </label>
1037
                                                </label>
1034
                                                <label for="no-protected">
1038
                                                <label for="no-protected" id="no-protected_label">
1035
                                                    No
1039
                                                    No
1036
                                                    <input type="radio" id="no-protected" name="protected" value="0" />
1040
                                                    <input type="radio" id="no-protected" name="protected" value="0" />
1037
                                                </label>
1041
                                                </label>
1038
                                            [% ELSE %]
1042
                                            [% ELSE %]
1039
                                                <label for="yes-protected">
1043
                                                <label for="yes-protected" id="yes-protected_label">
1040
                                                    Yes
1044
                                                    Yes
1041
                                                    <input type="radio" id="yes-protected" name="protected" value="1" />
1045
                                                    <input type="radio" id="yes-protected" name="protected" value="1" />
1042
                                                </label>
1046
                                                </label>
1043
                                                <label for="no-protected">
1047
                                                <label for="no-protected" id="no-protected_label">
1044
                                                    No
1048
                                                    No
1045
                                                    <input type="radio" id="no-protected" name="protected" value="0" checked="checked" />
1049
                                                    <input type="radio" id="no-protected" name="protected" value="0" checked="checked" />
1046
                                                </label>
1050
                                                </label>
Lines 1050-1056 Link Here
1050
1054
1051
                                    [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
1055
                                    [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %]
1052
                                        <li>
1056
                                        <li>
1053
                                            <label for="checkprevcheckout">Check for previous checkouts: </label>
1057
                                            <label for="checkprevcheckout" id="checkprevcheckout_label">Check for previous checkouts: </label>
1054
                                            <select name="checkprevcheckout" id="checkprevcheckout">
1058
                                            <select name="checkprevcheckout" id="checkprevcheckout">
1055
                                                [% IF ( borrower_data.checkprevcheckout == 'yes' ) %]
1059
                                                [% IF ( borrower_data.checkprevcheckout == 'yes' ) %]
1056
                                                    <option value="yes" selected="selected">Yes if settings allow it</option>
1060
                                                    <option value="yes" selected="selected">Yes if settings allow it</option>
Lines 1071-1077 Link Here
1071
1075
1072
                                    [% IF Koha.Preference('TranslateNotices') %]
1076
                                    [% IF Koha.Preference('TranslateNotices') %]
1073
                                        <li>
1077
                                        <li>
1074
                                            <label for="lang">Preferred language for notices: </label>
1078
                                            <label for="lang" id="lang_label">Preferred language for notices: </label>
1075
                                            <select id="lang" name="lang">
1079
                                            <select id="lang" name="lang">
1076
                                                <option value="default">Default</option>
1080
                                                <option value="default">Default</option>
1077
                                                [% FOR language IN languages %]
1081
                                                [% FOR language IN languages %]
Lines 1112-1118 Link Here
1112
                                    <ol>
1116
                                    <ol>
1113
                                        [% UNLESS nodateenrolled %]
1117
                                        [% UNLESS nodateenrolled %]
1114
                                            <li>
1118
                                            <li>
1115
                                                <label for="from" [% IF mandatorydateenrolled %]class="required"[% END %]> Registration date: </label>
1119
                                                <label for="from" [% IF mandatorydateenrolled %]class="required"[% END %] id="from_label"> Registration date: </label>
1116
                                                <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% borrower_data.dateenrolled | html %]" class="flatpickr" data-date_to="to" />
1120
                                                <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% borrower_data.dateenrolled | html %]" class="flatpickr" data-date_to="to" />
1117
                                                [% IF ( mandatorydateenrolled ) %]
1121
                                                [% IF ( mandatorydateenrolled ) %]
1118
                                                    <span class="required">Required</span>
1122
                                                    <span class="required">Required</span>
Lines 1125-1131 Link Here
1125
                                        [% END # /UNLESS nodateenrolled %]
1129
                                        [% END # /UNLESS nodateenrolled %]
1126
1130
1127
                                        <li [% IF nodateexpiry %]style="display:none"[% END %]>
1131
                                        <li [% IF nodateexpiry %]style="display:none"[% END %]>
1128
                                            <label for="to" [% IF mandatorydateexpiry %]class="required"[% END %]> Expiry date (leave blank for auto calc): </label>
1132
                                            <label for="to" [% IF mandatorydateexpiry %]class="required"[% END %] id="to_label"> Expiry date (leave blank for auto calc): </label>
1129
                                            [% UNLESS ( op == 'add_form' ) %]
1133
                                            [% UNLESS ( op == 'add_form' ) %]
1130
                                                <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% borrower_data.dateexpiry | html UNLESS op == 'duplicate' %]" class="flatpickr" />
1134
                                                <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% borrower_data.dateexpiry | html UNLESS op == 'duplicate' %]" class="flatpickr" />
1131
                                            [% ELSE %]
1135
                                            [% ELSE %]
Lines 1142-1148 Link Here
1142
1146
1143
                                        [% UNLESS noopacnote %]
1147
                                        [% UNLESS noopacnote %]
1144
                                            <li>
1148
                                            <li>
1145
                                                <label for="opacnote" [% IF mandatoryopacnote %]class="required"[% END %]> OPAC note: </label>
1149
                                                <label for="opacnote" [% IF mandatoryopacnote %]class="required"[% END %] id="opacnote_label"> OPAC note: </label>
1146
                                                <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% borrower_data.opacnote | html UNLESS op == 'duplicate' %]</textarea>
1150
                                                <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% borrower_data.opacnote | html UNLESS op == 'duplicate' %]</textarea>
1147
                                                <div class="hint">This message appears on this patron's user page in the OPAC</div>
1151
                                                <div class="hint">This message appears on this patron's user page in the OPAC</div>
1148
                                                [% IF ( mandatoryopacnote ) %]
1152
                                                [% IF ( mandatoryopacnote ) %]
Lines 1153-1159 Link Here
1153
1157
1154
                                        [% UNLESS noborrowernotes %]
1158
                                        [% UNLESS noborrowernotes %]
1155
                                            <li>
1159
                                            <li>
1156
                                                <label for="borrowernotes" [% IF mandatoryborrowernotes %]class="required"[% END %]> Circulation note: </label>
1160
                                                <label for="borrowernotes" [% IF mandatoryborrowernotes %]class="required"[% END %] id="borrowernotes_label"> Circulation note: </label>
1157
                                                <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrower_data.borrowernotes | $raw UNLESS op == 'duplicate' %]</textarea>
1161
                                                <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrower_data.borrowernotes | $raw UNLESS op == 'duplicate' %]</textarea>
1158
                                                <div class="hint">This message displays when checking out to this patron</div>
1162
                                                <div class="hint">This message displays when checking out to this patron</div>
1159
                                                [% IF ( mandatoryborrowernotes ) %]
1163
                                                [% IF ( mandatoryborrowernotes ) %]
Lines 1175-1181 Link Here
1175
                                    <ol>
1179
                                    <ol>
1176
                                        [% UNLESS nouserid %]
1180
                                        [% UNLESS nouserid %]
1177
                                            <li>
1181
                                            <li>
1178
                                                <label for="userid" [% IF mandatoryuserid %]class="required"[% END %]> Username: </label>
1182
                                                <label for="userid" [% IF mandatoryuserid %]class="required"[% END %] id="userid_label"> Username: </label>
1179
1183
1180
                                                [%# Dummy input to avoid Firefox from using userid/password saved for authentication %]
1184
                                                [%# Dummy input to avoid Firefox from using userid/password saved for authentication %]
1181
                                                <input type="text" disabled="disabled" style="display:none" />
1185
                                                <input type="text" disabled="disabled" style="display:none" />
Lines 1202-1208 Link Here
1202
1206
1203
                                        [% UNLESS nopassword %]
1207
                                        [% UNLESS nopassword %]
1204
                                            <li>
1208
                                            <li>
1205
                                                <label for="password" [% IF mandatorypassword %]class="required"[% END %]> Password: </label>
1209
                                                <label for="password" [% IF mandatorypassword %]class="required"[% END %] id="password_label"> Password: </label>
1206
                                                [% IF ( op == 'add_form' ) %]
1210
                                                [% IF ( op == 'add_form' ) %]
1207
                                                    [% IF ( NoUpdateLogin ) %]
1211
                                                    [% IF ( NoUpdateLogin ) %]
1208
                                                        [% IF ( op == 'duplicate' ) %]
1212
                                                        [% IF ( op == 'duplicate' ) %]
Lines 1253-1259 Link Here
1253
                                            </li>
1257
                                            </li>
1254
1258
1255
                                            <li>
1259
                                            <li>
1256
                                                <label for="password2" [% IF mandatorypassword %]class="required"[% END %]> Confirm password: </label>
1260
                                                <label for="password2" [% IF mandatorypassword %]class="required"[% END %] id="password2_label"> Confirm password: </label>
1257
                                                [% IF ( op == 'add_form' ) %]
1261
                                                [% IF ( op == 'add_form' ) %]
1258
                                                    [% IF ( NoUpdateLogin ) %]
1262
                                                    [% IF ( NoUpdateLogin ) %]
1259
                                                        [% IF ( op == 'duplicate' ) %]
1263
                                                        [% IF ( op == 'duplicate' ) %]
Lines 1298-1304 Link Here
1298
                                        [% END # /UNLESS nopassword %]
1302
                                        [% END # /UNLESS nopassword %]
1299
                                        [% UNLESS ( !CanUpdatePasswordExpiration ) %]
1303
                                        [% UNLESS ( !CanUpdatePasswordExpiration ) %]
1300
                                            <li>
1304
                                            <li>
1301
                                                <label for="password_expiration_date">Password expiration date:</label>
1305
                                                <label for="password_expiration_date" id="password_expiration_date_label">Password expiration date:</label>
1302
                                                <input type="text" id="password_expiration_date" name="password_expiration_date" maxlength="10" size="10" value="[% borrower_data.password_expiration_date | html %]" class="flatpickr" />
1306
                                                <input type="text" id="password_expiration_date" name="password_expiration_date" maxlength="10" size="10" value="[% borrower_data.password_expiration_date | html %]" class="flatpickr" />
1303
                                            </li>
1307
                                            </li>
1304
                                        [% END %]
1308
                                        [% END %]
Lines 1319-1327 Link Here
1319
                                        <ol class="radio">
1323
                                        <ol class="radio">
1320
                                            [% UNLESS nogonenoaddress %]
1324
                                            [% UNLESS nogonenoaddress %]
1321
                                                <li>
1325
                                                <li>
1322
                                                    <label class="radio [% IF mandatorygonenoaddress %]required[% END %]" for="yesgonenoaddress"> Address correction needed: </label>
1326
                                                    <label class="radio [% IF mandatorygonenoaddress %]required[% END %]" for="yesgonenoaddress" id="yesgonenoaddress_label"> Address correction needed: </label>
1323
                                                    [% IF CAN_user_circulate_manage_restrictions %]
1327
                                                    [% IF CAN_user_circulate_manage_restrictions %]
1324
                                                        <label for="yesgonenoaddress">
1328
                                                        <label for="yesgonenoaddress" id="yesgonenoaddress_label">
1325
                                                            [% IF ( borrower_data.gonenoaddress ) %]
1329
                                                            [% IF ( borrower_data.gonenoaddress ) %]
1326
                                                                <input type="radio" id="yesgonenoaddress" name="gonenoaddress" value="1" checked="checked" />
1330
                                                                <input type="radio" id="yesgonenoaddress" name="gonenoaddress" value="1" checked="checked" />
1327
                                                            [% ELSE %]
1331
                                                            [% ELSE %]
Lines 1329-1335 Link Here
1329
                                                            [% END %]
1333
                                                            [% END %]
1330
                                                            Yes
1334
                                                            Yes
1331
                                                        </label>
1335
                                                        </label>
1332
                                                        <label for="nogonenoaddress">
1336
                                                        <label for="nogonenoaddress" id="nogonenoaddress_label">
1333
                                                            [% IF ( borrower_data.gonenoaddress ) %]
1337
                                                            [% IF ( borrower_data.gonenoaddress ) %]
1334
                                                                <input type="radio" id="nogonenoaddress" name="gonenoaddress" value="0" />
1338
                                                                <input type="radio" id="nogonenoaddress" name="gonenoaddress" value="0" />
1335
                                                            [% ELSE %]
1339
                                                            [% ELSE %]
Lines 1349-1355 Link Here
1349
                                                <li>
1353
                                                <li>
1350
                                                    <label class="radio [% IF mandatorylost %]required[% END %]" for="yeslost"> Lost card: </label>
1354
                                                    <label class="radio [% IF mandatorylost %]required[% END %]" for="yeslost"> Lost card: </label>
1351
                                                    [% IF CAN_user_circulate_manage_restrictions %]
1355
                                                    [% IF CAN_user_circulate_manage_restrictions %]
1352
                                                        <label for="yeslost">
1356
                                                        <label for="yeslost" id="yeslost_label">
1353
                                                            [% IF ( borrower_data.lost ) %]
1357
                                                            [% IF ( borrower_data.lost ) %]
1354
                                                                <input type="radio" id="yeslost" name="lost" value="1" checked="checked" />
1358
                                                                <input type="radio" id="yeslost" name="lost" value="1" checked="checked" />
1355
                                                            [% ELSE %]
1359
                                                            [% ELSE %]
Lines 1357-1363 Link Here
1357
                                                            [% END %]
1361
                                                            [% END %]
1358
                                                            Yes
1362
                                                            Yes
1359
                                                        </label>
1363
                                                        </label>
1360
                                                        <label for="nolost">
1364
                                                        <label for="nolost" id="nolost_label">
1361
                                                            [% IF ( borrower_data.lost ) %]
1365
                                                            [% IF ( borrower_data.lost ) %]
1362
                                                                <input type="radio" id="nolost" name="lost" value="0" />
1366
                                                                <input type="radio" id="nolost" name="lost" value="0" />
1363
                                                            [% ELSE %]
1367
                                                            [% ELSE %]
Lines 1440-1446 Link Here
1440
                                            <ol>
1444
                                            <ol>
1441
                                                [% IF Koha.Preference('PatronRestrictionTypes') %]
1445
                                                [% IF Koha.Preference('PatronRestrictionTypes') %]
1442
                                                    <li>
1446
                                                    <li>
1443
                                                        <label for="debarred_type">Type:</label>
1447
                                                        <label for="debarred_type" id="debarred_type_label">Type:</label>
1444
                                                        <select name="debarred_type">
1448
                                                        <select name="debarred_type">
1445
                                                            [% FOREACH restriction_type IN restriction_types %]
1449
                                                            [% FOREACH restriction_type IN restriction_types %]
1446
                                                                [% IF !restriction_type.is_system %]
1450
                                                                [% IF !restriction_type.is_system %]
Lines 1455-1465 Link Here
1455
                                                    </li>
1459
                                                    </li>
1456
                                                [% END %]
1460
                                                [% END %]
1457
                                                <li>
1461
                                                <li>
1458
                                                    <label for="debarred_comment">Comment: </label>
1462
                                                    <label for="debarred_comment" id="debarred_comment_label">Comment: </label>
1459
                                                    <input type="text" id="debarred_comment" name="debarred_comment" />
1463
                                                    <input type="text" id="debarred_comment" name="debarred_comment" />
1460
                                                </li>
1464
                                                </li>
1461
                                                <li>
1465
                                                <li>
1462
                                                    <label for="debarred_expiration">Expiration: </label>
1466
                                                    <label for="debarred_expiration" id="debarred_expiration_label">Expiration: </label>
1463
                                                    <input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="flatpickr" type="text" />
1467
                                                    <input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="flatpickr" type="text" />
1464
                                                    <a href="#" id="clear_debarred_expiration">Clear date</a>
1468
                                                    <a href="#" id="clear_debarred_expiration">Clear date</a>
1465
                                                </li>
1469
                                                </li>
Lines 1484-1513 Link Here
1484
                                    </legend>
1488
                                    </legend>
1485
                                    <ol class="radio">
1489
                                    <ol class="radio">
1486
                                        <li>
1490
                                        <li>
1487
                                            <label class="radio" for="housebound_chooser"> Chooser: </label>
1491
                                            <label class="radio" for="housebound_chooser" id="housebound_chooser_label"> Chooser: </label>
1488
                                            [% IF ( housebound_role.housebound_chooser == 1 ) %]
1492
                                            [% IF ( housebound_role.housebound_chooser == 1 ) %]
1489
                                                <label for="yes_housebound_chooser">Yes </label>
1493
                                                <label for="yes_housebound_chooser" id="yes_housebound_chooser_label">Yes </label>
1490
                                                <input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" checked="checked" />
1494
                                                <input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" checked="checked" />
1491
                                                <label for="no_housebound_chooser">No </label>
1495
                                                <label for="no_housebound_chooser" id="no_housebound_chooser_label">No </label>
1492
                                                <input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" />
1496
                                                <input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" />
1493
                                            [% ELSE %]
1497
                                            [% ELSE %]
1494
                                                <label for="yes_housebound_chooser">Yes </label>
1498
                                                <label for="yes_housebound_chooser" id="yes_housebound_chooser_label">Yes </label>
1495
                                                <input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" />
1499
                                                <input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" />
1496
                                                <label for="no_housebound_chooser">No </label>
1500
                                                <label for="no_housebound_chooser" id="no_housebound_chooser_label">No </label>
1497
                                                <input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" checked="checked" />
1501
                                                <input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" checked="checked" />
1498
                                            [% END %]
1502
                                            [% END %]
1499
                                        </li>
1503
                                        </li>
1500
                                        <li>
1504
                                        <li>
1501
                                            <label class="radio" for="housebound_deliverer">Deliverer:</label>
1505
                                            <label class="radio" for="housebound_deliverer" id="housebound_deliverer_label">Deliverer:</label>
1502
                                            [% IF ( housebound_role.housebound_deliverer == 1 ) %]
1506
                                            [% IF ( housebound_role.housebound_deliverer == 1 ) %]
1503
                                                <label for="yes_housebound_deliverer">Yes </label>
1507
                                                <label for="yes_housebound_deliverer" id="yes_housebound_deliverer_label">Yes </label>
1504
                                                <input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" checked="checked" />
1508
                                                <input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" checked="checked" />
1505
                                                <label for="no_housebound_deliverer">No </label>
1509
                                                <label for="no_housebound_deliverer" id="no_housebound_deliverer_label">No </label>
1506
                                                <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" />
1510
                                                <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" />
1507
                                            [% ELSE %]
1511
                                            [% ELSE %]
1508
                                                <label for="yes_housebound_deliverer">Yes </label>
1512
                                                <label for="yes_housebound_deliverer" id="yes_housebound_deliverer_label">Yes </label>
1509
                                                <input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" />
1513
                                                <input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" />
1510
                                                <label for="no_housebound_deliverer">No </label>
1514
                                                <label for="no_housebound_deliverer" id="no_housebound_deliverer_label">No </label>
1511
                                                <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" />
1515
                                                <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" />
1512
                                            [% END %]
1516
                                            [% END %]
1513
                                        </li>
1517
                                        </li>
Lines 1538-1551 Link Here
1538
                                        [% IF ( SMSSendDriver ) %]
1542
                                        [% IF ( SMSSendDriver ) %]
1539
                                            [% IF !nosmsalertnumber %]
1543
                                            [% IF !nosmsalertnumber %]
1540
                                                <p>
1544
                                                <p>
1541
                                                    <label for="SMSnumber">SMS number:</label>
1545
                                                    <label for="SMSnumber" id="SMSnumber_label">SMS number:</label>
1542
                                                    <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" />
1546
                                                    <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" />
1543
                                                    <span class="hint sms_number_help">Please enter numbers only. Prefix the number with + or 00 if including the country code.</span>
1547
                                                    <span class="hint sms_number_help">Please enter numbers only. Prefix the number with + or 00 if including the country code.</span>
1544
                                                </p>
1548
                                                </p>
1545
                                            [% END %]
1549
                                            [% END %]
1546
                                            [% IF SMSSendDriver == 'Email' && !nosms_provider_id %]
1550
                                            [% IF SMSSendDriver == 'Email' && !nosms_provider_id %]
1547
                                                <p>
1551
                                                <p>
1548
                                                    <label for="sms_provider_id">SMS provider:</label>
1552
                                                    <label for="sms_provider_id" id="sms_provider_id_label">SMS provider:</label>
1549
                                                    <select id="sms_provider_id" name="sms_provider_id">
1553
                                                    <select id="sms_provider_id" name="sms_provider_id">
1550
                                                        <option value="">Unknown</option>
1554
                                                        <option value="">Unknown</option>
1551
                                                        [% FOREACH s IN sms_providers %]
1555
                                                        [% FOREACH s IN sms_providers %]
1552
- 

Return to bug 41638