turned on paging for po list. set up the state filter differently so that the browse...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 17 Aug 2009 20:09:47 +0000 (20:09 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 17 Aug 2009 20:09:47 +0000 (20:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13854 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/po/search.js
Open-ILS/web/templates/default/acq/po/search.tt2

index b50ff16..8b11201 100644 (file)
@@ -37,7 +37,7 @@ function doSearch(fields) {
     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() {
index 70222cb..1a8d811 100644 (file)
@@ -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>
         <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'/>
             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>