Jonathan Druart
69fd7c026d
This is the result of perl op_must_start_with_cud.pl Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
83 lines
2.9 KiB
Text
83 lines
2.9 KiB
Text
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% PROCESS 'i18n.inc' %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>[% FILTER collapse %]
|
|
[% t("Choose adult category") | html %] ›
|
|
[% t("Patrons") | html %] ›
|
|
[% t("Koha") | html %]
|
|
[% END %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
|
|
<body id="pat_update-child" class="pat">
|
|
<div class="container-fluid">
|
|
|
|
[% IF ( MULTI ) %]
|
|
|
|
<h1> Choose adult category </h1>
|
|
|
|
[% IF patron_categories %]
|
|
<form method="post" action="update-child.pl">
|
|
[% INCLUDE 'csrf-token.inc' %]
|
|
<fieldset>
|
|
<table id="catst">
|
|
<thead>
|
|
<tr>
|
|
<th> </th>
|
|
<th>Code</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH patron_category IN patron_categories %]
|
|
<tr>
|
|
<td>
|
|
<input type="radio" id="catcode[% patron_category.categorycode | html %]" name="catcode" value="[% patron_category.categorycode | html %]" />
|
|
</td>
|
|
<td>[% patron_category.categorycode | html %]</td>
|
|
<td><label for="catcode[% patron_category.categorycode | html %]"><strong>[% patron_category.description | html %]</strong></label></td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
<input type="hidden" name="op" value="cud-update" />
|
|
<input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
|
|
<input type="hidden" name="cattype" value="[% cattype | html %]" />
|
|
<fieldset class="action">
|
|
<input class="submit" type="submit" value="Submit" />
|
|
<a href="#" class="cancel close">Cancel</a>
|
|
</fieldset>
|
|
</fieldset>
|
|
</form>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% INCLUDE 'datatables.inc' %]
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
$("#catst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"dom": 't',
|
|
"order": [[ 2, "asc" ]],
|
|
"columnDefs": [
|
|
{ "targets": [ 0 ], "orderable": false, "searchable": false }
|
|
],
|
|
"paginate": false
|
|
}));
|
|
});
|
|
</script>
|
|
[% IF ( SUCCESS ) %]
|
|
<script>
|
|
self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]';
|
|
window.close();
|
|
</script>
|
|
[% END %]
|
|
[% INCLUDE 'str/members-menu.inc' %]
|
|
[% Asset.js("js/members-menu.js") | $raw %]
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
|