View | Details | Raw Unified | Return to bug 37451
Collapse All | Expand All

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

Return to bug 37451