]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/serial/list_stream.tt2
JS reordering to account for readyState event leakage from XHR to the main page
[working/Evergreen.git] / Open-ILS / web / templates / default / serial / list_stream.tt2
1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = "Streams" %]
3 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
4     <div dojoType="dijit.layout.ContentPane"
5         layoutAlign="top" class="oils-header-panel">
6         <div>Streams</div>
7         <div>
8             <button dojoType="dijit.form.Button"
9                 onClick="sstr_grid.showCreateDialog()">New Stream</button>
10             <button dojoType="dijit.form.Button"
11                 onClick="multi_stream_dialog.show()">
12                 Create Many Streams
13             </button>
14             <button dojoType="dijit.form.Button"
15                 onClick="sstr_grid.refresh()">Refresh Grid</button>
16             <button dojoType="dijit.form.Button"
17                 onClick="sstr_grid.deleteSelected()">Delete Selected</button>
18         </div>
19     </div>
20     <div>
21         Showing streams attached to the distribution,
22         <em><a href="javascript:void(0);" id="sdist_label_here"></a></em>
23         (<span id="sdist_org_unit_name_here"></span>).
24     </div>
25     <table jsId="sstr_grid"
26         dojoType="openils.widget.AutoGrid"
27         query="{id: '*'}"
28         suppressFields="['distribution']"
29         fmClass="sstr"
30         defaultCellWidth="'auto'"
31         showPaginator="true"
32         editOnEnter="true">
33         <thead>
34             <tr>
35                 <th field="routing_label" formatter="format_routing_label">
36                 </th>
37             </tr>
38         </thead>
39     </table>
40 </div>
41 <div class="hidden">
42     <div dojoType="dijit.Dialog"
43         execute="create_many_streams(arguments[0]);"
44         title="Create Streams"
45         jsId="multi_stream_dialog">
46         <table class="serial-dialog-table">
47             <tr>
48                 <th>How many?</th>
49                 <td>
50                     <input dojoType="dijit.form.NumberSpinner"
51                         value="1" smallDelta="1" name="quantity"
52                         constraints="{'min': 1, 'max': 1000}" />
53                 </td>
54             </tr>
55             <tr>
56                 <td colspan="2">
57                     <button dojoType="dijit.form.Button" type="submit">
58                         Create
59                     </button>
60                 </td>
61             </tr>
62         </table>
63     </div>
64     <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>
65 </div>
66 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/list_stream.js"> </script>
67 [% END %]