]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/default/serial/list_stream.tt2
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac...
[working/Evergreen.git] / Open-ILS / src / templates / default / serial / list_stream.tt2
1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = "Streams" %]
3 <style type="text/css">
4     #new-srlu-table { width: 100%; }
5     #new-srlu-table th { text-align: left; padding-left: 1em; }
6     #new-srlu-table td { text-align: center; padding-right: 1em; }
7     #list-source { border: 1px #666 dashed; }
8 </style>
9 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
10     <div dojoType="dijit.layout.ContentPane"
11         layoutAlign="top" class="oils-header-panel">
12         <div>Streams</div>
13         <div>
14             <button dojoType="dijit.form.Button"
15                 onClick="sstr_grid.showCreateDialog()">New Stream</button>
16             <button dojoType="dijit.form.Button"
17                 onClick="multi_stream_dialog.show()">
18                 Create Many Streams
19             </button>
20             <button dojoType="dijit.form.Button" onClick="rlu_editor.show()">
21                 Routing List For Selected Stream
22             </button>
23             <button dojoType="dijit.form.Button"
24                 onClick="sstr_grid.refresh()">Refresh Grid</button>
25             <button dojoType="dijit.form.Button"
26                 onClick="sstr_grid.deleteSelected()">Delete Selected</button>
27         </div>
28     </div>
29     <div>
30         Showing streams attached to the distribution,
31         <em><a href="javascript:void(0);" id="sdist_label_here"></a></em>
32         (<span id="sdist_org_unit_name_here"></span>).
33     </div>
34     <table jsId="sstr_grid"
35         dojoType="openils.widget.AutoGrid"
36         query="{id: '*'}"
37         fieldOrder="['id','distribution','routing_label']"
38         suppressFields="['distribution']"
39         showSequenceFields="true"
40         fmClass="sstr"
41         showPaginator="true"
42         editOnEnter="true">
43         <thead>
44             <tr>
45                 <th width="90%" field="routing_label"
46                     formatter="format_routing_label"></th>
47             </tr>
48         </thead>
49     </table>
50 </div>
51 <div class="hidden">
52
53     <div id="routing_list_user_template_reader">
54         Reader: ${0} / ${1}, ${2} ${3} (${4})
55     </div>
56     <div id="routing_list_user_template_department">Department: ${0}</div>
57     <div id="routing_list_user_template_note"><br />&nbsp; <em>${0}</em></div>
58     <div id="routing_list_user_template_remove">[X]</div>
59
60     <div dojoType="dijit.Dialog" id="routing_list_dialog"
61         execute="rlu_editor.save()" title="Manage Routing List">
62         <ol id="list-source" dojoType="dojo.dnd.Source"
63             jsId="routing_list_source"></ol>
64         <table id="new-srlu-table">
65             <tbody>
66                 <tr>
67                     <td>
68                         <input type="radio" name="reader_xor_dept"
69                             dojoType="dijit.form.RadioButton"
70                             value="reader" id="reader_xor_dept-reader" />
71                     </td>
72                     <th>
73                         <label for="reader_xor_dept-reader">
74                             Reader (barcode):
75                         </label>
76                     </th>
77                     <td>
78                         <input dojoType="dijit.form.TextBox" id="reader"
79                             name="reader" disabled="disabled" />
80                     </td>
81                     <td rowspan="3">
82                         <button dojoType="dijit.form.Button"
83                             id="routing_list_add_button"
84                             onClick="rlu_editor.new_user()">Add</button>
85                     </td>
86                 </tr>
87                 <tr>
88                     <td>
89                         <input type="radio" name="reader_xor_dept"
90                             dojoType="dijit.form.RadioButton"
91                             value="department"
92                             id="reader_xor_dept-department" />
93                     </td>
94                     <th>
95                         <label for="reader_xor_dept-department">
96                             Department:
97                         </label>
98                     </th>
99                     <td>
100                         <input dojoType="dijit.form.TextBox" id="department"
101                             name="department" disabled="disabled" />
102                     </td>
103                 </tr>
104                 <tr>
105                     <td></td>
106                     <th><label for="note">Note:</label></th>
107                     <td>
108                         <input id="note" name="note"
109                             dojoType="dijit.form.TextBox" />
110                     </td>
111                 </tr>
112                 <tr>
113                     <td colspan="4" style="padding-top: 1em;">
114                         <button id="routing_list_save_button"
115                             dojoType="dijit.form.Button" type="submit">
116                             Save Changes
117                         </button>
118                     </td>
119                 </td>
120             </tbody>
121         </table>
122     </div>
123
124     <div dojoType="dijit.Dialog"
125         execute="create_many_streams(arguments[0]);"
126         title="Create Streams"
127         jsId="multi_stream_dialog">
128         <table class="serial-dialog-table">
129             <tr>
130                 <th>How many?</th>
131                 <td>
132                     <input dojoType="dijit.form.NumberSpinner"
133                         value="1" smallDelta="1" name="quantity"
134                         constraints="{'min': 1, 'max': 1000}" />
135                 </td>
136             </tr>
137             <tr>
138                 <td colspan="2">
139                     <button dojoType="dijit.form.Button" type="submit">
140                         Create
141                     </button>
142                 </td>
143             </tr>
144         </table>
145     </div>
146     <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>
147 </div>
148 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/list_stream.js"> </script>
149 [% END %]