Bug 17353: (follow-up) Adjust config variable for moremember.tt too
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / update-child.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Choose adult category</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% Asset.css("css/datatables.css") | $raw %]
8 </head>
9
10 <body id="pat_update-child" class="pat">
11     <div class="container-fluid">
12
13 [% IF ( MULTI ) %]
14
15     <h3> Choose adult category </h3>
16
17     [% IF patron_categories %]
18         <form method="post" action="update-child.pl">
19             <fieldset>
20                 <table id="catst">
21                     <thead>
22                         <tr>
23                         <th>&nbsp;</th>
24                         <th>Code</th>
25                         <th>Description</th>
26                         </tr>
27                     </thead>
28                     <tbody>
29                         [% FOREACH patron_category IN patron_categories %]
30                             <tr>
31                                 <td>
32                                     <input type="radio" id="catcode[% patron_category.categorycode | html %]" name="catcode" value="[% patron_category.categorycode | html %]" />
33                                 </td>
34                                 <td>[% patron_category.categorycode | html %]</td>
35                                 <td><label for="catcode[% patron_category.categorycode | html %]"><strong>[% patron_category.description | html %]</strong></label></td>
36                             </tr>
37                         [% END %]
38                     </tbody>
39                 </table>
40                 <input type="hidden" name="op" value="update" />
41                 <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
42                 <input type="hidden" name="cattype" value="[% cattype | html %]" />
43                 <fieldset class="action">
44                     <input class="submit" type="submit" value="Submit" />
45                     <a href="#" class="cancel close">Cancel</a>
46                 </fieldset>
47             </fieldset>
48         </form>
49     [% END %]
50 [% END %]
51
52
53 [% MACRO jsinclude BLOCK %]
54     [% INCLUDE 'datatables.inc' %]
55     <script type="text/javascript">
56
57         $(document).ready(function() {
58             $("#catst").dataTable($.extend(true, {}, dataTablesDefaults, {
59                 "sDom": 't',
60                 "aaSorting": [[ 2, "asc" ]],
61                 "aoColumnDefs": [
62                     { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
63                 ],
64                 "bPaginate": false
65             }));
66         });
67     </script>
68     [% IF ( SUCCESS ) %]
69         <script type="text/javascript">
70             self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]';
71             window.close();
72         </script>
73     [% END %]
74     [% INCLUDE 'str/members-menu.inc' %]
75     [% Asset.js("js/members-menu.js") | $raw %]
76 [% END %]
77
78 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]