Merge branch 'new/bug_5307' into kcmaster
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-edit-layout.tmpl
index f46f124..a9f1ff3 100644 (file)
@@ -4,11 +4,11 @@
     <script type="text/JavaScript" language="JavaScript">
         //<![CDATA[
             $(document).ready(function() {
-                $("input[@name='layout_choice']").change( function() { layout_method() } );
+                $("input[name='layout_choice']").change( function() { layout_method() } );
                 layout_method();
             });
             function layout_method() {
-                if( $("input[@name='layout_choice']:checked").val() == 'layout_string' ) {
+                if( $("input[name='layout_choice']:checked").val() == 'layout_string' ) {
                     $('#layout_table').hide();
                     $('#layout_string').show();
                 } else {
     <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/labels/label-home.pl">Labels</a> &rsaquo;
+        <a href="/cgi-bin/koha/labels/label-home.pl">Labels Home</a> &rsaquo;
+        <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Mange Label Layouts</a> &rsaquo;
         <!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout
     </div>
     <div id="doc3" class="yui-t2">
         <div id="bd">
             <div id="yui-main">
                 <div class="yui-b">
-                    <!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
                     <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
                         <fieldset class="rows">
                             <legend><!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout</legend>
                                     <!-- /TMPL_LOOP -->
                                     </select>
                                 </li>
-                                <li> 
-                                    <fieldset class="rows">
+                                <li>
+                                    <fieldset>
                                         <legend>Bibliographic Data to Print</legend>
-                                        <input type="radio" name="layout_choice" value="layout_table" <!-- TMPL_UNLESS NAME="layout_string" -->checked="checked"<!-- /TMPL_UNLESS -->" >Choose Order Of Text Fields to Print</input>
-                                        <br />
-                                            <fieldset id="layout_table">
-                                                <table summary="fields to print">
+                                                                               <ol>
+                                        <li class="radio"><!-- TMPL_IF NAME="layout_string" -->
+                                        <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" checked="checked" /><label for="layout_choice_order">Choose Order Of Text Fields to Print</label>
+                                        <!-- TMPL_ELSE -->
+                                        <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" /><label for="layout_choice_order">Choose Order Of Text Fields to Print</label>
+                                        <!-- /TMPL_IF -->
+                                                                                               <div id="layout_table">
                                                     <!-- TMPL_LOOP NAME="field_table" -->
-                                                    <tr>
+                                                    <p>
                                                         <!-- TMPL_LOOP NAME="text_fields" -->
                                                         <!-- TMPL_IF NAME="field_empty" -->
-                                                        <td>
-                                                            &nbsp;
-                                                        </td>
                                                         <!-- TMPL_ELSE -->
-                                                        <td>
-                                                            <select name="<!-- TMPL_VAR NAME="field_name" -->" id="<!-- TMPL_VAR NAME="field_name" -->">
+                                                            <select name="<!-- TMPL_VAR NAME="field_name" -->" id="<!-- TMPL_VAR NAME="field_name" escape="url" -->">
                                                                 <!-- TMPL_LOOP NAME="order" -->
                                                                 <!-- TMPL_IF Name="selected" -->
                                                                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected"><!-- TMPL_VAR Name="num" --></option>
                                                                 <!-- /TMPL_IF -->
                                                                 <!-- /TMPL_LOOP -->
                                                             </select>
-                                                            <label for="<!-- TMPL_VAR NAME="field_name" -->"><!-- TMPL_VAR NAME="field_label" --></label>
-                                                        </td>
+                                                            <label for="<!-- TMPL_VAR NAME="field_name" escape="url" -->"><!-- TMPL_VAR NAME="field_label" --></label>
                                                         <!-- /TMPL_IF -->
                                                         <!-- /TMPL_LOOP -->
-                                                    </tr>
+                                                    </p>
                                                     <!-- /TMPL_LOOP -->
-                                                </table>
-                                                <br />
-                                            </fieldset>
-                                            <br />
-                                            <input type="radio" name="layout_choice" value="layout_string" <!-- TMPL_IF NAME="layout_string" -->checked="checked"<!-- /TMPL_IF -->"> List Fields </input>
-                                            <fieldset id="layout_string" class="brief">
+                                                                                       </div>
+                                            </li>
+                                            <!-- TMPL_UNLESS NAME="layout_string" -->
+                                            <li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" checked="checked" /> <label for="layout_choice_list">List Fields</label></li>
+                                            <!-- TMPL_ELSE -->
+                                            <li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" /> <label for="layout_choice_list">List Fields</label></li>
+                                            <!-- /TMPL_UNLESS -->
+                                           <li> <fieldset id="layout_string" class="brief">
                                                 <label for="format_string">Data Fields</label>
                                                 <input type="text" name="format_string" id="format_string" size="80" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="format_string" -->" />
-                                                <div class="help">
+                                                <div class="hint">
                                                     <p>Enter a comma separated list of fields to print.  You may include any <em>Koha field</em> or MARC subfield.</p>
                                                     <p>See online help for advanced options</p>
                                                     <p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
                                                 </div>
-                                            </fieldset>
-                                    </fieldset>   
+                                            </fieldset></li>
+                                                                                       </ol>
+                                    </fieldset>
                                 </li>
                                 <li>
                                     <label for="guidebox">Draw Guide Boxes</label>
                             </ol>
                         </fieldset>
                         <fieldset class="action">
-                            <input type="submit" value="Submit" /><a class="cancel" href="/cgi-bin/koha/labels/label-layout.pl">Cancel</a>
+                            <input type="submit" value="Save" />
+                            <a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a>
                             <input type="hidden" name="op" value="save" />
                             <input type="hidden" name="layout_id" value="<!-- TMPL_VAR NAME="layout_id" -->" />
                         </fieldset>