Bug 29234: Further clean Z3950 Tests
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / modules / members / update-child.tt
index 38e1324..460ee2d 100644 (file)
@@ -1,21 +1,17 @@
+[% USE raw %]
+[% USE Asset %]
 [% SET footerjs = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Koha &rsaquo; Choose adult category</title>
+<title>Choose adult category &rsaquo; Koha</title>
 [% INCLUDE 'doc-head-close.inc' %]
-<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
-<style type="text/css">
-    #custom-doc { width:29em;*width:28.3em;min-width:377px; margin:auto; text-align:left; }
-</style>
 </head>
 
 <body id="pat_update-child" class="pat">
-
-<div id="custom-doc" class="yui-t7">
-<div id="bd">
+    <div class="container-fluid">
 
 [% IF ( MULTI ) %]
 
-    <h3> Choose adult category </h3>
+    <h1> Choose adult category </h1>
 
     [% IF patron_categories %]
         <form method="post" action="update-child.pl">
                         [% FOREACH patron_category IN patron_categories %]
                             <tr>
                                 <td>
-                                    <input type="radio" id="catcode[% patron_category.categorycode %]" name="catcode" value="[% patron_category.categorycode %]" />
+                                    <input type="radio" id="catcode[% patron_category.categorycode | html %]" name="catcode" value="[% patron_category.categorycode | html %]" />
                                 </td>
-                                <td>[% patron_category.categorycode  %]</td>
-                                <td><label for="catcode[% patron_category.categorycode %]"><strong>[% patron_category.description %]</strong></label></td>
+                                <td>[% patron_category.categorycode | html %]</td>
+                                <td><label for="catcode[% patron_category.categorycode | html %]"><strong>[% patron_category.description | html %]</strong></label></td>
                             </tr>
                         [% END %]
                     </tbody>
                 </table>
                 <input type="hidden" name="op" value="update" />
-                <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
-                <input type="hidden" name="catcode" value="[% catcode %]" />
-                <input type="hidden" name="cattype" value="[% cattype %]" />
-                <input type="hidden" name="catcode_multi" value="[% CATCODE_MULTI %]" />
+                <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
+                <input type="hidden" name="cattype" value="[% cattype | html %]" />
                 <fieldset class="action">
                     <input class="submit" type="submit" value="Submit" />
                     <a href="#" class="cancel close">Cancel</a>
         </form>
     [% END %]
 [% END %]
-</div>
+
 
 [% MACRO jsinclude BLOCK %]
-    <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu_[% KOHA_VERSION %].js"></script>
     [% INCLUDE 'datatables.inc' %]
-    <script type="text/javascript">
+    <script>
+
         $(document).ready(function() {
             $("#catst").dataTable($.extend(true, {}, dataTablesDefaults, {
                 "sDom": 't',
             }));
         });
     </script>
-    [% IF ( CONFIRM ) %]
-        <script type="text/javascript">
-            function confirm_updatechild() {
-                var is_confirmed = window.confirm('Are you sure you want to update this child to an Adult category?  This cannot be undone.');
-                if (is_confirmed) {
-                        window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% borrowernumber %]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]';
-                }
-            }
-
-            confirm_updatechild([% borrowernumber %]);
-        </script>
-    [% END %]
     [% IF ( SUCCESS ) %]
-        <script type="text/javascript">
-            self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]';
+        <script>
+            self.opener.location.href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | html %]';
             window.close();
         </script>
     [% END %]
+    [% INCLUDE 'str/members-menu.inc' %]
+    [% Asset.js("js/members-menu.js") | $raw %]
 [% END %]
 
-[% INCLUDE 'popup-bottom.inc' %]
+[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]