2 [% ctx.page_title = l("Items") %]
3 [% BLOCK status_values %]
4 <option value="Expected">[% l('Expected') %]</option>
5 <option value="Bindery">[% l('Bindery') %]</option>
6 <option value="Bound">[% l('Bound') %]</option>
7 <option value="Claimed">[% l('Claimed') %]</option>
8 <option value="Discarded">[% l('Discarded') %]</option>
9 <option value="Not Held">[% l('Not Held') %]</option>
10 <option value="Not Published">[% l('Not Published') %]</option>
11 <option value="Received">[% l('Received') %]</option>
13 <style type="text/css">
14 .create-dialog-table td { padding: 0.35em 0; }
15 .create-dialog-table th {
21 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
22 <div dojoType="dijit.layout.ContentPane"
23 layoutAlign="top" class="oils-header-panel">
24 <div>[% l('Items') %]</div>
26 <button dojoType="dijit.form.Button"
27 onClick="create_dialog.show()">[% l('New Items') %]</button>
28 <button dojoType="dijit.form.Button"
29 onClick="sitem_grid.refresh()">[% l('Refresh Grid') %]</button>
30 <button dojoType="dijit.form.Button"
31 onClick="sitem_grid.deleteSelected()">
32 [% l('Delete Selected') %]
37 [% l('Showing items attached to the issuance,') %]
38 <em><a href="javascript:void(0);" id="siss_label_here"></a></em>.
40 <table jsId="sitem_grid"
41 dojoType="openils.widget.AutoGrid"
43 fieldOrder="['id','creator','editor','create_date','edit_date',
44 'stream','date_expected','date_received','status','unit']"
45 suppressFields="['issuance','uri','shadowed']"
46 suppressEditFields="['issuance','uri','shadowed','creator','editor','create_date','edit_date','unit','stream']"
47 showSequenceFields="true"
49 editPaneOnSubmit="update_sitem_safely"
50 onPostSubmit="attempt_reload_opac"
55 <th field="creator" get="get_creator" formatter="format_user">
57 <th field="editor" get="get_editor" formatter="format_user">
59 <th field="stream" get="get_stream" formatter="format_stream">
61 <th field="unit" get="get_unit" formatter="format_unit">
67 <div jsId="create_dialog" dojoType="dijit.Dialog"
68 title="[% l('Create New Items') %]" execute="create_new_items(arguments[0]);">
69 <table class="create-dialog-table">
71 <th>[% l('How many items?') %]</th>
73 <input dojoType="dijit.form.NumberSpinner" value="1"
74 name="count" constraints="{min: 1, max: 100}" />
78 <th>[% l('Stream') %]</th>
80 <input id="stream_selector" />
84 <th>[% l('Date Expected') %]</th>
86 <input dojoType="dijit.form.DateTextBox"
87 id="create-date-expected" name="date_expected"
92 <th>[% l('Date Received') %]</th>
94 <input dojoType="dijit.form.DateTextBox"
95 name="date_received" required="false" />
99 <th>[% l('Status') %]</th>
101 <select dojoType="dijit.form.FilteringSelect"
103 [%- PROCESS status_values -%]
108 <td colspan="2" align="center">
109 <span dojoType="dijit.form.Button" type="submit">
116 <select jsId="status_selector" dojoType="dijit.form.FilteringSelect">
117 [%- PROCESS status_values -%]
119 <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog">
123 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/common.js"></script>
124 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/list_item.js"></script>