]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/modules/members/update-child.tt
Bug 11554: Capitalization fix in patron account on fines tab
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / update-child.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Choose Adult category</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
5 <script type="text/javascript" src="[% interface %]/[% theme %]/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6 [% INCLUDE 'datatables-strings.inc' %]
7 <script type="text/javascript" src="[% interface %]/[% theme %]/en/js/datatables.js"></script>
8 <script type="text/javascript">
9         $(document).ready(function() {
10         $("#catst").dataTable($.extend(true, {}, dataTablesDefaults, {
11             "sDom": 't',
12             "aaSorting": [[ 2, "asc" ]],
13             "aoColumnDefs": [
14                 { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
15             ],
16             "bPaginate": false
17         }));
18         });
19 </script>
20 <style type="text/css"> 
21            #custom-doc { width:29em;*width:28.3em;min-width:377px; margin:auto; text-align:left; } 
22 </style> 
23 </head>
24 <body id="pat_update-child" class="pat">
25
26 <div id="custom-doc" class="yui-t7">
27 <div id="bd">
28
29 [% IF ( CONFIRM ) %]
30 <script type="text/javascript">
31 function confirm_updatechild() {
32     var is_confirmed = window.confirm('Are you sure you want to update this child to an Adult category?  This cannot be undone.');
33    
34     if (is_confirmed) {
35             window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% borrowernumber %]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]';
36     }
37 }
38
39 confirm_updatechild([% borrowernumber %]);
40 </script>
41 [% END %]
42
43 [% IF ( SUCCESS ) %]
44 <script type="text/javascript">
45 self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]';
46 window.close();
47 </script>
48 [% END %]
49
50
51
52 [% IF ( MULTI ) %]
53
54 <h3> Choose Adult category </h3>
55
56 [% IF ( CAT_LOOP ) %]
57
58 <form method="post" action="update-child.pl">
59 <fieldset>
60 <table id="catst">
61 <thead>
62 <tr>
63 <th>&nbsp;</th>
64 <th>Code</th>
65 <th>Description</th>
66 </tr>
67 </thead>
68 <tbody>
69 [% FOREACH CAT_LOO IN CAT_LOOP %]
70 <tr>
71 <td>
72 <input type="radio" id="catcode[% CAT_LOO.catcode %]" name="catcode" value="[% CAT_LOO.catcode %]" /></td>
73 <td>[% CAT_LOO.catcode %]</td>
74 <td><label for="catcode[% CAT_LOO.catcode %]"><strong>[% CAT_LOO.catdesc %]</strong></label></td> 
75 </tr>
76 [% END %]
77 </tbody>
78 </table>
79 <input type="hidden" name="op" value="update" />
80 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
81 <input type="hidden" name="catcode" value="[% catcode %]" />
82 <input type="hidden" name="cattype" value="[% cattype %]" />
83 <input type="hidden" name="catcode_multi" value="[% CATCODE_MULTI %]" />
84 <fieldset class="action"><input class="submit" type="submit" value="Submit" /> <a href="#" class="cancel close">Cancel</a></fieldset>
85 [% END %]
86 </fieldset>
87 </form>
88 [% END %]
89
90
91
92
93
94 </div>
95 [% INCLUDE 'popup-bottom.inc' %]