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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-8 / +7 lines)
Lines 162-174 tinyMCE.init({ Link Here
162
                <ol>
162
                <ol>
163
                    [% FOREACH category IN categories %]
163
                    [% FOREACH category IN categories %]
164
                        <li>
164
                        <li>
165
                            <label for="[% category.categorycode %]">[% category.categoryname %]: </label>
165
                            <label for="[% category.categorycode %]">[% category.categoryname |html %]: </label>
166
                            [% IF category and selected_categorycodes.grep(category.categorycode).size %]
166
                            [% IF category and selected_categorycodes.grep(category.categorycode).size %]
167
                                <input type="checkbox" id="[% category.categorycode %]" name="selected_categorycode_[% category.categorycode %]" checked="checked" />
167
                                <input type="checkbox" id="[% category.categorycode %]" name="selected_categorycode_[% category.categorycode %]" checked="checked" />
168
                            [% ELSE %]
168
                            [% ELSE %]
169
                                <input type="checkbox" id="[% category.categorycode %]" name="selected_categorycode_[% category.categorycode %]" />
169
                                <input type="checkbox" id="[% category.categorycode %]" name="selected_categorycode_[% category.categorycode %]" />
170
                            [% END %]
170
                            [% END %]
171
                            <span class="hint">[% category.codedescription %]</span>
171
                            <span class="hint">[% category.codedescription |html %]</span>
172
                        </li>
172
                        </li>
173
                    [% END %]
173
                    [% END %]
174
                </ol>
174
                </ol>
Lines 204-210 tinyMCE.init({ Link Here
204
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
204
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
205
    <div class="dialog alert">
205
    <div class="dialog alert">
206
        <form action="/cgi-bin/koha/admin/branches.pl" method="post">
206
        <form action="/cgi-bin/koha/admin/branches.pl" method="post">
207
            <h3>Are you sure you want to delete [% library.branchname %] ([% library.branchcode %])?</h3>
207
            <h3>Are you sure you want to delete [% library.branchname |html %] ([% library.branchcode %])?</h3>
208
            <input type="hidden" name="op" value="delete_confirmed" />
208
            <input type="hidden" name="op" value="delete_confirmed" />
209
            <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
209
            <input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
210
            <input type="hidden" name="branchname" value="[% library.branchname |html %]">
210
            <input type="hidden" name="branchname" value="[% library.branchname |html %]">
Lines 264-270 tinyMCE.init({ Link Here
264
                        </td>
264
                        </td>
265
                        <td>
265
                        <td>
266
                            [% FOREACH category IN library.get_categories %]
266
                            [% FOREACH category IN library.get_categories %]
267
                                [% category.categoryname %]<br />
267
                                [% category.categoryname |html %]<br />
268
                            [% END %]
268
                            [% END %]
269
                        </td>
269
                        </td>
270
                        <td>[% library.branchip %]</td>
270
                        <td>[% library.branchip %]</td>
Lines 296-304 tinyMCE.init({ Link Here
296
                    <tbody>
296
                    <tbody>
297
                        [% FOREACH category IN group_type.categories %]
297
                        [% FOREACH category IN group_type.categories %]
298
                            <tr>
298
                            <tr>
299
                                <td>[% category.categoryname %]</td>
299
                                <td>[% category.categoryname |html %]</td>
300
                                <td>[% category.categorycode %]</td>
300
                                <td>[% category.categorycode %]</td>
301
                                <td>[% category.codedescription %]</td>
301
                                <td>[% category.codedescription |html %]</td>
302
                                <td class="actions">
302
                                <td class="actions">
303
                                  <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&amp;op=add_form_category"><i class="fa fa-pencil"></i> Edit</a>
303
                                  <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&amp;op=add_form_category"><i class="fa fa-pencil"></i> Edit</a>
304
                                  <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&amp;op=delete_confirm_category"><i class="fa fa-trash"></i> Delete</a>
304
                                  <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&amp;op=delete_confirm_category"><i class="fa fa-trash"></i> Delete</a>
Lines 382-388 tinyMCE.init({ Link Here
382
382
383
[% IF op == 'delete_confirm_category' %]
383
[% IF op == 'delete_confirm_category' %]
384
    <div class="dialog alert">
384
    <div class="dialog alert">
385
    <h3>Are you sure you want to delete the group '[% category.codedescription %]' ([% category.categorycode %])?</h3>
385
    <h3>Are you sure you want to delete the group '[% category.codedescription |html %]' ([% category.categorycode %])?</h3>
386
    <form action="/cgi-bin/koha/admin/branches.pl" method="post">
386
    <form action="/cgi-bin/koha/admin/branches.pl" method="post">
387
        <input type="hidden" name="op" value="delete_confirmed_category" />
387
        <input type="hidden" name="op" value="delete_confirmed_category" />
388
        <input type="hidden" name="categorycode" value="[% category.categorycode |html %]" />
388
        <input type="hidden" name="categorycode" value="[% category.categorycode |html %]" />
389
- 

Return to bug 19110