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; }
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>
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') %]
20 <button dojoType="dijit.form.Button" onClick="rlu_editor.show()">
21 [% l('Routing List For Selected Stream') %]
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>
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>') %]
34 <table jsId="sstr_grid"
35 dojoType="openils.widget.AutoGrid"
37 fieldOrder="['id','distribution','routing_label']"
38 suppressFields="['distribution']"
39 showSequenceFields="true"
40 onPostSubmit="attempt_reload_opac"
46 <th width="90%" field="routing_label"
47 formatter="format_routing_label"></th>
54 <div id="routing_list_user_template_reader">
55 [% l('Reader: ${0} / ${1}, ${2} ${3} (${4})') %]
57 <div id="routing_list_user_template_department">[% l('Department: ${0}') %]</div>
58 <div id="routing_list_user_template_note"><br /> <em>${0}</em></div>
59 <div id="routing_list_user_template_remove">[X]</div>
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">
69 <input type="radio" name="reader_xor_dept"
70 dojoType="dijit.form.RadioButton"
71 value="reader" id="reader_xor_dept-reader" />
74 <label for="reader_xor_dept-reader">
75 [% l('Reader (barcode):') %]
79 <input dojoType="dijit.form.TextBox" id="reader"
80 name="reader" disabled="disabled" />
83 <button dojoType="dijit.form.Button"
84 id="routing_list_add_button"
85 onClick="rlu_editor.new_user()">[% l('Add') %]</button>
90 <input type="radio" name="reader_xor_dept"
91 dojoType="dijit.form.RadioButton"
93 id="reader_xor_dept-department" />
96 <label for="reader_xor_dept-department">
97 [% l('Department:') %]
101 <input dojoType="dijit.form.TextBox" id="department"
102 name="department" disabled="disabled" />
107 <th><label for="note">[% l('Note:') %]</label></th>
109 <input id="note" name="note"
110 dojoType="dijit.form.TextBox" />
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') %]
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">
131 <th>[% l('How many?') %]</th>
133 <input dojoType="dijit.form.NumberSpinner"
134 value="1" smallDelta="1" name="quantity"
135 constraints="{'min': 1, 'max': 1000}" />
140 <button dojoType="dijit.form.Button" type="submit">
147 <div dojoType="openils.widget.ProgressDialog" jsId="progress_dialog"></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>