1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = "Items" %]
3 [% BLOCK status_values %]
4 <option value="Expected">Expected</option>
5 <option value="Bindery">Bindery</option>
6 <option value="Bound">Bound</option>
7 <option value="Claimed">Claimed</option>
8 <option value="Discarded">Discarded</option>
9 <option value="Not Held">Not Held</option>
10 <option value="Not Published">Not Published</option>
11 <option value="Received">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">
26 <button dojoType="dijit.form.Button"
27 onClick="create_dialog.show()">New Items</button>
28 <button dojoType="dijit.form.Button"
29 onClick="sitem_grid.refresh()">Refresh Grid</button>
30 <button dojoType="dijit.form.Button"
31 onClick="sitem_grid.deleteSelected()">
37 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"
54 <th field="creator" get="get_creator" formatter="format_user">
56 <th field="editor" get="get_editor" formatter="format_user">
58 <th field="stream" get="get_stream" formatter="format_stream">
60 <th field="unit" get="get_unit" formatter="format_unit">
66 <div jsId="create_dialog" dojoType="dijit.Dialog"
67 title="Create New Items" execute="create_new_items(arguments[0]);">
68 <table class="create-dialog-table">
70 <th>How many items?</th>
72 <input dojoType="dijit.form.NumberSpinner" value="1"
73 name="count" constraints="{min: 1, max: 100}" />
79 <input id="stream_selector" />
83 <th>Date Expected</th>
85 <input dojoType="dijit.form.DateTextBox"
86 id="create-date-expected" name="date_expected"
91 <th>Date Received</th>
93 <input dojoType="dijit.form.DateTextBox"
94 name="date_received" required="false" />
100 <select dojoType="dijit.form.FilteringSelect"
102 [%- PROCESS status_values -%]
107 <td colspan="2" align="center">
108 <span dojoType="dijit.form.Button" type="submit">
115 <select jsId="status_selector" dojoType="dijit.form.FilteringSelect">
116 [%- PROCESS status_values -%]
118 <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog">
122 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/list_item.js"></script>