Markup corrections and other minor changes.
authorOwen Leonard <oleonard@myacpl.org>
Fri, 25 Sep 2009 14:15:30 +0000 (09:15 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Tue, 29 Sep 2009 23:21:00 +0000 (19:21 -0400)
- Clarifying error message
- Hiding batch action buttons when batch is empty

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/labels-batches-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tmpl

index e139feb..47a0b8f 100644 (file)
         //]]>
     </script>
     <ul class="toolbar">
-        <li id="additemsc"><a id="additems" href="#">Add Item(s)</a></li>
+        <li id="additemsc"><a id="additems" href="#">Add Item(s)</a></li><!-- TMPL_IF NAME="table_loop" -->
         <li id="removeitemsc"><a id="removeitems" href="#">Remove Item(s)</a></li>
         <li id="deletebatchc"><a id="deletebatch" href="#">Delete Batch</a></li>
         <li id="deduplicatec"><a id="deduplicate" href="#">Remove Duplicates</a></li>
         <li id="exportitemsc"><a id="exportitems" href="#">Export Item(s)</a></li>
-        <li id="exportbatchc"><a id="exportbatch" href="#">Export Batch</a></li>
+        <li id="exportbatchc"><a id="exportbatch" href="#">Export Batch</a></li><!-- /TMPL_IF -->
     </ul>
 </div>
index de26dea..d132619 100644 (file)
                                     </table>
                                 </form>
                                 <!-- TMPL_ELSE -->
-                                    <h2>There are no items in this batch yet</h2>
-                                    <div class="hint"><h3>Use the toolbar above to add items.</h3></div>
+                                    <div class="dialog message"><h4>There are no items in Batch <!-- TMPL_VAR NAME="batch_id" --> yet</h4>
+                                    <p>Use the toolbar above to add items.</p></div>
                                 <!-- /TMPL_IF -->
                             </div>
                             <!-- TMPL_IF NAME="err" -->
                             <div class="yui-u">
-                                <div class="alert">
-                                    <strong>WARNING: An error was encountered and <!-- TMPL_VAR NAME="errstr" --> Please have your system administrator check the error log for details.</strong>
+                                <div class="dialog alert">
+                                    <strong>WARNING:</strong> An error was encountered and <!-- TMPL_VAR NAME="errstr" --> Please have your system administrator check the error log for details.
                                 </div>
                             </div>
                             <!-- TMPL_ELSIF NAME="duplicate_message" -->
                             <div class="yui-u">
-                                <div class="dialog">
-                                    <strong><!-- TMPL_VAR NAME="duplicate_count" --> duplicate item(s) found and removed from batch <!-- TMPL_VAR NAME="batch_id" -->.</strong>
+                                <div class="dialog message">
+                                    <strong><!-- TMPL_VAR NAME="duplicate_count" --> duplicate item(s) found</strong> and removed from batch <!-- TMPL_VAR NAME="batch_id" -->.
                                 </div>
                             </div>
                             <!-- /TMPL_IF -->