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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-43 / +43 lines)
Lines 49-57 legend:hover { Link Here
49
                <li>
49
                <li>
50
                    <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
50
                    <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
51
                </li>
51
                </li>
52
                [% IF (firstname || surname ) %]
52
                [% IF (borrower_data.firstname || borrower_data.surname ) %]
53
                    <li>
53
                    <li>
54
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">
54
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower_data.borrowernumber | uri %]">
55
                            [% INCLUDE 'patron-title.inc' %]
55
                            [% INCLUDE 'patron-title.inc' %]
56
                        </a>
56
                        </a>
57
                    </li>
57
                    </li>
Lines 76-83 legend:hover { Link Here
76
76
77
    <div class="main container-fluid">
77
    <div class="main container-fluid">
78
        <div class="row">
78
        <div class="row">
79
            [% IF messages %]
79
            [% IF borrower_data.messages %]
80
                [% FOR message IN messages %]
80
                [% FOR message IN borrower_data.messages %]
81
                    [% SWITCH message.error %]
81
                    [% SWITCH message.error %]
82
                        [% CASE 'error_on_insert_patron' %]
82
                        [% CASE 'error_on_insert_patron' %]
83
                            <div class="dialog alert">Something went wrong when creating the patron. Check the logs.</div>
83
                            <div class="dialog alert">Something went wrong when creating the patron. Check the logs.</div>
Lines 226-232 legend:hover { Link Here
226
                                [% IF opadd %]
226
                                [% IF opadd %]
227
                                    <a class="btn btn-default" href="/cgi-bin/koha/members/member.pl" class="toggler save_entryform">
227
                                    <a class="btn btn-default" href="/cgi-bin/koha/members/member.pl" class="toggler save_entryform">
228
                                [% ELSE %]
228
                                [% ELSE %]
229
                                    <a class="btn btn-default" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]">
229
                                    <a class="btn btn-default" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower_data.borrowernumber | html %]">
230
                                [% END %]
230
                                [% END %]
231
                                    <i class="fa fa-times"></i> Cancel
231
                                    <i class="fa fa-times"></i> Cancel
232
                                </a>
232
                                </a>
Lines 243-249 legend:hover { Link Here
243
                            <input type="hidden" name="updtype" value="[% updtype | html %]" />
243
                            <input type="hidden" name="updtype" value="[% updtype | html %]" />
244
                            <input type="hidden" name="destination" value="[% destination | html %]" />
244
                            <input type="hidden" name="destination" value="[% destination | html %]" />
245
                            <input type="hidden" name="check_member" value="[% check_member | html %]" />
245
                            <input type="hidden" name="check_member" value="[% check_member | html %]" />
246
                            <input type="hidden" name="borrowernumber" value="[% borrowernumber | html UNLESS opduplicate %]" />
246
                            <input type="hidden" name="borrowernumber" value="[% borrower_data.borrowernumber | html UNLESS opduplicate %]" />
247
                            <input type="hidden" name="nodouble"  value="[% nodouble | html UNLESS opduplicate %]" />
247
                            <input type="hidden" name="nodouble"  value="[% nodouble | html UNLESS opduplicate %]" />
248
                            <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
248
                            <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
249
                            [% IF ( step ) %]
249
                            [% IF ( step ) %]
Lines 257-264 legend:hover { Link Here
257
                                <input type="hidden" name="op" value="save" />
257
                                <input type="hidden" name="op" value="save" />
258
                                [% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 || step == 7 %]
258
                                [% IF step == 4 || step == 5 || step == 6 || step == 2 || step == 1 || step == 7 %]
259
                                    [%# Only put the card number if we arent showing it in the form later %]
259
                                    [%# Only put the card number if we arent showing it in the form later %]
260
                                    [% IF cardnumber %]
260
                                    [% IF borrower_data.cardnumber %]
261
                                        <input type="hidden" name="cardnumber" value="[% cardnumber | html %]" />
261
                                        <input type="hidden" name="cardnumber" value="[% borrower_data.cardnumber | html %]" />
262
                                    [% END %]
262
                                    [% END %]
263
                                [% END %]
263
                                [% END %]
264
                            [% END %]
264
                            [% END %]
Lines 312-320 legend:hover { Link Here
312
                                                    [% END %]
312
                                                    [% END %]
313
313
314
                                                    [% IF ( uppercasesurnames ) %]
314
                                                    [% IF ( uppercasesurnames ) %]
315
                                                        <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="[% surname | html %]" />
315
                                                        <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20"  value="[% borrower_data.surname | html %]" />
316
                                                    [% ELSE %]
316
                                                    [% ELSE %]
317
                                                        <input type="text" id="surname" name="surname" size="20"  value="[% surname | html %]" />
317
                                                        <input type="text" id="surname" name="surname" size="20"  value="[% borrower_data.surname | html %]" />
318
                                                    [% END %]
318
                                                    [% END %]
319
                                                    [% IF ( mandatorysurname ) %]
319
                                                    [% IF ( mandatorysurname ) %]
320
                                                        <span class="required">Required</span>
320
                                                        <span class="required">Required</span>
Lines 332-338 legend:hover { Link Here
332
                                                        [% END %]
332
                                                        [% END %]
333
                                                            First name:
333
                                                            First name:
334
                                                        </label>
334
                                                        </label>
335
                                                        <input type="text" id="firstname" name="firstname" size="20"  value="[% firstname | html UNLESS opduplicate %]" />
335
                                                        <input type="text" id="firstname" name="firstname" size="20"  value="[% borrower_data.firstname | html UNLESS opduplicate %]" />
336
                                                        [% IF ( mandatoryfirstname ) %]
336
                                                        [% IF ( mandatoryfirstname ) %]
337
                                                            <span class="required">Required</span>
337
                                                            <span class="required">Required</span>
338
                                                        [% END %]
338
                                                        [% END %]
Lines 347-353 legend:hover { Link Here
347
                                                        [% END %]
347
                                                        [% END %]
348
                                                        Date of birth:
348
                                                        Date of birth:
349
                                                        </label>
349
                                                        </label>
350
                                                        <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="[% dateofbirth | html UNLESS opduplicate %]" class="flatpickr" />
350
                                                        <input type="text" id="dateofbirth" name="dateofbirth" size="20" value="[% borrower_data.dateofbirth | html UNLESS opduplicate %]" class="flatpickr" />
351
                                                         [% IF ( mandatorydateofbirth ) %]
351
                                                         [% IF ( mandatorydateofbirth ) %]
352
                                                            <span class="required">Required</span>
352
                                                            <span class="required">Required</span>
353
                                                        [% END %]
353
                                                        [% END %]
Lines 366-372 legend:hover { Link Here
366
                                                        [% END %]
366
                                                        [% END %]
367
                                                            Initials:
367
                                                            Initials:
368
                                                        </label>
368
                                                        </label>
369
                                                        <input type="text" id="initials" name="initials" size="20"  value="[% initials | html UNLESS opduplicate %]" />
369
                                                        <input type="text" id="initials" name="initials" size="20"  value="[% borrower_data.initials | html UNLESS opduplicate %]" />
370
                                                        [% IF ( mandatoryinitials ) %]
370
                                                        [% IF ( mandatoryinitials ) %]
371
                                                            <span class="required">Required</span>
371
                                                            <span class="required">Required</span>
372
                                                        [% END %]
372
                                                        [% END %]
Lines 382-388 legend:hover { Link Here
382
                                                    [% END %]
382
                                                    [% END %]
383
                                                        Other name:
383
                                                        Other name:
384
                                                    </label>
384
                                                    </label>
385
                                                    <input type="text" id="othernames" name="othernames" size="20"  value="[% othernames | html UNLESS opduplicate %]" />
385
                                                    <input type="text" id="othernames" name="othernames" size="20"  value="[% borrower_data.othernames | html UNLESS opduplicate %]" />
386
                                                    [% IF ( mandatoryothernames ) %]
386
                                                    [% IF ( mandatoryothernames ) %]
387
                                                        <span class="required">Required</span>
387
                                                        <span class="required">Required</span>
388
                                                    [% END %]
388
                                                    [% END %]
Lines 443-449 legend:hover { Link Here
443
                                                                    [% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %]
443
                                                                    [% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %]
444
                                                                </li>
444
                                                                </li>
445
                                                                <li>
445
                                                                <li>
446
                                                                    <span class="label">Relationship:</span>
446
                                                                    <span class="label">borrower_data.Relationship:</span>
447
                                                                    <span>[% r.relationship | html %]</span>
447
                                                                    <span>[% r.relationship | html %]</span>
448
                                                                </li>
448
                                                                </li>
449
                                                            [% ELSE %]
449
                                                            [% ELSE %]
Lines 452-458 legend:hover { Link Here
452
                                                                    [% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %]
452
                                                                    [% INCLUDE 'patron-title.inc' patron=r.guarantor hide_patron_infos_if_needed=1 %]
453
                                                                </li>
453
                                                                </li>
454
                                                                <li>
454
                                                                <li>
455
                                                                    <span class="label">Relationship:</span>
455
                                                                    <span class="label">borrower_data.Relationship:</span>
456
                                                                    <span>[% r.relationship | html %]</span>
456
                                                                    <span>[% r.relationship | html %]</span>
457
                                                                </li>
457
                                                                </li>
458
458
Lines 561-567 legend:hover { Link Here
561
                                                    <li>
561
                                                    <li>
562
                                                        <label for="privacy_guarantor_checkouts">Show checkouts to guarantors</label>
562
                                                        <label for="privacy_guarantor_checkouts">Show checkouts to guarantors</label>
563
                                                        <select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts">
563
                                                        <select name="privacy_guarantor_checkouts" id="privacy_guarantor_checkouts">
564
                                                            [% IF privacy_guarantor_checkouts %]
564
                                                            [% IF borrower_data.privacy_guarantor_checkouts %]
565
                                                                <option value="0">No</option>
565
                                                                <option value="0">No</option>
566
                                                                <option value="1" selected>Yes</option>
566
                                                                <option value="1" selected>Yes</option>
567
                                                            [% ELSE %]
567
                                                            [% ELSE %]
Lines 576-582 legend:hover { Link Here
576
                                                    <li>
576
                                                    <li>
577
                                                        <label for="privacy_guarantor_fines">Show fines to guarantors</label>
577
                                                        <label for="privacy_guarantor_fines">Show fines to guarantors</label>
578
                                                        <select name="privacy_guarantor_fines" id="privacy_guarantor_fines">
578
                                                        <select name="privacy_guarantor_fines" id="privacy_guarantor_fines">
579
                                                            [% IF privacy_guarantor_fines %]
579
                                                            [% IF borrower_data.privacy_guarantor_fines %]
580
                                                                <option value="0">No</option>
580
                                                                <option value="0">No</option>
581
                                                                <option value="1" selected>Yes</option>
581
                                                                <option value="1" selected>Yes</option>
582
                                                            [% ELSE %]
582
                                                            [% ELSE %]
Lines 636-642 legend:hover { Link Here
636
                                                            <select class="relationship" name="relationship">
636
                                                            <select class="relationship" name="relationship">
637
                                                                <option value=""></option>
637
                                                                <option value=""></option>
638
                                                                [% FOREACH pr IN possible_relationships.split('\|') %]
638
                                                                [% FOREACH pr IN possible_relationships.split('\|') %]
639
                                                                    [% IF pr == relationship %]
639
                                                                    [% IF pr == borrower_data.relationship %]
640
                                                                        <option value="[% pr | html %]" selected="selected">[% pr | html %]</option>
640
                                                                        <option value="[% pr | html %]" selected="selected">[% pr | html %]</option>
641
                                                                    [% ELSE %]
641
                                                                    [% ELSE %]
642
                                                                        <option value="[% pr | html %]">[% pr | html %]</option>
642
                                                                        <option value="[% pr | html %]">[% pr | html %]</option>
Lines 860-887 legend:hover { Link Here
860
860
861
                                                <!-- NOTE: div.hint closing tag isn't on the same line -->
861
                                                <!-- NOTE: div.hint closing tag isn't on the same line -->
862
                                                [% IF minlength_cardnumber == maxlength_cardnumber %]
862
                                                [% IF minlength_cardnumber == maxlength_cardnumber %]
863
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
863
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% borrower_data.cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
864
                                                    [% IF mandatorycardnumber %]
864
                                                    [% IF mandatorycardnumber %]
865
                                                        <span class="required">Required</span>
865
                                                        <span class="required">Required</span>
866
                                                    [% END %]
866
                                                    [% END %]
867
                                                    <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
867
                                                    <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
868
                                                    <div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters.
868
                                                    <div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters.
869
                                                [% ELSIF minlength_cardnumber && maxlength_cardnumber %]
869
                                                [% ELSIF minlength_cardnumber && maxlength_cardnumber %]
870
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
870
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% borrower_data.cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
871
                                                    [% IF mandatorycardnumber %]
871
                                                    [% IF mandatorycardnumber %]
872
                                                        <span class="required">Required</span>
872
                                                        <span class="required">Required</span>
873
                                                    [% END %]
873
                                                    [% END %]
874
                                                    <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
874
                                                    <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
875
                                                    <div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters.
875
                                                    <div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters.
876
                                                [% ELSIF maxlength_cardnumber %]
876
                                                [% ELSIF maxlength_cardnumber %]
877
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
877
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% borrower_data.cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" />
878
                                                    [% IF mandatorycardnumber %]
878
                                                    [% IF mandatorycardnumber %]
879
                                                        <span class="required">Required</span>
879
                                                        <span class="required">Required</span>
880
                                                    [% END %]
880
                                                    [% END %]
881
                                                    <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
881
                                                    <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span>
882
                                                    <div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters.
882
                                                    <div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters.
883
                                                [% ELSE %]
883
                                                [% ELSE %]
884
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" />
884
                                                    <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% borrower_data.cardnumber | html %]" />
885
                                                    [% IF mandatorycardnumber %]
885
                                                    [% IF mandatorycardnumber %]
886
                                                        <span class="required">Required</span>
886
                                                        <span class="required">Required</span>
887
                                                    [% END %]
887
                                                    [% END %]
Lines 998-1008 legend:hover { Link Here
998
                                            <li>
998
                                            <li>
999
                                                <label for="checkprevcheckout">Check for previous checkouts: </label>
999
                                                <label for="checkprevcheckout">Check for previous checkouts: </label>
1000
                                                <select name="checkprevcheckout" id="checkprevcheckout">
1000
                                                <select name="checkprevcheckout" id="checkprevcheckout">
1001
                                                    [% IF ( checkprevcheckout == 'yes' ) %]
1001
                                                    [% IF ( borrower_data.checkprevcheckout == 'yes' ) %]
1002
                                                        <option value="yes" selected="selected">Yes if settings allow it</option>
1002
                                                        <option value="yes" selected="selected">Yes if settings allow it</option>
1003
                                                        <option value="no">No if settings allow it</option>
1003
                                                        <option value="no">No if settings allow it</option>
1004
                                                        <option value="inherit">Inherit from settings</option>
1004
                                                        <option value="inherit">Inherit from settings</option>
1005
                                                    [% ELSIF ( checkprevcheckout == 'no' ) %]
1005
                                                    [% ELSIF ( borrower_data.checkprevcheckout == 'no' ) %]
1006
                                                        <option value="yes">Yes if settings allow it</option>
1006
                                                        <option value="yes">Yes if settings allow it</option>
1007
                                                        <option value="no" selected="selected">No if settings allow it</option>
1007
                                                        <option value="no" selected="selected">No if settings allow it</option>
1008
                                                        <option value="inherit">Inherit from settings</option>
1008
                                                        <option value="inherit">Inherit from settings</option>
Lines 1023-1035 legend:hover { Link Here
1023
                                                    [% FOR language IN languages %]
1023
                                                    [% FOR language IN languages %]
1024
                                                        [% FOR sublanguage IN language.sublanguages_loop %]
1024
                                                        [% FOR sublanguage IN language.sublanguages_loop %]
1025
                                                            [% IF language.plural %]
1025
                                                            [% IF language.plural %]
1026
                                                                [% IF sublanguage.rfc4646_subtag == lang %]
1026
                                                                [% IF sublanguage.rfc4646_subtag == borrower_data.lang %]
1027
                                                                    <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
1027
                                                                    <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
1028
                                                                [% ELSE %]
1028
                                                                [% ELSE %]
1029
                                                                    <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
1029
                                                                    <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
1030
                                                                [% END %]
1030
                                                                [% END %]
1031
                                                            [% ELSE %]
1031
                                                            [% ELSE %]
1032
                                                                [% IF sublanguage.rfc4646_subtag == lang %]
1032
                                                                [% IF sublanguage.rfc4646_subtag == borrower_data.lang %]
1033
                                                                    <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
1033
                                                                    <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
1034
                                                                [% ELSE %]
1034
                                                                [% ELSE %]
1035
                                                                    <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
1035
                                                                    <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option>
Lines 1055-1061 legend:hover { Link Here
1055
                                                [% END %]
1055
                                                [% END %]
1056
                                                    Registration date:
1056
                                                    Registration date:
1057
                                                </label>
1057
                                                </label>
1058
                                                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% dateenrolled | html %]" class="flatpickr" data-date_to="to" />
1058
                                                <input type="text" id="from" name="dateenrolled"  maxlength="10" size="10" value="[% borrower_data.dateenrolled | html %]" class="flatpickr" data-date_to="to" />
1059
                                                [% IF ( mandatorydateenrolled ) %]
1059
                                                [% IF ( mandatorydateenrolled ) %]
1060
                                                    <span class="required">Required</span>
1060
                                                    <span class="required">Required</span>
1061
                                                [% END %]
1061
                                                [% END %]
Lines 1079-1087 legend:hover { Link Here
1079
                                                    Expiry date (leave blank for auto calc):
1079
                                                    Expiry date (leave blank for auto calc):
1080
                                                </label>
1080
                                                </label>
1081
                                                [% UNLESS ( opadd ) %]
1081
                                                [% UNLESS ( opadd ) %]
1082
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="flatpickr" />
1082
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% borrower_data.dateexpiry | html UNLESS opduplicate %]" class="flatpickr" />
1083
                                                [% ELSE %]
1083
                                                [% ELSE %]
1084
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% dateexpiry | html %]" class="flatpickr" />
1084
                                                    <input type="text" id="to" name="dateexpiry" maxlength="10"  size="10" value="[% borrower_data.dateexpiry | html %]" class="flatpickr" />
1085
                                                [% END %]
1085
                                                [% END %]
1086
                                                [% IF ( mandatorydateexpiry ) %]
1086
                                                [% IF ( mandatorydateexpiry ) %]
1087
                                                    <span class="required">Required</span>
1087
                                                    <span class="required">Required</span>
Lines 1101-1107 legend:hover { Link Here
1101
                                                    [% END %]
1101
                                                    [% END %]
1102
                                                        OPAC note:
1102
                                                        OPAC note:
1103
                                                    </label>
1103
                                                    </label>
1104
                                                    <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote | html UNLESS opduplicate %]</textarea>
1104
                                                    <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% borrower_data.opacnote | html UNLESS opduplicate %]</textarea>
1105
                                                    <div class="hint">This message appears on this patron's user page in the OPAC</div>
1105
                                                    <div class="hint">This message appears on this patron's user page in the OPAC</div>
1106
                                                    [% IF ( mandatoryopacnote ) %]
1106
                                                    [% IF ( mandatoryopacnote ) %]
1107
                                                        <span class="required">Required</span>
1107
                                                        <span class="required">Required</span>
Lines 1118-1124 legend:hover { Link Here
1118
                                                    [% END %]
1118
                                                    [% END %]
1119
                                                        Circulation note:
1119
                                                        Circulation note:
1120
                                                    </label>
1120
                                                    </label>
1121
                                                    <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes | html UNLESS opduplicate %]</textarea>
1121
                                                    <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrower_data.borrowernotes | html UNLESS opduplicate %]</textarea>
1122
                                                    <div class="hint">This message displays when checking out to this patron</div>
1122
                                                    <div class="hint">This message displays when checking out to this patron</div>
1123
                                                    [% IF ( mandatoryborrowernotes ) %]
1123
                                                    [% IF ( mandatoryborrowernotes ) %]
1124
                                                        <span class="required">Required</span>
1124
                                                        <span class="required">Required</span>
Lines 1147-1159 legend:hover { Link Here
1147
                                                        [% IF ( opduplicate ) %]
1147
                                                        [% IF ( opduplicate ) %]
1148
                                                            <input type="text" id="userid" name="userid" size="20" disabled="disabled" />
1148
                                                            <input type="text" id="userid" name="userid" size="20" disabled="disabled" />
1149
                                                        [% ELSE %]
1149
                                                        [% ELSE %]
1150
                                                            <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid | html %]" />
1150
                                                            <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% borrower_data.userid | html %]" />
1151
                                                        [% END %]
1151
                                                        [% END %]
1152
                                                    [% ELSE %]
1152
                                                    [% ELSE %]
1153
                                                        [% IF ( opduplicate ) %]
1153
                                                        [% IF ( opduplicate ) %]
1154
                                                            <input type="text" id="userid" name="userid" size="20" value="" />
1154
                                                            <input type="text" id="userid" name="userid" size="20" value="" />
1155
                                                        [% ELSE %]
1155
                                                        [% ELSE %]
1156
                                                            <input type="text" id="userid" name="userid" size="20" value="[% userid | html %]" />
1156
                                                            <input type="text" id="userid" name="userid" size="20" value="[% borrower_data.userid | html %]" />
1157
                                                        [% END %]
1157
                                                        [% END %]
1158
                                                    [% END # /IF ( NoUpdateLogin ) %]
1158
                                                    [% END # /IF ( NoUpdateLogin ) %]
1159
1159
Lines 1180-1197 legend:hover { Link Here
1180
                                                            [% IF ( opduplicate ) %]
1180
                                                            [% IF ( opduplicate ) %]
1181
                                                                <input type="password" id="password" name="password" size="20"  disabled="disabled" />
1181
                                                                <input type="password" id="password" name="password" size="20"  disabled="disabled" />
1182
                                                            [% ELSE %]
1182
                                                            [% ELSE %]
1183
                                                                <input type="password" id="password" name="password" size="20"  disabled="disabled" value="[% password | html %]" />
1183
                                                                <input type="password" id="password" name="password" size="20"  disabled="disabled" value="[% borrower_data.password | html %]" />
1184
                                                            [% END %]
1184
                                                            [% END %]
1185
                                                        [% ELSE %]
1185
                                                        [% ELSE %]
1186
                                                            [% IF ( opduplicate ) %]
1186
                                                            [% IF ( opduplicate ) %]
1187
                                                                <input type="password" id="password" name="password" size="20" autocomplete="new-password" />
1187
                                                                <input type="password" id="password" name="password" size="20" autocomplete="new-password" />
1188
                                                            [% ELSE %]
1188
                                                            [% ELSE %]
1189
                                                                <input type="password" id="password" name="password" size="20" autocomplete="new-password" value="[% password | html %]" />
1189
                                                                <input type="password" id="password" name="password" size="20" autocomplete="new-password" value="[% borrower_data.password | html %]" />
1190
                                                            [% END %]
1190
                                                            [% END %]
1191
                                                        [% END # /IF ( NoUpdateLogin ) %]
1191
                                                        [% END # /IF ( NoUpdateLogin ) %]
1192
                                                    [% ELSE # IF ( opadd ) %]
1192
                                                    [% ELSE # IF ( opadd ) %]
1193
1193
1194
                                                        [% IF ( password ) %]
1194
                                                        [% IF ( borrower_data.password ) %]
1195
                                                            [% IF ( NoUpdateLogin ) %]
1195
                                                            [% IF ( NoUpdateLogin ) %]
1196
                                                                <input type="password" id="password" name="password" size="20"  disabled="disabled" value="****" />
1196
                                                                <input type="password" id="password" name="password" size="20"  disabled="disabled" value="****" />
1197
                                                            [% ELSE %]
1197
                                                            [% ELSE %]
Lines 1237-1253 legend:hover { Link Here
1237
                                                            [% IF ( opduplicate ) %]
1237
                                                            [% IF ( opduplicate ) %]
1238
                                                                <input type="password" id="password2" name="password2" size="20"  disabled="disabled" />
1238
                                                                <input type="password" id="password2" name="password2" size="20"  disabled="disabled" />
1239
                                                            [% ELSE %]
1239
                                                            [% ELSE %]
1240
                                                                <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="[% password | html %]" />
1240
                                                                <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="[% borrower_data.password | html %]" />
1241
                                                            [% END %]
1241
                                                            [% END %]
1242
                                                        [% ELSE %]
1242
                                                        [% ELSE %]
1243
                                                            [% IF ( opduplicate ) %]
1243
                                                            [% IF ( opduplicate ) %]
1244
                                                                <input type="password" id="password2" name="password2" size="20" />
1244
                                                                <input type="password" id="password2" name="password2" size="20" />
1245
                                                            [% ELSE %]
1245
                                                            [% ELSE %]
1246
                                                                <input type="password" id="password2" name="password2" size="20" value="[% password | html %]" />
1246
                                                                <input type="password" id="password2" name="password2" size="20" value="[% borrower_data.password | html %]" />
1247
                                                            [% END %]
1247
                                                            [% END %]
1248
                                                        [% END %]
1248
                                                        [% END %]
1249
                                                    [% ELSE # IF ( opadd ) %]
1249
                                                    [% ELSE # IF ( opadd ) %]
1250
                                                        [% IF ( password ) %]
1250
                                                        [% IF ( borrower_data.password ) %]
1251
                                                            [% IF ( NoUpdateLogin ) %]
1251
                                                            [% IF ( NoUpdateLogin ) %]
1252
                                                                <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="****" />
1252
                                                                <input type="password" id="password2" name="password2" size="20"  disabled="disabled" value="****" />
1253
                                                            [% ELSE %]
1253
                                                            [% ELSE %]
Lines 1508-1514 legend:hover { Link Here
1508
                                                    <select id="sms_provider_id" name="sms_provider_id">
1508
                                                    <select id="sms_provider_id" name="sms_provider_id">
1509
                                                        <option value="">Unknown</option>
1509
                                                        <option value="">Unknown</option>
1510
                                                        [% FOREACH s IN sms_providers %]
1510
                                                        [% FOREACH s IN sms_providers %]
1511
                                                            [% IF s.id == sms_provider_id %]
1511
                                                            [% IF s.id == borrower_data.sms_provider_id %]
1512
                                                                <option value="[% s.id | html %]" selected="selected">[% s.name | html %]</option>
1512
                                                                <option value="[% s.id | html %]" selected="selected">[% s.name | html %]</option>
1513
                                                            [% ELSE %]
1513
                                                            [% ELSE %]
1514
                                                                <option value="[% s.id | html %]">[% s.name | html %]</option>
1514
                                                                <option value="[% s.id | html %]">[% s.name | html %]</option>
Lines 1655-1662 legend:hover { Link Here
1655
                stickyClass: "floating"
1655
                stickyClass: "floating"
1656
            });
1656
            });
1657
1657
1658
            [% IF categorycode %]
1658
            [% IF borrower_data.categorycode %]
1659
                update_category_code( "[% categorycode | html %]" );
1659
                update_category_code( "[% borrower_data.categorycode | html %]" );
1660
            [% ELSE %]
1660
            [% ELSE %]
1661
                if ( $("#categorycode_entry").length > 0 ){
1661
                if ( $("#categorycode_entry").length > 0 ){
1662
                    var category_code = $("#categorycode_entry").find("option:selected").val();
1662
                    var category_code = $("#categorycode_entry").find("option:selected").val();
(-)a/members/memberentry.pl (-2 / +1 lines)
Lines 813-819 if (C4::Context->preference('EnhancedMessagingPreferences')) { Link Here
813
}
813
}
814
814
815
$template->param( "show_guarantor" => ( $category_type =~ /A|I|S|X/ ) ? 0 : 1 ); # associate with step to know where you are
815
$template->param( "show_guarantor" => ( $category_type =~ /A|I|S|X/ ) ? 0 : 1 ); # associate with step to know where you are
816
$template->param(%data);
816
$template->param( borrower_data => \%data );
817
$template->param( "step_$step"  => 1) if $step;	# associate with step to know where u are
817
$template->param( "step_$step"  => 1) if $step;	# associate with step to know where u are
818
$template->param(  step  => $step   ) if $step;	# associate with step to know where u are
818
$template->param(  step  => $step   ) if $step;	# associate with step to know where u are
819
819
820
- 

Return to bug 29684