Bug 5917 : Swapping templates over
[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 <style type="text/css"> 
5            #custom-doc { width:29em;*width:28.3em;min-width:377px; margin:auto; text-align:left; } 
6 </style> 
7 </head>
8 <body>
9
10 <div id="custom-doc" class="yui-t7">
11 <div id="bd">
12
13 [% IF ( CONFIRM ) %]
14 <script language="javascript" type="text/javascript">
15 function confirm_updatechild() {
16     var is_confirmed = window.confirm('Are you sure you want to update this child to an Adult category?  This cannot be undone.');
17    
18     if (is_confirmed) {
19             window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% borrowernumber %]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]';
20     }
21 }
22
23 confirm_updatechild([% borrowernumber %]);
24 </script>
25 [% END %]
26
27 [% IF ( SUCCESS ) %]
28 <script language="javascript" type="text/javascript">
29 self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]';
30 window.close();
31 </script>
32 [% END %]
33
34
35
36 [% IF ( MULTI ) %]
37
38 <h3> Choose Adult category </h3>
39
40 [% IF ( CAT_LOOP ) %]
41
42 <form method="post" action="update-child.pl">
43 <fieldset>
44 <table>
45 <tr>
46 <th>&nbsp;</th>
47 <th>Code</th>
48 <th>Description</th>
49 </tr>
50 [% FOREACH CAT_LOO IN CAT_LOOP %]
51 <tr>
52 <td>
53 <input type="radio" id="catcode[% CAT_LOO.catcode %]" name="catcode" value="[% CAT_LOO.catcode %]" /></td>
54 <td>[% CAT_LOO.catcode %]</td>
55 <td><label for="catcode[% CAT_LOO.catcode %]"><strong>[% CAT_LOO.catdesc %]</strong></label></td> 
56 </tr>
57 [% END %]
58 </table>
59 <input type="hidden" name="op" value="update" />
60 <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
61 <input type="hidden" name="catcode" value="[% catcode %]" />
62 <input type="hidden" name="cattype" value="[% cattype %]" />
63 <input type="hidden" name="catcode_multi" value="[% CATCODE_MULTI %]" />
64 <fieldset class="action"><input class="submit" type="submit" value="Submit" /> <a href="#" class="cancel close">Cancel</a></fieldset>
65 [% END %]
66 </fieldset>
67 </form>
68 [% END %]
69
70
71
72
73
74 </div>
75 [% INCLUDE 'intranet-bottom.inc' %]