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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-10 / +13 lines)
Lines 1-13 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Administration &rsaquo; Libraries and groups
2
<title>Koha &rsaquo; Administration &rsaquo; Libraries and groups
3
[% IF op == 'editcategory' %]
3
[% IF op == 'editcategory' %]
4
    &rsaquo;[% IF category.categorycode %]Edit group [% category.categorycode%][% ELSE %]New group[% END %]
4
    &rsaquo; [% IF category.categorycode %] Edit group [% category.categorycode%] [% ELSE %] New group [% END %]
5
[% ELSIF op == 'delete_confirm_category' %]
5
[% ELSIF op == 'delete_confirm_category' %]
6
    &rsaquo; Confirm deletion of group [% category.categorycode %]
6
    &rsaquo; Confirm deletion of group [% category.categorycode %]
7
[% ELSIF op == 'add_form' %]
7
[% ELSIF op == 'add_form' %]
8
    &rsaquo;[% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %]
8
    &rsaquo; [% IF library %] Modify library [% library.branchcode | html %] [% ELSE %] New library [% END %]
9
[% ELSIF op == 'delete_confirm' %]
9
[% ELSIF op == 'delete_confirm' %]
10
    &rsaquo; Confirm deletion of library '[% library.branchcode %]'
10
    &rsaquo; 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 67-75 tinyMCE.init({ Link Here
67
[% ELSIF op == 'delete_confirm_category' %]
67
[% ELSIF op == 'delete_confirm_category' %]
68
&rsaquo; Confirm deletion of group [% category.categorycode %]
68
&rsaquo; Confirm deletion of group [% category.categorycode %]
69
[% ELSIF op == 'add_form'  %]
69
[% ELSIF op == 'add_form'  %]
70
&rsaquo; [% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %]
70
&rsaquo; [% IF library %]Modify library[% ELSE %]New library [% library.branchcode | html %][% END %]
71
[% ELSIF op == 'delete_confirm' %]
71
[% ELSIF op == 'delete_confirm' %]
72
&rsaquo; Confirm deletion of library '[% library.branchcode %]'
72
&rsaquo; Confirm deletion of library '[% library.branchcode | html %]'
73
[% END %]
73
[% END %]
74
</div>
74
</div>
75
75
Lines 143-149 tinyMCE.init({ Link Here
143
                    [% IF library %]
143
                    [% IF library %]
144
                        <span class="label">Library code: </span>
144
                        <span class="label">Library code: </span>
145
                        <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
145
                        <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
146
                        [% library.branchcode %]
146
                        [% library.branchcode | html %]
147
                    [% ELSE %]
147
                    [% ELSE %]
148
                        <label for="branchcode" class="required">Library code: </label>
148
                        <label for="branchcode" class="required">Library code: </label>
149
                        <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode |html %]" class="required" required="required" />
149
                        <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode |html %]" class="required" required="required" />
Lines 205-211 tinyMCE.init({ Link Here
205
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
205
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
206
    <div class="dialog alert">
206
    <div class="dialog alert">
207
        <form action="/cgi-bin/koha/admin/branches.pl" method="post">
207
        <form action="/cgi-bin/koha/admin/branches.pl" method="post">
208
            <h3>Are you sure you want to delete [% library.branchname |html %] ([% library.branchcode %])?</h3>
208
            <h3>Are you sure you want to delete [% library.branchname |html %] ([% library.branchcode | html %])?</h3>
209
            <input type="hidden" name="op" value="delete_confirmed" />
209
            <input type="hidden" name="op" value="delete_confirmed" />
210
            <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
210
            <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
211
            <input type="hidden" name="branchname" value="[% library.branchname |html %]">
211
            <input type="hidden" name="branchname" value="[% library.branchname |html %]">
Lines 272-279 tinyMCE.init({ Link Here
272
                        <td>[% library.marcorgcode %]</td>
272
                        <td>[% library.marcorgcode %]</td>
273
                        <td>[% library.branchip %]</td>
273
                        <td>[% library.branchip %]</td>
274
                        <td class="actions">
274
                        <td class="actions">
275
                            <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>
275
                            <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>
276
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=delete_confirm&amp;branchcode=[% library.branchcode %]"><i class="fa fa-trash"></i> Delete</a>
276
                            <form action="/cgi-bin/koha/admin/branches.pl" method="post">
277
                                <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
278
                                <input type="hidden" name="op" value="delete_confirm" />
279
                                <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</button>
280
                            </form>
277
                        </td>
281
                        </td>
278
                    </tr>
282
                    </tr>
279
                [% END %]
283
                [% END %]
280
- 

Return to bug 19560