[open-ils-commits] r9687 - in
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb:
public/oils/media/ui_js/oils/default/acq/po
templates/oils/default/acq/po
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 22 23:13:29 EDT 2008
Author: erickson
Date: 2008-05-22 23:13:28 -0400 (Thu, 22 May 2008)
New Revision: 9687
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/search.js
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/search.html
Log:
beefd up po search form
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/search.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/search.js 2008-05-23 02:43:39 UTC (rev 9686)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/search.js 2008-05-23 03:13:28 UTC (rev 9687)
@@ -7,6 +7,8 @@
dojo.require('fieldmapper.OrgUtils');
dojo.require('dojo.date.locale');
dojo.require('dojo.date.stamp');
+dojo.require('openils.User');
+dojo.require('openils.widget.OrgUnitFilteringSelect');
function getOrgInfo(rowIndex) {
data = poGrid.model.getRow(rowIndex);
@@ -67,6 +69,8 @@
},
'MANAGE_PROVIDER'
);
+
+ new openils.User().buildPermOrgSelector('VIEW_PURCHASE_ORDER', poSearchOrderingAgencySelect);
}
dojo.addOnLoad(loadForm);
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/search.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/search.html 2008-05-23 02:43:39 UTC (rev 9686)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/search.html 2008-05-23 03:13:28 UTC (rev 9687)
@@ -29,12 +29,37 @@
doSearch(fields);
return false; /* don't redirect */
</script>
- <label for='id'>${_('ID')}</label>
- <input dojoType='dijit.form.NumberTextBox' name='id'> </input>
- <label for='provider'>${_('Provider')}</label>
- <select labelAttr='code' searchAttr='code' name='provider'
- style='overflow-y:auto;' jsId="providerSelector" dojoType="dijit.form.FilteringSelect"> </select>
- <div dojoType='dijit.form.Button' type='submit'>${_("Search")}</div>
+ <style>#oils-acq-po-search-table td { padding: 4px; } </style>
+ <table id='oils-acq-po-search-table'>
+ <tr>
+ <td><label for='id'>${_('ID')}</label></td>
+ <td><input dojoType='dijit.form.NumberTextBox' name='id'> </input></td>
+ </tr>
+ <tr>
+ <td><label for='provider'>${_('Provider')}</label></td>
+ <td><select labelAttr='code' searchAttr='code' name='provider'
+ style='overflow-y:auto;' jsId="providerSelector" dojoType="dijit.form.FilteringSelect"> </select></td>
+ </tr>
+ <tr>
+ <td><label for='state'>${_('State')}</label></td>
+ <td>
+ <select dojoType='dijit.form.FilteringSelect' name='state' value=''>
+ <option value='new'>${_("New")}</option>
+ <option value='in-process'>${_("In Process")}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for='ordering_agency'>${_('Ordering Agency')}</label></td>
+ <td><select jsId='poSearchOrderingAgencySelect'
+ dojoType='openils.widget.OrgUnitFilteringSelect' name='ordering_agency'>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td style='text-align:center;'><div dojoType='dijit.form.Button' type='submit'>${_("Search")}</div></td>
+ </tr>
+ </table>
</form>
<script>
More information about the open-ils-commits
mailing list