Formatting admin-home into columns, styling system preferences 'add' button.
authorOwen Leonard <oleonard@myacpl.org>
Thu, 8 Nov 2007 21:26:53 +0000 (15:26 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 9 Nov 2007 00:06:44 +0000 (18:06 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl

index 326f0d4..f64d4d1 100644 (file)
    
    <div id="bd">
        <div id="yui-main" class="sysprefs">
-       <div class="yui-g"><h1>System Preferences</h1>
+       <div class="yui-g"><h1>System Preferences</h1></div>
+       <div class="yui-g">
 
+<div class="yui-u first">
 <dl>
        <dt><a href="/cgi-bin/koha/admin/systempreferences.pl">Global system preferences</a></dt>
        <dd>Manage global system preferences like MARC flavor, date format, administrator e-mail, and templates.</dd>
@@ -47,7 +49,8 @@
        <dt><a href="/cgi-bin/koha/admin/finesrules.pl">Fines rules</a></dt>
        <dd>Define fines in a matrix for libraries / patrons / itemtypes (cost, grace period, etc.).</dd>
 </dl>
-
+</div>
+<div class="yui-u">
 <h3>Catalogue</h3>
 <dl>
        <dt><a href="/cgi-bin/koha/admin/authorised_values.pl">Authorised values</a></dt>
@@ -73,7 +76,7 @@
        <dt><a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a></dt>
        <dd>Define which servers to query for MARC data in the integrated Z39.50 client.</dd>
 </dl>
-
+</div>
 
 </div>
 </div>
index 8e1a413..76c039a 100644 (file)
     <!-- /TMPL_IF -->
     
     <!-- TMPL_IF NAME="else" -->
+       
+       <div id="toolbar">
+       <script type="text/javascript">
+       //<![CDATA[
+       // prepare DOM for YUI Toolbar
+        $(document).ready(function() {
+           yuiToolbar();
+        });
+       // YUI Toolbar Functions
+       function yuiToolbar() {
+           new YAHOO.widget.Button("newstopword");
+       }       //]]>
+       </script>
+       <ul class="toolbar">
+       <li><a id="newstopword" href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form">New Preference</a></li>
+</ul></div>
+       
     <h1>System preferences admin</h1>
     <div id="action">
         <a href="/cgi-bin/koha/admin/systempreferences.pl?tab=Admin">Admin</a>
     <!-- /TMPL_LOOP -->
     </table>
     
-    <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
-        <input type="hidden" name="op" value="add_form" />
-        <input type="submit" value="Add a new System Preference" />
-    </form>
-    
     <!-- /TMPL_IF -->
 
 </div>