[open-ils-commits] r13854 - in trunk/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:09:52 EDT 2009
Author: erickson
Date: 2009-08-17 16:09:47 -0400 (Mon, 17 Aug 2009)
New Revision: 13854
Modified:
trunk/Open-ILS/web/js/ui/default/acq/po/search.js
trunk/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: trunk/Open-ILS/web/js/ui/default/acq/po/search.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/po/search.js 2009-08-17 20:08:27 UTC (rev 13853)
+++ trunk/Open-ILS/web/js/ui/default/acq/po/search.js 2009-08-17 20:09:47 UTC (rev 13854)
@@ -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: trunk/Open-ILS/web/templates/default/acq/po/search.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/po/search.tt2 2009-08-17 20:08:27 UTC (rev 13853)
+++ trunk/Open-ILS/web/templates/default/acq/po/search.tt2 2009-08-17 20:09:47 UTC (rev 13854)
@@ -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