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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-9 / +8 lines)
Lines 5-13 Link Here
5
[% ELSIF op == 'delete_confirm_category' %]
5
[% ELSIF op == 'delete_confirm_category' %]
6
    › Confirm deletion of group [% category.categorycode %]
6
    › Confirm deletion of group [% category.categorycode %]
7
[% ELSIF op == 'add_form' %]
7
[% ELSIF op == 'add_form' %]
8
    ›[% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %]
8
    ›[% IF library %]Modify library[% ELSE %]New library [% library.branchcode | html %][% END %]
9
[% ELSIF op == 'delete_confirm' %]
9
[% ELSIF op == 'delete_confirm' %]
10
    › Confirm deletion of library '[% library.branchcode %]'
10
    › Confirm deletion of library '[% library.branchcode | html %]'
11
[% END %]
11
[% END %]
12
</title>
12
</title>
13
[% INCLUDE 'doc-head-close.inc' %]
13
[% INCLUDE 'doc-head-close.inc' %]
Lines 65-73 tinyMCE.init({ Link Here
65
[% ELSIF op == 'delete_confirm_category' %]
65
[% ELSIF op == 'delete_confirm_category' %]
66
&rsaquo; Confirm deletion of group [% category.categorycode %]
66
&rsaquo; Confirm deletion of group [% category.categorycode %]
67
[% ELSIF op == 'add_form'  %]
67
[% ELSIF op == 'add_form'  %]
68
&rsaquo; [% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %]
68
&rsaquo; [% IF library %]Modify library[% ELSE %]New library [% library.branchcode | html %][% END %]
69
[% ELSIF op == 'delete_confirm' %]
69
[% ELSIF op == 'delete_confirm' %]
70
&rsaquo; Confirm deletion of library '[% library.branchcode %]'
70
&rsaquo; Confirm deletion of library '[% library.branchcode | html %]'
71
[% END %]
71
[% END %]
72
</div>
72
</div>
73
73
Lines 141-147 tinyMCE.init({ Link Here
141
                    [% IF library %]
141
                    [% IF library %]
142
                        <span class="label">Library code: </span>
142
                        <span class="label">Library code: </span>
143
                        <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
143
                        <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
144
                        [% library.branchcode %]
144
                        [% library.branchcode | html %]
145
                    [% ELSE %]
145
                    [% ELSE %]
146
                        <label for="branchcode" class="required">Library code: </label>
146
                        <label for="branchcode" class="required">Library code: </label>
147
                        <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode |html %]" class="required" required="required" />
147
                        <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode |html %]" class="required" required="required" />
Lines 203-209 tinyMCE.init({ Link Here
203
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
203
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
204
    <div class="dialog alert">
204
    <div class="dialog alert">
205
        <form action="/cgi-bin/koha/admin/branches.pl" method="post">
205
        <form action="/cgi-bin/koha/admin/branches.pl" method="post">
206
            <h3>Are you sure you want to delete [% library.branchname |html %] ([% library.branchcode %])?</h3>
206
            <h3>Are you sure you want to delete [% library.branchname |html %] ([% library.branchcode | html %])?</h3>
207
            <input type="hidden" name="op" value="delete_confirmed" />
207
            <input type="hidden" name="op" value="delete_confirmed" />
208
            <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
208
            <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
209
            <input type="hidden" name="branchname" value="[% library.branchname |html %]">
209
            <input type="hidden" name="branchname" value="[% library.branchname |html %]">
Lines 268-276 tinyMCE.init({ Link Here
268
                        </td>
268
                        </td>
269
                        <td>[% library.branchip %]</td>
269
                        <td>[% library.branchip %]</td>
270
                        <td class="actions">
270
                        <td class="actions">
271
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&amp;branchcode=[% library.branchcode %]"><i class="fa fa-pencil"></i> Edit</a>
271
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&amp;branchcode=[% library.branchcode |uri %]"><i class="fa fa-pencil"></i> Edit</a>
272
                            <form action="/cgi-bin/koha/admin/branches.pl" method="post">
272
                            <form action="/cgi-bin/koha/admin/branches.pl" method="post">
273
                                <input type="hidden" name="branchcode" value="[% library.branchcode %]" />
273
                                <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
274
                                <input type="hidden" name="op" value="delete_confirm" />
274
                                <input type="hidden" name="op" value="delete_confirm" />
275
                                <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>
275
                                <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>
276
                            </form>
276
                            </form>
277
- 

Return to bug 19560