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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt (-18 / +13 lines)
Lines 96-102 Link Here
96
        <input type="hidden" name="op" value="add_validate" />
96
        <input type="hidden" name="op" value="add_validate" />
97
        <input type="hidden" name="checked" value="0" />
97
        <input type="hidden" name="checked" value="0" />
98
        [% IF restriction %]
98
        [% IF restriction %]
99
            <h1>Modify restriction type [% PROCESS restriction_type_description restriction_type=restriction %]</h1>
99
            <h1>Modify restriction type '[% PROCESS restriction_type_description restriction_type=restriction %]'</h1>
100
            <input type="hidden" name="is_a_modif" value="1" />
100
            <input type="hidden" name="is_a_modif" value="1" />
101
        [% ELSE %]
101
        [% ELSE %]
102
            <h1>New restriction type</h1>
102
            <h1>New restriction type</h1>
Lines 136-157 Link Here
136
[% END %]
136
[% END %]
137
137
138
[% IF op == 'delete_confirm' %]
138
[% IF op == 'delete_confirm' %]
139
    <form action="/cgi-bin/koha/admin/restrictions.pl" method="post">
139
    <div class="dialog alert">
140
        <fieldset>
140
        <h1>Confirm restriction type deletion</h1>
141
            <legend>
141
        <p>Are you sure you want to delete '[% PROCESS restriction_type_description restriction_type=restriction %]'?</p>
142
                Confirm restriction type deletion
142
        <form action="/cgi-bin/koha/admin/restrictions.pl" method="post">
143
            </legend>
143
            <input type="hidden" name="op" value="delete_confirmed" />
144
144
            <input type="hidden" name="code" value="[% restriction.code | html %]" />
145
            <p>Are you sure you want to delete '[% PROCESS restriction_type_description restriction_type=restriction %]'?</p>
145
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
146
146
        </form>
147
            <fieldset class="action">
147
        <form action="/cgi-bin/koha/admin/restrictions.pl" method="get">
148
                <input type="hidden" name="op" value="delete_confirmed" />
148
            <button type="submit" class="deny"><i class="fa fa-fw fa-times"></i> No, do not delete</button>
149
                <input type="hidden" name="code" value="[% restriction.code | html %]" />
149
        </form>
150
                <input type="submit" class="btn btn-primary" value="Delete this restriction type" />
150
    </div>
151
                <a class="cancel" href="/cgi-bin/koha/admin/restrictions.pl">Cancel</a>
152
            </fieldset>
153
        </fieldset>
154
    </form>
155
[% END %]
151
[% END %]
156
152
157
[% IF op == 'list' %]
153
[% IF op == 'list' %]
158
- 

Return to bug 34388