[% USE Koha %]
[% USE KohaDates %]
[% USE Price %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › Patron categories › [% IF op == 'add_form' %][% IF ( categorycode ) %]Modify category '[% categorycode |html %]'[% ELSE %]New category[% END %][% END %]
[% IF op == 'delete_confirm' %][% IF ( patrons_in_category > 0 ) %]Cannot delete: category [% categorycode |html %] in use[% ELSE %]Confirm deletion of category '[% categorycode |html %]'[% END %][% END %]
</title>
[% INCLUDE 'doc-head-close.inc' %]
-[% INCLUDE 'calendar.inc' %]
-<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
-[% INCLUDE 'datatables.inc' %]
-<script type="text/javascript">
- var MSG_CATEGORYCODE_CHARS = _("Category code can only contain the following characters: letters, numbers, - and _.");
- var MSG_BOTH_ENROLLMENTPERIODS = _("Please choose only one enrollment period setting.");
- var MSG_ONE_ENROLLMENTPERIOD = ("Please choose an enrollment period in months OR by date.");
-</script>
-<script type="text/javascript" src="[% themelang %]/js/categories.js"></script>
+<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
<style type="text/css">#enrolmentmessage.hint { display : none; }</style>
</head>
+
<body id="admin_categorie" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patrons-admin-search.inc' %]
<ol>
<li>
<label for="enrolmentperiod" style="width:6em;">In months: </label>
- <input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %]" /> months
+ [% IF category.enrolmentperiod %]
+ <input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="[% category.enrolmentperiod %]" /> months
+ [% ELSE %]
+ <input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="" /> months
+ [% END %]
</li>
<li>
<label for="enrolmentperioddate" style="width:6em;">Until date: </label>
<option value="">All branches</option>
[% FOREACH branch IN branches_loop %]
[% IF branch.selected %]
- <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
+ <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
[% ELSE %]
- <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
+ <option value="[% branch.branchcode %]">[% branch.branchname |html %]</option>
[% END %]
[% END %]
</select>
<h2>Patron categories</h2>
[% IF searchfield %]
- You Searched for [% searchfield %]</span>
+ You Searched for [% searchfield |html %]</span>
[% END %]
[% IF categories%]
<table id="table_categorie">
[% INCLUDE 'admin-menu.inc' %]
</div>
</div>
+
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu_[% KOHA_VERSION %].js"></script>
+ <script type="text/javascript" src="[% interface %]/[% theme %]/js/messaging-preference-form_[% KOHA_VERSION %].js"></script>
+ [% INCLUDE 'calendar.inc' %]
+ [% INCLUDE 'datatables.inc' %]
+ <script type="text/javascript">
+ var MSG_CATEGORYCODE_CHARS = _("Category code can only contain the following characters: letters, numbers, - and _.");
+ var MSG_ONE_ENROLLMENTPERIOD = ("Please choose an enrollment period in months OR by date.");
+ </script>
+ <script type="text/javascript" src="[% themelang %]/js/categories_[% KOHA_VERSION %].js"></script>
+[% END %]
[% INCLUDE 'intranet-bottom.inc' %]