start of single label + action bar to sit above the grid
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 5 Feb 2009 16:04:36 +0000 (16:04 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 5 Feb 2009 16:04:36 +0000 (16:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12079 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/css/skin/default.css
Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2

index 33b4b98..3e626ba 100644 (file)
@@ -63,4 +63,28 @@ table { border-collapse: collapse; }
 
 
 .oils-fm-edit-dialog { margin: 5px; }
-.oils-fm-edit-dialog td { padding: 5px; }
+.oils-fm-edit-dialog td { padding: 5px; border:1px solid #999;}
+.oils-header-panel {
+    width:99%;
+    margin-top:20px;
+}
+.oils-header-panel div:first-child {
+    width:48%;
+    text-align:left;
+    float:left;
+    font-size:130%;
+    font-weight: bold;
+    vertical-align:bottom;
+    position:relative;
+    bottom:0px;
+    left:5px;
+}
+.oils-header-panel div:last-child {
+    width:48%;
+    text-align:right;
+    float:right;
+    vertical-align:bottom;
+    position:relative;
+    bottom:0px;
+    right:5px;
+}
index 0e5042a..8761c5e 100644 (file)
@@ -2,7 +2,6 @@
 <!--
 <script src='[% ctx.media_prefix %]/js/ui/default/conify/global/config/billing_type.js'> </script>
 -->
-<h1>Exchange Rates</h1><br/>
 
 <script>
     dojo.require('openils.widget.AutoGrid');
                 onresponse : function(r) {
                     var item = openils.Util.readResponse(r);
                     erGrid.store.newItem(item.toStoreItem());
-                    erGrid.update();
                }     
             }
         );
     }
     openils.Util.addOnLoad(renderGrid);
 </script>
-<button dojoType='dijit.form.Button' onClick='erGrid.showCreateDialog()'>Create</button>
-<div dojoType="dijit.layout.ContentPane" layoutAlign="top" style='height:600px;'>
+
+<style>
+
+.oils-header-panel {
+    width:99%;
+    margin-top:20px;
+}
+.oils-header-panel div:first-child {
+    width:48%;
+    text-align:left;
+    float:left;
+    font-size:130%;
+    font-weight: bold;
+    vertical-align:bottom;
+    position:relative;
+    bottom:0px;
+    left:5px;
+}
+.oils-header-panel div:last-child {
+    width:48%;
+    text-align:right;
+    float:right;
+    vertical-align:bottom;
+    position:relative;
+    bottom:0px;
+    right:5px;
+}
+</style>
+
+<div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+    <div>Exchange Rates</div>
+    <div><button dojoType='dijit.form.Button' onClick='erGrid.showCreateDialog()'>New</button></div>
+</div>
+
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
     <table jsId="erGrid" dojoType="openils.widget.AutoGrid" 
             fieldOrder="['id', 'from_currency', 'to_currency', 'ratio']" 
             query="{id: '*'}" rowSelector='20px' fmClass='acqexr' editOnEnter='true'>