1 <script type="text/javascript">
4 function confirm_remove_restriction() {
5 return confirm(_("Remove restriction?"));
11 <div id="reldebarments">
12 [% UNLESS debarments %]<p>Patron is currently unrestricted.</p>[% END %]
20 [% IF ( CAN_user_borrowers ) %]
27 [% FOREACH d IN debarments %]
30 <td>[% d.comment %]</td>
31 <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
32 [% IF ( CAN_user_borrowers )%]
34 <a href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% borrowernumber %]&borrower_debarment_id=[% d.borrower_debarment_id %]&action=del" onclick="return confirm_remove_restriction()">
43 [% IF ( CAN_user_borrowers )%]
44 <form method="post" action="/cgi-bin/koha/members/mod_debarment.pl">
45 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
46 <input type="hidden" name="action" value="add" />
51 <td><input type="text" name="comment" /></td>
53 <input name="expiration" id="expiration" size="10" readonly="readonly" value="" class="datepicker" />
54 <a href='#' onclick="document.getElementById('expiration').value='';">Clear Date</a>
57 <input type="submit" value="Add restriction" />