Bug 18209: Add default, 'Actions' and fix case
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patroncards / edit-profile.tt
index 7060146..4fc2538 100644 (file)
@@ -1,5 +1,5 @@
     [% INCLUDE 'doc-head-open.inc' %]
-    <title>Koha &rsaquo; Tools &rsaquo; Patron Card Creator</title>
+    <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Profiles &rsaquo; [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]</title>
     [% INCLUDE 'doc-head-close.inc' %]
     <script type="text/javascript">
         //<![CDATA[
         });
         //]]>
     </script>
-    <script type="text/javascript">
-        //<![CDATA[
-        $(document).ready(function() {
-            $("#save").empty();
-            $("#cancel").empty();
-            buildButtons();
-         });
-        function submitForm() {
-            document.input.submit();
-        };
-        function buildButtons() {
-            var saveButton = new YAHOO.widget.Button({
-                type: "link",
-                onclick: {fn: submitForm},
-                label: _("Save"),
-                id: "save",
-                container: "save"
-            });
-            var cancelButton = new YAHOO.widget.Button({
-                type: "link",
-                href: "/cgi-bin/koha/patroncards/manage.pl?card_element=profile",
-                label: _("Cancel"),
-                id: "cancel",
-                container: "cancel",
-            });
-        };
-    </script>
 </head>
-<body>
+<body id="pcard_edit-profile" class="tools pcard">
     [% INCLUDE 'header.inc' %]
     [% INCLUDE 'cat-search.inc' %]
     <div id="breadcrumbs">
         <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
         <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
-        <a href="/cgi-bin/koha/patroncards/home.pl">Patron Card Creator</a> &rsaquo;
-        <a href="/cgi-bin/koha/patroncards/manage.pl?label_element=profile">Printer Profiles</a> &rsaquo;
-        Edit Printer Profile
+        <a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> &rsaquo;
+        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile">Profiles</a> &rsaquo;
+        [% IF ( profile_id ) %]Edit ([% profile_id %])[% ELSE %]New[% END%]
     </div>
     <div id="doc3" class="yui-t2">
         <div id="bd">
         <div id="yui-main">
             <div class="yui-b">
+                    <div class="yui-g">
+                    [% INCLUDE 'patroncards-toolbar.inc' %]
+                        <div class="yui-u first">
+
+                        </div>
+                    </div>
                         <div class="yui-g">
-                            <h3>Edit Printer Profile</h3>
+                            <h3>[% IF (profile_id) %]Edit[% ELSE %]Create[% END%] printer profile[% IF (profile_id) %] ([% profile_id %])[% END %]</h3>
                                 <div class="yui-g first">
                                     <form name="input" action="/cgi-bin/koha/patroncards/edit-profile.pl" method="get">
                                     <fieldset class="rows"><legend>Profile settings</legend>
                                                 [% IF ( label_template ) %]
                                                  <label for="template_name">Template name:</label> [% label_template %]
                                                 [% ELSE %]
-                                                 <span class="label">Template name:</span> Profile Unassigned
+                                                 <span class="label">Template name:</span> Profile unassigned
                                                 [% END %]
                                             </li>
                                             <li>
                                         </ol>
                                     </fieldset>
                                     <fieldset class="action">
-                                        <span id="save"><input type="submit" value="Save" /></span>
-                                        <span id ="cancel"><a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a></span>
+                                        <input type="submit" value="Save" />
+                                        <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a>
                                         <input type="hidden" name="op" value="save" />
                                         <input type="hidden" name="profile_id" value="[% profile_id %]" />
                                     </fieldset>
                         </div>
                 </div>
                 <div class="yui-b">
-                    [% INCLUDE 'patroncards-menu.inc' %]
+                  [% INCLUDE 'tools-menu.inc' %]
                 </div>
             </div>
             [% INCLUDE 'intranet-bottom.inc' %]