1 <div id="reldebarments">
2 [% IF ( not debarments.defined || debarments.size < 1 ) %]
3 <p>Patron is currently unrestricted.</p>
12 [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
18 [% FOREACH d IN debarments %]
26 [% CASE 'SUSPENSION' %]
28 [% CASE 'DISCHARGE' %]
33 [% IF d.comment.search('OVERDUES_PROCESS') %]
34 Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') %]
39 <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
40 <td>[% d.created | $KohaDates %]</td>
41 [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
43 <a class="remove_restriction btn btn-default btn-xs" href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% patron.borrowernumber %]&borrower_debarment_id=[% d.borrower_debarment_id %]&action=del">
44 <i class="fa fa-trash"></i> Remove
53 [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
54 <p><a href="#" id="add_manual_restriction"><i class="fa fa-plus"></i> Add manual restriction</a></p>
55 <form method="post" action="/cgi-bin/koha/members/mod_debarment.pl" class="clearfix">
56 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
57 <input type="hidden" name="action" value="add" />
58 <fieldset class="rows" id="manual_restriction_form">
59 <legend>Add manual restriction</legend>
61 <li><label for="rcomment">Comment:</label> <input type="text" id="rcomment" name="comment" /></li>
62 <li><label for="rexpiration">Expiration:</label> <input name="expiration" id="rexpiration" size="10" value="" class="datepicker" />
63 <a href="#" class="clear-date" id="clear-date-rexpiration">Clear date</a></li>
65 <fieldset class="action"><input type="submit" value="Add restriction" /> <a href="#" class="cancel" id="cancel_manual_restriction">Cancel</a></fieldset>