|
Lines 98-106
Link Here
|
| 98 |
[% INCLUDE 'header.inc' %] |
98 |
[% INCLUDE 'header.inc' %] |
| 99 |
[% INCLUDE 'patrons-admin-search.inc' %] |
99 |
[% INCLUDE 'patrons-admin-search.inc' %] |
| 100 |
|
100 |
|
| 101 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF op == 'add_form' %] <a href="/cgi-bin/koha/admin/categorie.pl">Patron categories</a> › [% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %] |
101 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF op == 'add_form' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a> › [% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %] |
| 102 |
[% IF op == 'delete_confirm' %] <a href="/cgi-bin/koha/admin/categorie.pl">Patron categories</a> › [% IF ( patrons_in_category > 0 ) %]Cannot delete: Category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %] |
102 |
[% IF op == 'delete_confirm' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a> › [% IF ( patrons_in_category > 0 ) %]Cannot delete: Category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %] |
| 103 |
[% IF op == 'delete_confirmed' %] <a href="/cgi-bin/koha/admin/categorie.pl">Patron categories</a> › Category deleted[% END %] |
103 |
[% IF op == 'delete_confirmed' %] <a href="/cgi-bin/koha/admin/categories.pl">Patron categories</a> › Category deleted[% END %] |
| 104 |
[% IF op == 'list' %]Patron categories[% END %]</div> |
104 |
[% IF op == 'list' %]Patron categories[% END %]</div> |
| 105 |
|
105 |
|
| 106 |
<div id="doc3" class="yui-t2"> |
106 |
<div id="doc3" class="yui-t2"> |
|
Lines 133-139
Link Here
|
| 133 |
[% END %] |
133 |
[% END %] |
| 134 |
|
134 |
|
| 135 |
[% IF op == 'add_form' %] |
135 |
[% IF op == 'add_form' %] |
| 136 |
<form name="Aform" action="/cgi-bin/koha/admin/categorie.pl" method="post"> |
136 |
<form name="Aform" action="/cgi-bin/koha/admin/categories.pl" method="post"> |
| 137 |
<input type="hidden" name="op" value="add_validate" /> |
137 |
<input type="hidden" name="op" value="add_validate" /> |
| 138 |
<input type="hidden" name="checked" value="0" /> |
138 |
<input type="hidden" name="checked" value="0" /> |
| 139 |
[% IF category %] |
139 |
[% IF category %] |
|
Lines 304-310
Link Here
|
| 304 |
[% END %] |
304 |
[% END %] |
| 305 |
|
305 |
|
| 306 |
[% IF op == 'delete_confirm' %] |
306 |
[% IF op == 'delete_confirm' %] |
| 307 |
<form action="/cgi-bin/koha/admin/categorie.pl" method="post"> |
307 |
<form action="/cgi-bin/koha/admin/categories.pl" method="post"> |
| 308 |
<fieldset> |
308 |
<fieldset> |
| 309 |
<legend> |
309 |
<legend> |
| 310 |
[% IF patrons_in_category > 0 %] |
310 |
[% IF patrons_in_category > 0 %] |
|
Lines 358-364
Link Here
|
| 358 |
<input type="hidden" name="op" value="delete_confirmed" /> |
358 |
<input type="hidden" name="op" value="delete_confirmed" /> |
| 359 |
<input type="hidden" name="categorycode" value="[% categorycode |html %]" /> |
359 |
<input type="hidden" name="categorycode" value="[% categorycode |html %]" /> |
| 360 |
<input type="submit" value="Delete this category" /> |
360 |
<input type="submit" value="Delete this category" /> |
| 361 |
<a class="cancel" href="/cgi-bin/koha/admin/categorie.pl">Cancel</a> |
361 |
<a class="cancel" href="/cgi-bin/koha/admin/categories.pl">Cancel</a> |
| 362 |
[% END %] |
362 |
[% END %] |
| 363 |
</fieldset> |
363 |
</fieldset> |
| 364 |
</fieldset> |
364 |
</fieldset> |
|
Lines 368-374
Link Here
|
| 368 |
[% IF op == 'list' %] |
368 |
[% IF op == 'list' %] |
| 369 |
|
369 |
|
| 370 |
<div id="toolbar" class="btn-toolbar"> |
370 |
<div id="toolbar" class="btn-toolbar"> |
| 371 |
<a class="btn btn-small" id="newcategory" href="/cgi-bin/koha/admin/categorie.pl?op=add_form"><i class="fa fa-plus"></i> New category</a> |
371 |
<a class="btn btn-small" id="newcategory" href="/cgi-bin/koha/admin/categories.pl?op=add_form"><i class="fa fa-plus"></i> New category</a> |
| 372 |
</div> |
372 |
</div> |
| 373 |
|
373 |
|
| 374 |
<h2>Patron category administration</h2> |
374 |
<h2>Patron category administration</h2> |
|
Lines 403-409
Link Here
|
| 403 |
<tr> |
403 |
<tr> |
| 404 |
<td>[% category.categorycode |html %]</td> |
404 |
<td>[% category.categorycode |html %]</td> |
| 405 |
<td> |
405 |
<td> |
| 406 |
<a href="/cgi-bin/koha/admin/categorie.pl?op=add_form&categorycode=[% category.categorycode |uri %]">[% category.description |html %]</a> |
406 |
<a href="/cgi-bin/koha/admin/categories.pl?op=add_form&categorycode=[% category.categorycode |uri %]">[% category.description |html %]</a> |
| 407 |
</td> |
407 |
</td> |
| 408 |
<td> |
408 |
<td> |
| 409 |
[% SWITCH category.category_type %] |
409 |
[% SWITCH category.category_type %] |
|
Lines 480-493
Link Here
|
| 480 |
Forever |
480 |
Forever |
| 481 |
[% END %] |
481 |
[% END %] |
| 482 |
</td> |
482 |
</td> |
| 483 |
<td><a href="/cgi-bin/koha/admin/categorie.pl?op=add_form&categorycode=[% category.categorycode |uri %]">Edit</a></td> |
483 |
<td><a href="/cgi-bin/koha/admin/categories.pl?op=add_form&categorycode=[% category.categorycode |uri %]">Edit</a></td> |
| 484 |
<td><a href="/cgi-bin/koha/admin/categorie.pl?op=delete_confirm&categorycode=[% category.categorycode |uri %]">Delete</a></td> |
484 |
<td><a href="/cgi-bin/koha/admin/categories.pl?op=delete_confirm&categorycode=[% category.categorycode |uri %]">Delete</a></td> |
| 485 |
</tr> |
485 |
</tr> |
| 486 |
[% END %] |
486 |
[% END %] |
| 487 |
</tbody> |
487 |
</tbody> |
| 488 |
</table> |
488 |
</table> |
| 489 |
[% ELSE %] |
489 |
[% ELSE %] |
| 490 |
<div class="dialog alert">No categories have been defined. <a href="/cgi-bin/koha/admin/categorie.pl?op=add_form">Create a new category</a>.</div> |
490 |
<div class="dialog alert">No categories have been defined. <a href="/cgi-bin/koha/admin/categories.pl?op=add_form">Create a new category</a>.</div> |
| 491 |
[% END %] |
491 |
[% END %] |
| 492 |
[% END %] |
492 |
[% END %] |
| 493 |
|
493 |
|