[open-ils-commits] r13856 - in branches/rel_1_6/Open-ILS/web: js/ui/default/acq/po templates/default/acq/po (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Aug 17 16:10:38 EDT 2009


Author: erickson
Date: 2009-08-17 16:10:33 -0400 (Mon, 17 Aug 2009)
New Revision: 13856

Modified:
   branches/rel_1_6/Open-ILS/web/js/ui/default/acq/po/search.js
   branches/rel_1_6/Open-ILS/web/templates/default/acq/po/search.tt2
Log:
turned on paging for po list.  set up the state filter differently so that the browser won't choose a default value.  no longer showing and fleshing the owner column since it was causing the render flickering... will reassess later.

Modified: branches/rel_1_6/Open-ILS/web/js/ui/default/acq/po/search.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/js/ui/default/acq/po/search.js	2009-08-17 20:10:25 UTC (rev 13855)
+++ branches/rel_1_6/Open-ILS/web/js/ui/default/acq/po/search.js	2009-08-17 20:10:33 UTC (rev 13856)
@@ -37,7 +37,7 @@
     if(!some) fields.id = {'!=' : null};
 
     poGrid.resetStore();
-    poGrid.loadAll({order_by:{acqpo : 'edit_time DESC'}, limit: 30}, fields);
+    poGrid.loadAll({order_by:{acqpo : 'edit_time DESC'}}, fields);
 }
 
 function loadForm() {

Modified: branches/rel_1_6/Open-ILS/web/templates/default/acq/po/search.tt2
===================================================================
--- branches/rel_1_6/Open-ILS/web/templates/default/acq/po/search.tt2	2009-08-17 20:10:25 UTC (rev 13855)
+++ branches/rel_1_6/Open-ILS/web/templates/default/acq/po/search.tt2	2009-08-17 20:10:33 UTC (rev 13856)
@@ -1,4 +1,5 @@
 [% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'Purchase Orders' %]
 <div id='oils-acq-list-header' class='container'>
     <div id='oils-acq-list-header-label'>PO Search</div>
 </div>
@@ -29,10 +30,25 @@
         <input id='po-search-provider-selector'/>
 
         <label for='state'>State</label></td>
-        <select dojoType='dijit.form.FilteringSelect' name='state' required='false'>
-            <option value='new'>New</option>
-            <option value='in-process'>In Process</option>
-        </select>
+        <script>
+            var stateStore = new dojo.data.ItemFileReadStore({
+                data : {
+                    identifier:"value",
+                    label: "name",
+                    items: [
+                        {name:"New", value:'new'},
+                        {name:"In Process", value:'in-process'}
+                    ]
+                }
+            });
+        </script>
+        <input dojoType='dijit.form.FilteringSelect' 
+            name='state' 
+            required='false' 
+            store='stateStore' 
+            labelAttr='name' 
+            valueAttr='value' 
+            searchAttr='name'/>
 
         <label for='ordering_agency'>Ordering Agency</label>
         <input id='po-search-agency-selector'/>
@@ -49,15 +65,18 @@
             dojoType="openils.widget.AutoGrid" 
             query="{id: '*'}" 
             fieldOrder="['id', 'owner', 'ordering_agency', 'provider', 'create_time', 'edit_time', 'state']"
-            suppressFields="['editor', 'creator']"
+            suppressFields="['owner', 'editor', 'creator']"
             query="{id: '*'}"
             defaultCellWidth='"auto"'
             showSequenceFields='true'
+            showPaginator='true'
             fmClass='acqpo'> 
         <thead> 
             <tr> 
                 <th field="id" formatter='formatId'>ID</th> 
+                <!--
                 <th field="owner" get='getPOOwner'/>
+                -->
             </tr> 
         </thead> 
     </table>     



More information about the open-ils-commits mailing list