3 [% ctx.page_title = l("Streams") %]
4 <style type="text/css">
5 #new-srlu-table { width: 100%; }
6 #new-srlu-table th { text-align: left; padding-left: 1em; }
7 #new-srlu-table td { text-align: center; padding-right: 1em; }
8 #list-source { border: 1px #666 dashed; }
10 [% IF CGI.param('context') == 'scv' -%]
11 <!-- links in the frame have no style at all, let's give them one -->
12 <style type="text/css">
13 a { color: #1155CC; text-decoration: underline }
14 a:hover { text-decoration: none }
17 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
18 <div dojoType="dijit.layout.ContentPane"
19 layoutAlign="top" class="oils-header-panel">
20 <div>[% l('Streams') %]</div>
22 <button dojoType="dijit.form.Button"
23 onClick="sstr_grid.showCreateDialog()">[% l('New Stream') %]</button>
24 <button dojoType="dijit.form.Button"
25 onClick="multi_stream_dialog.show()">
26 [% l('Create Many Streams') %]
28 <button dojoType="dijit.form.Button" onClick="rlu_editor.show()">
29 [% l('Routing List For Selected Stream') %]
31 <button dojoType="dijit.form.Button"
32 onClick="sstr_grid.refresh()">[% l('Refresh Grid') %]</button>
33 <button dojoType="dijit.form.Button"
34 onClick="sstr_grid.deleteSelected()">[% l('Delete Selected') %]</button>
38 [% l('Showing streams attached to the distribution, [_1] ([_2]).',
39 '<em><a href="javascript:void(0);" id="sdist_label_here"></a></em>',
40 '<span id="sdist_org_unit_name_here"></span>') %]
42 <table jsId="sstr_grid"
43 dojoType="openils.widget.AutoGrid"
45 fieldOrder="['id','distribution','routing_label']"
46 suppressFields="['distribution']"
47 showSequenceFields="true"
48 onPostSubmit="attempt_reload_opac"
54 <th width="90%" field="routing_label"
55 formatter="format_routing_label"></th>
62 <div id="routing_list_user_template_reader">
63 [% l('Reader: ${0} / ${1}, ${2} ${3} (${4})') %]
65 <div id="routing_list_user_template_department">[% l('Department: ${0}') %]</div>
66 <div id="routing_list_user_template_note"><br /> <em>${0}</em></div>
67 <div id="routing_list_user_template_remove">[X]</div>
69 <div dojoType="dijit.Dialog" id="routing_list_dialog"
70 execute="rlu_editor.save()" title="[% l('Manage Routing List') %]">
71 <ol id="list-source" dojoType="dojo.dnd.Source"
72 jsId="routing_list_source"></ol>
73 <table id="new-srlu-table">
77 <input type="radio" name="reader_xor_dept"
78 dojoType="dijit.form.RadioButton"
79 value="reader" id="reader_xor_dept-reader" />
82 <label for="reader_xor_dept-reader">
83 [% l('Reader (barcode):') %]
87 <input dojoType="dijit.form.TextBox" id="reader"
88 name="reader" disabled="disabled" />
91 <button dojoType="dijit.form.Button"
92 id="routing_list_add_button"
93 onClick="rlu_editor.new_user()">[% l('Add') %]</button>
98 <input type="radio" name="reader_xor_dept"
99 dojoType="dijit.form.RadioButton"
101 id="reader_xor_dept-department" />
104 <label for="reader_xor_dept-department">
105 [% l('Department:') %]
109 <input dojoType="dijit.form.TextBox" id="department"
110 name="department" disabled="disabled" />
115 <th><label for="note">[% l('Note:') %]</label></th>
117 <input id="note" name="note"
118 dojoType="dijit.form.TextBox" />
122 <td colspan="4" style="padding-top: 1em;">
123 <button id="routing_list_save_button"
124 dojoType="dijit.form.Button" type="submit">
125 [% l('Save Changes') %]
133 <div dojoType="dijit.Dialog"
134 execute="create_many_streams(arguments[0]);"
135 title="[% l('Create Streams') %]"
136 jsId="multi_stream_dialog">
137 <table class="serial-dialog-table">
139 <th>[% l('How many?') %]</th>
141 <input dojoType="dijit.form.NumberSpinner"
142 value="1" smallDelta="1" name="quantity"
143 constraints="{'min': 1, 'max': 1000}" />
148 <button dojoType="dijit.form.Button" type="submit">
155 <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></div>
157 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/common.js"> </script>
158 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/serial/list_stream.js"> </script>