3 [% ctx.page_title = l("Items") %]
4 [% BLOCK status_values %]
5 <option value="Expected">[% l('Expected') %]</option>
6 <option value="Bindery">[% l('Bindery') %]</option>
7 <option value="Bound">[% l('Bound') %]</option>
8 <option value="Claimed">[% l('Claimed') %]</option>
9 <option value="Discarded">[% l('Discarded') %]</option>
10 <option value="Not Held">[% l('Not Held') %]</option>
11 <option value="Not Published">[% l('Not Published') %]</option>
12 <option value="Received">[% l('Received') %]</option>
14 <style type="text/css">
15 .create-dialog-table td { padding: 0.35em 0; }
16 .create-dialog-table th {
22 [% IF CGI.param('context') == 'scv' -%]
23 <!-- links in the frame have no style at all, let's give them one -->
24 <style type="text/css">
25 a { color: #1155CC; text-decoration: underline }
26 a:hover { text-decoration: none }
29 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
30 <div dojoType="dijit.layout.ContentPane"
31 layoutAlign="top" class="oils-header-panel">
32 <div>[% l('Items') %]</div>
34 <button dojoType="dijit.form.Button"
35 onClick="create_dialog.show()">[% l('New Items') %]</button>
36 <button dojoType="dijit.form.Button"
37 onClick="sitem_grid.refresh()">[% l('Refresh Grid') %]</button>
38 <button dojoType="dijit.form.Button"
39 onClick="sitem_grid.deleteSelected()">
40 [% l('Delete Selected') %]
45 [% l('Showing items attached to the issuance,') %]
46 <em><a href="javascript:void(0);" id="siss_label_here"></a></em>.
48 <table jsId="sitem_grid"
49 dojoType="openils.widget.AutoGrid"
51 fieldOrder="['id','creator','editor','create_date','edit_date',
52 'stream','date_expected','date_received','status','unit']"
53 suppressFields="['issuance','uri','shadowed']"
54 suppressEditFields="['issuance','uri','shadowed','creator','editor','create_date','edit_date','unit','stream']"
55 showSequenceFields="true"
57 editPaneOnSubmit="update_sitem_safely"
58 onPostSubmit="attempt_reload_opac"
63 <th field="creator" get="get_creator" formatter="format_user">
65 <th field="editor" get="get_editor" formatter="format_user">
67 <th field="stream" get="get_stream" formatter="format_stream">
69 <th field="unit" get="get_unit" formatter="format_unit">
75 <div jsId="create_dialog" dojoType="dijit.Dialog"
76 title="[% l('Create New Items') %]" execute="create_new_items(arguments[0]);">
77 <table class="create-dialog-table">
79 <th>[% l('How many items?') %]</th>
81 <input dojoType="dijit.form.NumberSpinner" value="1"
82 name="count" constraints="{min: 1, max: 100}" />
86 <th>[% l('Stream') %]</th>
88 <input id="stream_selector" />
92 <th>[% l('Date Expected') %]</th>
94 <input dojoType="dijit.form.DateTextBox"
95 id="create-date-expected" name="date_expected"
100 <th>[% l('Date Received') %]</th>
102 <input dojoType="dijit.form.DateTextBox"
103 name="date_received" required="false" />
107 <th>[% l('Status') %]</th>
109 <select dojoType="dijit.form.FilteringSelect"
111 [%- PROCESS status_values -%]
116 <td colspan="2" align="center">
117 <span dojoType="dijit.form.Button" type="submit">
124 <select jsId="status_selector" dojoType="dijit.form.FilteringSelect">
125 [%- PROCESS status_values -%]
127 <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog">
131 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/common.js"></script>
132 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/list_item.js"></script>