var lineitems = [];
function drawForm() {
+ new openils.User().buildPermOrgSelector('VIEW_PURCHASE_ORDER', orderingAgencySelector);
}
+dojo.addOnLoad(drawForm);
var liReceived;
function doSearch(values) {
var search = {
attr_values : [values.identifier],
po_agencies : (values.ordering_agency) ? [values.ordering_agency] : null,
+ li_states : ['in-process']
};
options = {clear_marc:1, flesh_attrs:1};
<td><label for='ordering_agency'>${_('Ordering Agency')}</label></td>
<td>
<!-- make it a multi-select ? -->
- <select dojoType='dijit.form.FilteringSelect' name='ordering_agency'
- labalAttr='code' searchAttr='code' jsId='orderingAgencySelector'>
+ <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='orderingAgencySelector'
+ searchAttr="shortname" name="ordering_agency" autocomplete="true" labelAttr='shortname'> </select>
</select>
</td>
</tr>
activeSizing="1" layoutAlign="client">
% endif
+ <style type='text/css'>
+ .grid_container {width: 100%; height: 100%;}
+ </style>
+
<script src='${c.oils.core.media_prefix.value}/ui_js/oils/default/common/jubgrid.js'> </script>
<script src='${c.oils.core.media_prefix.value}/js/dojo/openils/CopyLocation.js'> </script>
<script type="text/javascript">
</button>
</div>
% endif
- <div structure='JUBGrid.jubGridLayout' jsid='${grid_jsid}'
- dojoType='dojox.Grid' id="${domprefix + '-JUB-grid'}">
+ <div dojoType="dijit.layout.ContentPane" class='grid_container'>
+ <div structure='JUBGrid.jubGridLayout' jsid='${grid_jsid}'
+ dojoType='dojox.Grid' id="${domprefix + '-JUB-grid'}">
+ </div>
</div>
% if not hide_details:
</div>
${_('Mark Selected Copies Received')}
</button>
</div>
- <div structure='JUBGrid.jubDetailGridLayout' jsid="JUBGrid.jubDetailGrid" dojoType="dojox.Grid"
- id='${domprefix + "-details-grid"}'>
+ <div dojoType="dijit.layout.ContentPane" class='grid_container'>
+ <div structure='JUBGrid.jubDetailGridLayout' jsid="JUBGrid.jubDetailGrid" dojoType="dojox.Grid"
+ id='${domprefix + "-details-grid"}'>
+ </div>
</div>
</div>
</div>