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