]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/serial/list_item.tt2
3b5fc304025f5e94af90484718c8978d4115260f
[working/Evergreen.git] / Open-ILS / src / templates / serial / list_item.tt2
1 [% WRAPPER base.tt2 %]
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>
12 [% END %]
13 <style type="text/css">
14     .create-dialog-table td { padding: 0.35em 0; }
15     .create-dialog-table th {
16         padding-right: 1em;
17         text-align: right;
18         font-weight: bold;
19     }
20 </style>
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>
25         <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') %]
33             </button>
34         </div>
35     </div>
36     <div>
37         [% l('Showing items attached to the issuance,') %]
38         <em><a href="javascript:void(0);" id="siss_label_here"></a></em>.
39     </div>
40     <table jsId="sitem_grid"
41         dojoType="openils.widget.AutoGrid"
42         query="{id: '*'}"
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"
48         fmClass="sitem"
49         editPaneOnSubmit="update_sitem_safely"
50         onPostSubmit="attempt_reload_opac"
51         showPaginator="true"
52         editOnEnter="true">
53         <thead>
54             <tr>
55                 <th field="creator" get="get_creator" formatter="format_user">
56                 </th>
57                 <th field="editor" get="get_editor" formatter="format_user">
58                 </th>
59                 <th field="stream" get="get_stream" formatter="format_stream">
60                 </th>
61                 <th field="unit" get="get_unit" formatter="format_unit">
62                 </th>
63             </tr>
64         </thead>
65     </table>
66     <div class="hidden">
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">
70                 <tr>
71                     <th>[% l('How many items?') %]</th>
72                     <td>
73                         <input dojoType="dijit.form.NumberSpinner" value="1"
74                             name="count" constraints="{min: 1, max: 100}" />
75                     </td>
76                 </tr>
77                 <tr>
78                     <th>[% l('Stream') %]</th>
79                     <td>
80                         <input id="stream_selector" />
81                     </td>
82                 </tr>
83                 <tr>
84                     <th>[% l('Date Expected') %]</th>
85                     <td>
86                         <input dojoType="dijit.form.DateTextBox"
87                             id="create-date-expected" name="date_expected"
88                             required="false" />
89                     </td>
90                 </tr>
91                 <tr>
92                     <th>[% l('Date Received') %]</th>
93                     <td>
94                         <input dojoType="dijit.form.DateTextBox"
95                             name="date_received" required="false" />
96                     </td>
97                 </tr>
98                 <tr>
99                     <th>[% l('Status') %]</th>
100                     <td>
101                         <select dojoType="dijit.form.FilteringSelect"
102                             name="status">
103                             [%- PROCESS status_values -%]
104                         </select>
105                     </td>
106                 </tr>
107                 <tr>
108                     <td colspan="2" align="center">
109                         <span dojoType="dijit.form.Button" type="submit">
110                             [% l('Create') %]
111                         </span>
112                     </td>
113                 </tr>
114             </table>
115         </div>
116         <select jsId="status_selector" dojoType="dijit.form.FilteringSelect">
117             [%- PROCESS status_values -%]
118         </select>
119         <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog">
120         </div>
121     </div>
122 </div>
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>
125 [% END %]