Lines 22-27
Link Here
|
22 |
<tr [% IF restriction.is_expired %]class="expired"[% END %]> |
22 |
<tr [% IF restriction.is_expired %]class="expired"[% END %]> |
23 |
<td> [% PROCESS restriction_type_description restriction_type=restriction.type %] </td> |
23 |
<td> [% PROCESS restriction_type_description restriction_type=restriction.type %] </td> |
24 |
<td> |
24 |
<td> |
|
|
25 |
[% restriction.type.code | html %] |
25 |
[% IF restriction.comment.search('OVERDUES_PROCESS') %] |
26 |
[% IF restriction.comment.search('OVERDUES_PROCESS') %] |
26 |
<span>Restriction added by overdues process [% restriction.comment.remove('OVERDUES_PROCESS ') | $raw %]</span> |
27 |
<span>Restriction added by overdues process [% restriction.comment.remove('OVERDUES_PROCESS ') | $raw %]</span> |
27 |
[% ELSE %] |
28 |
[% ELSE %] |
Lines 39-44
Link Here
|
39 |
<td>[% restriction.created | $KohaDates %]</td> |
40 |
<td>[% restriction.created | $KohaDates %]</td> |
40 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
41 |
[% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] |
41 |
<td> |
42 |
<td> |
|
|
43 |
[% IF restriction.type.code != "DISCHARGE" %] |
42 |
<form method="post" action="/cgi-bin/koha/members/mod_debarment.pl"> |
44 |
<form method="post" action="/cgi-bin/koha/members/mod_debarment.pl"> |
43 |
[% INCLUDE 'csrf-token.inc' %] |
45 |
[% INCLUDE 'csrf-token.inc' %] |
44 |
<input type="hidden" name="op" value="cud-del" /> |
46 |
<input type="hidden" name="op" value="cud-del" /> |
Lines 46-52
Link Here
|
46 |
<input type="hidden" name="borrower_debarment_id" value="[% restriction.borrower_debarment_id | uri %]" /> |
48 |
<input type="hidden" name="borrower_debarment_id" value="[% restriction.borrower_debarment_id | uri %]" /> |
47 |
<button type="submit" class="remove_restriction btn btn-default btn-xs"><i class="fa fa-trash-can"></i> Remove</button> |
49 |
<button type="submit" class="remove_restriction btn btn-default btn-xs"><i class="fa fa-trash-can"></i> Remove</button> |
48 |
</form> |
50 |
</form> |
|
|
51 |
[% ELSE %] |
52 |
<i title="Restrictions due to discharges cannot be cancelled" aria-hidden=true data-placement="right" class="fa fa-info-circle"></i> |
53 |
[% END %] |
49 |
</td> |
54 |
</td> |
|
|
55 |
|
50 |
[% END %] |
56 |
[% END %] |
51 |
</tr> |
57 |
</tr> |
52 |
[% END %] |
58 |
[% END %] |
53 |
- |
|
|