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