Lines 116-125
Link Here
|
116 |
|
116 |
|
117 |
<div class="patroninfo-heading"> |
117 |
<div class="patroninfo-heading"> |
118 |
<h3>Contact information</h3> |
118 |
<h3>Contact information</h3> |
119 |
[% IF ( guarantor.borrowernumber ) %] |
119 |
[% IF CAN_user_borrowers_edit_borrowers %] |
120 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=1&guarantorid=[% guarantor.borrowernumber | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
120 |
[% IF ( guarantor.borrowernumber ) %] |
121 |
[% ELSE %] |
121 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=1&guarantorid=[% guarantor.borrowernumber | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
122 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=1"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
122 |
[% ELSE %] |
|
|
123 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=1"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
124 |
[% END %] |
123 |
[% END %] |
125 |
[% END %] |
124 |
</div> |
126 |
</div> |
125 |
|
127 |
|
Lines 277-283
Link Here
|
277 |
[% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %] |
279 |
[% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %] |
278 |
<div class="patroninfo-heading"> |
280 |
<div class="patroninfo-heading"> |
279 |
<h3>Housebound roles</h3> |
281 |
<h3>Housebound roles</h3> |
280 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=7"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
282 |
[% IF CAN_user_borrowers_edit_borrowers %] |
|
|
283 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=7"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
284 |
[% END %] |
281 |
</div> |
285 |
</div> |
282 |
<div class="rows"> |
286 |
<div class="rows"> |
283 |
<ol> |
287 |
<ol> |
Lines 302-308
Link Here
|
302 |
[% ELSE %] |
306 |
[% ELSE %] |
303 |
<div class="patroninfo-heading"> |
307 |
<div class="patroninfo-heading"> |
304 |
<h3>Housebound roles</h3> |
308 |
<h3>Housebound roles</h3> |
305 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=7"><i class="fa fa-plus"></i> Add</a> |
309 |
[% IF CAN_user_borrowers_edit_borrowers %] |
|
|
310 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=7"><i class="fa fa-plus"></i> Add</a> |
311 |
[% END %] |
306 |
</div> |
312 |
</div> |
307 |
[% END %] |
313 |
[% END %] |
308 |
</div> [% #/ div#houseboundroles %] |
314 |
</div> [% #/ div#houseboundroles %] |
Lines 314-320
Link Here
|
314 |
[% IF ( attributes_loop ) %] |
320 |
[% IF ( attributes_loop ) %] |
315 |
<div class="patroninfo-heading"> |
321 |
<div class="patroninfo-heading"> |
316 |
<h3>Additional attributes and identifiers</h3> |
322 |
<h3>Additional attributes and identifiers</h3> |
317 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=4"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
323 |
[% IF CAN_user_borrowers_edit_borrowers %] |
|
|
324 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=4"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
325 |
[% END %] |
318 |
</div> |
326 |
</div> |
319 |
[% FOREACH attribute IN attributes_loop %] |
327 |
[% FOREACH attribute IN attributes_loop %] |
320 |
[% IF attribute.class %] |
328 |
[% IF attribute.class %] |
Lines 338-344
Link Here
|
338 |
[% ELSE %] |
346 |
[% ELSE %] |
339 |
<div class="patroninfo-heading"> |
347 |
<div class="patroninfo-heading"> |
340 |
<h3>Additional attributes and identifiers</h3> |
348 |
<h3>Additional attributes and identifiers</h3> |
341 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=4"><i class="fa fa-plus"></i> Add</a> |
349 |
[% IF CAN_user_borrowers_edit_borrowers %] |
|
|
350 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=4"><i class="fa fa-plus"></i> Add</a> |
351 |
[% END %] |
342 |
</div> |
352 |
</div> |
343 |
[% END %] |
353 |
[% END %] |
344 |
</div> [% # /div#patron-extended-attributes %] |
354 |
</div> [% # /div#patron-extended-attributes %] |
Lines 349-355
Link Here
|
349 |
<div id="patron-messaging-prefs" class="patroninfo-section"> |
359 |
<div id="patron-messaging-prefs" class="patroninfo-section"> |
350 |
<div class="patroninfo-heading"> |
360 |
<div class="patroninfo-heading"> |
351 |
<h3>Patron messaging preferences</h3> |
361 |
<h3>Patron messaging preferences</h3> |
352 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=5"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
362 |
[% IF CAN_user_borrowers_edit_borrowers %] |
|
|
363 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=5"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
364 |
[% END %] |
353 |
</div> |
365 |
</div> |
354 |
[% INCLUDE 'messaging-preference-form.inc' %] |
366 |
[% INCLUDE 'messaging-preference-form.inc' %] |
355 |
[% IF Koha.Preference('SMSSendDriver') %] |
367 |
[% IF Koha.Preference('SMSSendDriver') %] |
Lines 379-385
Link Here
|
379 |
<div id="patron-library-details" class="patroninfo-section"> |
391 |
<div id="patron-library-details" class="patroninfo-section"> |
380 |
<div class="patroninfo-heading"> |
392 |
<div class="patroninfo-heading"> |
381 |
<h3>Library use</h3> |
393 |
<h3>Library use</h3> |
382 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=3"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
394 |
[% IF CAN_user_borrowers_edit_borrowers %] |
|
|
395 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=3"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
396 |
[% END %] |
383 |
</div> |
397 |
</div> |
384 |
<div class="rows"> |
398 |
<div class="rows"> |
385 |
<ol> |
399 |
<ol> |
Lines 529-535
Link Here
|
529 |
[% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %] |
543 |
[% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %] |
530 |
<div class="patroninfo-heading"> |
544 |
<div class="patroninfo-heading"> |
531 |
<h3>Alternate address</h3> |
545 |
<h3>Alternate address</h3> |
532 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
546 |
[% IF CAN_user_borrowers_edit_borrowers %] |
|
|
547 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
548 |
[% END %] |
533 |
</div> |
549 |
</div> |
534 |
<div class="address"> |
550 |
<div class="address"> |
535 |
<ul> |
551 |
<ul> |
Lines 563-569
Link Here
|
563 |
[% ELSE %] |
579 |
[% ELSE %] |
564 |
<div class="patroninfo-heading"> |
580 |
<div class="patroninfo-heading"> |
565 |
<h3 class="inline">Alternate address</h3> |
581 |
<h3 class="inline">Alternate address</h3> |
566 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa fa-plus"></i> Add</a> |
582 |
[% IF CAN_user_borrowers_edit_borrowers %] |
|
|
583 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa fa-plus"></i> Add</a> |
584 |
[% END %] |
567 |
</div> |
585 |
</div> |
568 |
[% END %] |
586 |
[% END %] |
569 |
</div> [% # /div#patron-alternate-address %] |
587 |
</div> [% # /div#patron-alternate-address %] |
Lines 572-578
Link Here
|
572 |
[% IF ( patron.altcontactsurname || patron.altcontactfirstname || patron.altcontactaddress1 || patron.altcontactaddress2 || patron.altcontactaddress3 || patron.altcontactstate || patron.altcontactzipcode || patron.altcontactcountry || patron.altcontactphone ) %] |
590 |
[% IF ( patron.altcontactsurname || patron.altcontactfirstname || patron.altcontactaddress1 || patron.altcontactaddress2 || patron.altcontactaddress3 || patron.altcontactstate || patron.altcontactzipcode || patron.altcontactcountry || patron.altcontactphone ) %] |
573 |
<div class="patroninfo-heading"> |
591 |
<div class="patroninfo-heading"> |
574 |
<h3>Alternative contact</h3> |
592 |
<h3>Alternative contact</h3> |
575 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=2"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
593 |
[% IF CAN_user_borrowers_edit_borrowers %] |
|
|
594 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=2"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
595 |
[% END %] |
576 |
</div> |
596 |
</div> |
577 |
<div class="rows"> |
597 |
<div class="rows"> |
578 |
<ol> |
598 |
<ol> |
Lines 636-642
Link Here
|
636 |
[% ELSE %] |
656 |
[% ELSE %] |
637 |
<div class="patroninfo-heading"> |
657 |
<div class="patroninfo-heading"> |
638 |
<h3>Alternative contact</h3> |
658 |
<h3>Alternative contact</h3> |
639 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=2"><i class="fa fa-plus"></i> Add</a> |
659 |
[% IF CAN_user_borrowers_edit_borrowers %] |
|
|
660 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=2"><i class="fa fa-plus"></i> Add</a> |
661 |
[% END %] |
640 |
</div> |
662 |
</div> |
641 |
[% END %] |
663 |
[% END %] |
642 |
</div> [% # /div#patron-alternative-contact %] |
664 |
</div> [% # /div#patron-alternative-contact %] |
643 |
- |
|
|