<ol>
[% FOREACH category IN categories %]
<li>
- <label for="[% category.categorycode %]">[% category.categoryname %]: </label>
+ <label for="[% category.categorycode %]">[% category.categoryname |html %]: </label>
[% IF category and selected_categorycodes.grep(category.categorycode).size %]
<input type="checkbox" id="[% category.categorycode %]" name="selected_categorycode_[% category.categorycode %]" checked="checked" />
[% ELSE %]
<input type="checkbox" id="[% category.categorycode %]" name="selected_categorycode_[% category.categorycode %]" />
[% END %]
- <span class="hint">[% category.codedescription %]</span>
+ <span class="hint">[% category.codedescription |html %]</span>
</li>
[% END %]
</ol>
[% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
<div class="dialog alert">
<form action="/cgi-bin/koha/admin/branches.pl" method="post">
- <h3>Are you sure you want to delete [% library.branchname %] ([% library.branchcode %])?</h3>
+ <h3>Are you sure you want to delete [% library.branchname |html %] ([% library.branchcode %])?</h3>
<input type="hidden" name="op" value="delete_confirmed" />
<input type="hidden" name="branchcode" value="[% library.branchcode |html %]" />
<input type="hidden" name="branchname" value="[% library.branchname |html %]">
</td>
<td>
[% FOREACH category IN library.get_categories %]
- [% category.categoryname %]<br />
+ [% category.categoryname |html %]<br />
[% END %]
</td>
<td>[% library.branchip %]</td>
<tbody>
[% FOREACH category IN group_type.categories %]
<tr>
- <td>[% category.categoryname %]</td>
+ <td>[% category.categoryname |html %]</td>
<td>[% category.categorycode %]</td>
- <td>[% category.codedescription %]</td>
+ <td>[% category.codedescription |html %]</td>
<td class="actions">
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=add_form_category"><i class="fa fa-pencil"></i> Edit</a>
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=delete_confirm_category"><i class="fa fa-trash"></i> Delete</a>
[% IF op == 'delete_confirm_category' %]
<div class="dialog alert">
- <h3>Are you sure you want to delete the group '[% category.codedescription %]' ([% category.categorycode %])?</h3>
+ <h3>Are you sure you want to delete the group '[% category.codedescription |html %]' ([% category.categorycode %])?</h3>
<form action="/cgi-bin/koha/admin/branches.pl" method="post">
<input type="hidden" name="op" value="delete_confirmed_category" />
<input type="hidden" name="categorycode" value="[% category.categorycode |html %]" />