Lines 55-83
Link Here
|
55 |
<div class="col-sm-10 col-sm-push-2"> |
55 |
<div class="col-sm-10 col-sm-push-2"> |
56 |
<main> |
56 |
<main> |
57 |
|
57 |
|
58 |
|
|
|
59 |
[% INCLUDE 'members-toolbar.inc' %] |
58 |
[% INCLUDE 'members-toolbar.inc' %] |
60 |
|
59 |
|
|
|
60 |
<h1> |
61 |
[% UNLESS ( I ) %] |
62 |
[% patron.title | html %] [% patron.firstname | html %] |
63 |
[% END %] |
64 |
[% patron.surname | html %] ([% patron.cardnumber | html %]) |
65 |
</h1> |
66 |
|
61 |
[% IF ( error ) %] |
67 |
[% IF ( error ) %] |
62 |
<div class="dialog alert"> |
68 |
<div class="dialog alert"> |
63 |
[% IF ( error == 'CANT_DELETE_STAFF' ) %] |
69 |
[% IF ( error == 'CANT_DELETE_STAFF' ) %] |
64 |
<h3>Unable to delete staff user</h3> |
70 |
<h2>Unable to delete staff user</h2> |
65 |
<p>Insufficient privileges.</p> |
71 |
<p>Insufficient privileges.</p> |
66 |
[% END %] |
72 |
[% END %] |
67 |
[% IF ( error == 'CANT_DELETE_YOURSELF' ) %] |
73 |
[% IF ( error == 'CANT_DELETE_YOURSELF' ) %] |
68 |
<h3>Not allowed to delete own account</h3> |
74 |
<h2>Not allowed to delete own account</h2> |
69 |
<p>Deleting your own account would lock you out of Koha.</p> |
75 |
<p>Deleting your own account would lock you out of Koha.</p> |
70 |
[% END %] |
76 |
[% END %] |
71 |
[% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %] |
77 |
[% IF ( error == 'CANT_DELETE_OTHERLIBRARY' ) %] |
72 |
<h3>Unable to delete patrons from other libraries with current settings</h3> |
78 |
<h2>Unable to delete patrons from other libraries with current settings</h2> |
73 |
<p>Insufficient privileges.</p> |
79 |
<p>Insufficient privileges.</p> |
74 |
[% END %] |
80 |
[% END %] |
75 |
[% IF ( error == 'CANT_DELETE_ANONYMOUS_PATRON' ) %] |
81 |
[% IF ( error == 'CANT_DELETE_ANONYMOUS_PATRON' ) %] |
76 |
<h3>Unable to delete patron that is set as AnonymousPatron</h3> |
82 |
<h2>Unable to delete patron that is set as AnonymousPatron</h2> |
77 |
<p>This patron cannot be deleted while set as AnonymousPatron in the system preferences.</p> |
83 |
<p>This patron cannot be deleted while set as AnonymousPatron in the system preferences.</p> |
78 |
[% END %] |
84 |
[% END %] |
79 |
[% IF ( error == 'CANT_DELETE' ) %] |
85 |
[% IF ( error == 'CANT_DELETE' ) %] |
80 |
<h3>Unable to delete patron</h3> |
86 |
<h2>Unable to delete patron</h2> |
81 |
<p>Insufficient privileges.</p> |
87 |
<p>Insufficient privileges.</p> |
82 |
[% END %] |
88 |
[% END %] |
83 |
</div> |
89 |
</div> |
Lines 85-97
Link Here
|
85 |
|
91 |
|
86 |
<div class="row"> |
92 |
<div class="row"> |
87 |
|
93 |
|
88 |
<h3> |
|
|
89 |
[% UNLESS ( I ) %] |
90 |
[% patron.title | html %] [% patron.firstname | html %] |
91 |
[% END %] |
92 |
[% patron.surname | html %] ([% patron.cardnumber | html %]) |
93 |
</h3> |
94 |
|
95 |
[% IF ( was_renewed ) %] |
94 |
[% IF ( was_renewed ) %] |
96 |
<div class="dialog message"> |
95 |
<div class="dialog message"> |
97 |
Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %] |
96 |
Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %] |
Lines 102-119
Link Here
|
102 |
[% INCLUDE 'patron_messages.inc' %] |
101 |
[% INCLUDE 'patron_messages.inc' %] |
103 |
</div> |
102 |
</div> |
104 |
|
103 |
|
105 |
<h1> |
|
|
106 |
[% UNLESS ( I ) %] |
107 |
[% patron.title | html %] [% patron.firstname | html %] |
108 |
[% END %] |
109 |
[% patron.surname | html %] ([% patron.cardnumber | html %]) |
110 |
</h1> |
111 |
<div class="col-sm-6"> |
104 |
<div class="col-sm-6"> |
112 |
|
105 |
|
113 |
<div id="patron-information" class="patroninfo-section"> |
106 |
<div id="patron-information" class="patroninfo-section"> |
114 |
|
107 |
|
115 |
<div class="patroninfo-heading"> |
108 |
<div class="patroninfo-heading"> |
116 |
<h3>Contact information</h3> |
109 |
<h2>Contact information</h2> |
117 |
[% IF ( guarantor.borrowernumber ) %] |
110 |
[% IF ( guarantor.borrowernumber ) %] |
118 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=1&guarantorid=[% guarantor.borrowernumber | html %]"><i class="fa fa-pencil"></i> Edit</a> |
111 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=1&guarantorid=[% guarantor.borrowernumber | html %]"><i class="fa fa-pencil"></i> Edit</a> |
119 |
[% ELSE %] |
112 |
[% ELSE %] |
Lines 267-278
Link Here
|
267 |
<div id="manage-patron-image" class="patroninfo-section"> |
260 |
<div id="manage-patron-image" class="patroninfo-section"> |
268 |
[% IF ( patron.image ) %] |
261 |
[% IF ( patron.image ) %] |
269 |
<div class="patroninfo-heading"> |
262 |
<div class="patroninfo-heading"> |
270 |
<h3>Manage patron image</h3> |
263 |
<h2>Manage patron image</h2> |
271 |
<a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-pencil"></i> Edit</a> |
264 |
<a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-pencil"></i> Edit</a> |
272 |
</div> |
265 |
</div> |
273 |
[% ELSE %] |
266 |
[% ELSE %] |
274 |
<div class="patroninfo-heading"> |
267 |
<div class="patroninfo-heading"> |
275 |
<h3>Upload patron image</h3> |
268 |
<h2>Upload patron image</h2> |
276 |
<a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-plus"></i> Add</a> |
269 |
<a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-plus"></i> Add</a> |
277 |
</div> |
270 |
</div> |
278 |
[% END %] |
271 |
[% END %] |
Lines 306-312
Link Here
|
306 |
<div id="houseboundroles" class="patroninfo-section"> |
299 |
<div id="houseboundroles" class="patroninfo-section"> |
307 |
[% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %] |
300 |
[% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %] |
308 |
<div class="patroninfo-heading"> |
301 |
<div class="patroninfo-heading"> |
309 |
<h3>Housebound roles</h3> |
302 |
<h2>Housebound roles</h2> |
310 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=7"><i class="fa fa-pencil"></i> Edit</a> |
303 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=7"><i class="fa fa-pencil"></i> Edit</a> |
311 |
</div> |
304 |
</div> |
312 |
<div class="rows"> |
305 |
<div class="rows"> |
Lines 331-337
Link Here
|
331 |
</div> |
324 |
</div> |
332 |
[% ELSE %] |
325 |
[% ELSE %] |
333 |
<div class="patroninfo-heading"> |
326 |
<div class="patroninfo-heading"> |
334 |
<h3>Housebound roles</h3> |
327 |
<h2>Housebound roles</h2> |
335 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=7"><i class="fa fa-plus"></i> Add</a> |
328 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=7"><i class="fa fa-plus"></i> Add</a> |
336 |
</div> |
329 |
</div> |
337 |
[% END %] |
330 |
[% END %] |
Lines 343-349
Link Here
|
343 |
<div id="patron-extended-attributes" class="patroninfo-section"> |
336 |
<div id="patron-extended-attributes" class="patroninfo-section"> |
344 |
[% IF ( attributes_loop ) %] |
337 |
[% IF ( attributes_loop ) %] |
345 |
<div class="patroninfo-heading"> |
338 |
<div class="patroninfo-heading"> |
346 |
<h3>Additional attributes and identifiers</h3> |
339 |
<h2>Additional attributes and identifiers</h2> |
347 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=4"><i class="fa fa-pencil"></i> Edit</a> |
340 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=4"><i class="fa fa-pencil"></i> Edit</a> |
348 |
</div> |
341 |
</div> |
349 |
[% FOREACH attribute IN attributes_loop %] |
342 |
[% FOREACH attribute IN attributes_loop %] |
Lines 352-358
Link Here
|
352 |
[% ELSE %] |
345 |
[% ELSE %] |
353 |
<div id="aai" class="rows"> |
346 |
<div id="aai" class="rows"> |
354 |
[% END %] |
347 |
[% END %] |
355 |
<h4>[% attribute.lib | html %]</h4> |
348 |
<h2>[% attribute.lib | html %]</h2> |
356 |
<ol> |
349 |
<ol> |
357 |
[% FOREACH item IN attribute.items %] |
350 |
[% FOREACH item IN attribute.items %] |
358 |
<li> |
351 |
<li> |
Lines 367-373
Link Here
|
367 |
</div> |
360 |
</div> |
368 |
[% ELSE %] |
361 |
[% ELSE %] |
369 |
<div class="patroninfo-heading"> |
362 |
<div class="patroninfo-heading"> |
370 |
<h3>Additional attributes and identifiers</h3> |
363 |
<h2>Additional attributes and identifiers</h2> |
371 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=4"><i class="fa fa-plus"></i> Add</a> |
364 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=4"><i class="fa fa-plus"></i> Add</a> |
372 |
</div> |
365 |
</div> |
373 |
[% END %] |
366 |
[% END %] |
Lines 378-384
Link Here
|
378 |
[% IF ( EnhancedMessagingPreferences ) %] |
371 |
[% IF ( EnhancedMessagingPreferences ) %] |
379 |
<div id="patron-messaging-prefs" class="patroninfo-section"> |
372 |
<div id="patron-messaging-prefs" class="patroninfo-section"> |
380 |
<div class="patroninfo-heading"> |
373 |
<div class="patroninfo-heading"> |
381 |
<h3>Patron messaging preferences</h3> |
374 |
<h2>Patron messaging preferences</h2> |
382 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=5"><i class="fa fa-pencil"></i> Edit</a> |
375 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=5"><i class="fa fa-pencil"></i> Edit</a> |
383 |
</div> |
376 |
</div> |
384 |
[% INCLUDE 'messaging-preference-form.inc' %] |
377 |
[% INCLUDE 'messaging-preference-form.inc' %] |
Lines 404-410
Link Here
|
404 |
<div class="col-sm-6"> |
397 |
<div class="col-sm-6"> |
405 |
<div id="patron-library-details" class="patroninfo-section"> |
398 |
<div id="patron-library-details" class="patroninfo-section"> |
406 |
<div class="patroninfo-heading"> |
399 |
<div class="patroninfo-heading"> |
407 |
<h3>Library use</h3> |
400 |
<h2>Library use</h2> |
408 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=3"><i class="fa fa-pencil"></i> Edit</a> |
401 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=3"><i class="fa fa-pencil"></i> Edit</a> |
409 |
</div> |
402 |
</div> |
410 |
<div class="rows"> |
403 |
<div class="rows"> |
Lines 536-542
Link Here
|
536 |
<div id="patron-alternate-address" class="patroninfo-section"> |
529 |
<div id="patron-alternate-address" class="patroninfo-section"> |
537 |
[% 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 |
[% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %] |
538 |
<div class="patroninfo-heading"> |
531 |
<div class="patroninfo-heading"> |
539 |
<h3>Alternate address</h3> |
532 |
<h2>Alternate address</h2> |
540 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa fa-pencil"></i> Edit</a> |
533 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa fa-pencil"></i> Edit</a> |
541 |
</div> |
534 |
</div> |
542 |
<div class="address"> |
535 |
<div class="address"> |
Lines 570-576
Link Here
|
570 |
</div> |
563 |
</div> |
571 |
[% ELSE %] |
564 |
[% ELSE %] |
572 |
<div class="patroninfo-heading"> |
565 |
<div class="patroninfo-heading"> |
573 |
<h3 class="inline">Alternate address</h3> |
566 |
<h2 class="inline">Alternate address</h2> |
574 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa fa-plus"></i> Add</a> |
567 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa fa-plus"></i> Add</a> |
575 |
</div> |
568 |
</div> |
576 |
[% END %] |
569 |
[% END %] |
Lines 579-585
Link Here
|
579 |
<div id="patron-alternative-contact" class="patroninfo-section"> |
572 |
<div id="patron-alternative-contact" class="patroninfo-section"> |
580 |
[% IF ( patron.altcontactsurname || patron.altcontactfirstname || patron.altcontactaddress1 || patron.altcontactaddress2 || patron.altcontactaddress3 || patron.altcontactstate || patron.altcontactzipcode || patron.altcontactcountry || patron.altcontactphone ) %] |
573 |
[% IF ( patron.altcontactsurname || patron.altcontactfirstname || patron.altcontactaddress1 || patron.altcontactaddress2 || patron.altcontactaddress3 || patron.altcontactstate || patron.altcontactzipcode || patron.altcontactcountry || patron.altcontactphone ) %] |
581 |
<div class="patroninfo-heading"> |
574 |
<div class="patroninfo-heading"> |
582 |
<h3>Alternative contact</h3> |
575 |
<h2>Alternative contact</h2> |
583 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=2"><i class="fa fa-pencil"></i> Edit</a> |
576 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=2"><i class="fa fa-pencil"></i> Edit</a> |
584 |
</div> |
577 |
</div> |
585 |
<div class="rows"> |
578 |
<div class="rows"> |
Lines 643-649
Link Here
|
643 |
</div> [% # /div.rows %] |
636 |
</div> [% # /div.rows %] |
644 |
[% ELSE %] |
637 |
[% ELSE %] |
645 |
<div class="patroninfo-heading"> |
638 |
<div class="patroninfo-heading"> |
646 |
<h3>Alternative contact</h3> |
639 |
<h2>Alternative contact</h2> |
647 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=2"><i class="fa fa-plus"></i> Add</a> |
640 |
<a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&step=2"><i class="fa fa-plus"></i> Add</a> |
648 |
</div> |
641 |
</div> |
649 |
[% END %] |
642 |
[% END %] |
Lines 652-658
Link Here
|
652 |
[% IF Koha.Preference('EnableBorrowerFiles') %] |
645 |
[% IF Koha.Preference('EnableBorrowerFiles') %] |
653 |
<div id="patron-files" class="patroninfo-section"> |
646 |
<div id="patron-files" class="patroninfo-section"> |
654 |
<div class="patroninfo-heading"> |
647 |
<div class="patroninfo-heading"> |
655 |
<h3>Files</h3> |
648 |
<h2>Files</h2> |
656 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]"><i class="fa fa-list"></i> Manage</a> |
649 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]"><i class="fa fa-list"></i> Manage</a> |
657 |
|
650 |
|
658 |
[% IF ( files ) %] |
651 |
[% IF ( files ) %] |