Merge remote-tracking branch 'origin/new/bug_7016'
[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 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript">
6         $(document).ready(function() {
7                 $.tablesorter.defaults.widgets = ['zebra'];
8                 $("#catst").tablesorter({
9                         sortList: [[2,0]],
10                         headers: { 0: { sorter: false }}
11                 });
12         });
13 </script>
14 <style type="text/css"> 
15            #custom-doc { width:29em;*width:28.3em;min-width:377px; margin:auto; text-align:left; } 
16 </style> 
17 </head>
18 <body id="pat_update-child" class="pat">
19
20 <div id="custom-doc" class="yui-t7">
21 <div id="bd">
22
23 [% IF ( CONFIRM ) %]
24 <script language="javascript" type="text/javascript">
25 function confirm_updatechild() {
26     var is_confirmed = window.confirm('Are you sure you want to update this child to an Adult category?  This cannot be undone.');
27    
28     if (is_confirmed) {
29             window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% borrowernumber %]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]';
30     }
31 }
32
33 confirm_updatechild([% borrowernumber %]);
34 </script>
35 [% END %]
36
37 [% IF ( SUCCESS ) %]
38 <script language="javascript" type="text/javascript">
39 self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]';
40 window.close();
41 </script>
42 [% END %]
43
44
45
46 [% IF ( MULTI ) %]
47
48 <h3> Choose Adult category </h3>
49
50 [% IF ( CAT_LOOP ) %]
51
52 <form method="post" action="update-child.pl">
53 <fieldset>
54 <table id="catst">
55 <thead>
56 <tr>
57 <th>&nbsp;</th>
58 <th>Code</th>
59 <th>Description</th>
60 </tr>
61 </thead>
62 <tbody>
63 [% FOREACH CAT_LOO IN CAT_LOOP %]
64 <tr>
65 <td>
66 <input type="radio" id="catcode[% CAT_LOO.catcode %]" name="catcode" value="[% CAT_LOO.catcode %]" /></td>
67 <td>[% CAT_LOO.catcode %]</td>
68 <td><label for="catcode[% CAT_LOO.catcode %]"><strong>[% CAT_LOO.catdesc %]</strong></label></td> 
69 </tr>
70 [% END %]
71 </tbody>
72 </table>
73 <input type="hidden" name="op" value="update" />
74 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
75 <input type="hidden" name="catcode" value="[% catcode %]" />
76 <input type="hidden" name="cattype" value="[% cattype %]" />
77 <input type="hidden" name="catcode_multi" value="[% CATCODE_MULTI %]" />
78 <fieldset class="action"><input class="submit" type="submit" value="Submit" /> <a href="#" class="cancel close">Cancel</a></fieldset>
79 [% END %]
80 </fieldset>
81 </form>
82 [% END %]
83
84
85
86
87
88 </div>
89 [% INCLUDE 'popup-bottom.inc' %]