Merge commit 'biblibre/3.2_community' into to-push
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / update-child.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Choose Adult category</title>
3 <!-- TMPL_INCLUDE NAME="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 <!--TMPL_IF NAME="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=<!-- TMPL_VAR NAME="borrowernumber" -->&catcode=<!-- TMPL_VAR NAME="catcode" -->&catcode_multi=<!-- TMPL_VAR NAME="CATCODE_MULTI" -->';
20     }
21 }
22
23 confirm_updatechild(<!-- TMPL_VAR NAME="borrowernumber" -->);
24 </script>
25 <!-- /TMPL_IF  -->
26
27 <!--TMPL_IF NAME="SUCCESS" -->
28 <script language="javascript" type="text/javascript">
29 self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->';
30 window.close();
31 </script>
32 <!-- /TMPL_IF  -->
33
34
35
36 <!--TMPL_IF NAME="MULTI" -->
37
38 <h3> Choose Adult category </h3>
39
40 <!--TMPL_IF NAME="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 <!-- TMPL_LOOP NAME="CAT_LOOP" -->
51 <tr>
52 <td>
53 <input type="radio" id="catcode<!-- TMPL_VAR NAME="catcode" -->" name="catcode" value="<!-- TMPL_VAR NAME="catcode" -->" />
54 <td><!-- TMPL_VAR NAME="catcode" --></td>
55 <td><label for="catcode<!-- TMPL_VAR NAME="catcode" -->"><strong><!-- TMPL_VAR NAME="catdesc" --></strong></label></td> 
56 </tr>
57 <!-- /TMPL_LOOP -->
58 </table>
59 <input type="hidden" name="op" value="update" />
60 <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
61 <input type="hidden" name="catcode" value="<!-- TMPL_VAR NAME="catcode" -->" />
62 <input type="hidden" name="cattype" value="<!-- TMPL_VAR NAME="cattype" -->" />
63 <input type="hidden" name="catcode_multi" value="<!-- TMPL_VAR NAME="CATCODE_MULTI" -->" />
64 <fieldset class="action"><input class="submit" type="submit" value="Submit" /> <a href="#" class="cancel close">Cancel</a></fieldset>
65 <!--/TMPL_IF-->
66 </fieldset>
67 </form>
68 <!-- /TMPL_IF -->
69
70
71
72
73
74 </div>
75 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->