1 <div dojoType="dijit.layout.ContentPane" layout="top"
2 class="oils-header-panel lesser">
3 <div>[% l('Issuances') %]</div>
4 <div style="margin-right: 16px;">
5 <span dojoType="dijit.form.Button"
6 onclick="iss_grid.refresh();">[% l('Refresh Grid') %]</span>
7 <span dojoType="dijit.form.Button"
8 onclick="iss_grid.showCreatePane();">[% l('New Issuance') %]</span>
9 <span dojoType="dijit.form.Button"
10 onclick="iss_grid.deleteSelected();">[% l('Delete Selected') %]</span>
13 <div class="serial-additional-controls">
14 <span dojoType="dijit.form.Button"
15 onclick="prediction_dialog.show();">[% l('Generate Predictions') %]</span>
17 <div dojoType="dijit.layout.ContentPane" layout="top">
18 <table jsId="iss_grid"
19 dojoType="openils.widget.AutoGrid"
21 fieldOrder="['subscription','creator','editor','label','date_published','caption_and_pattern','holding_type']"
22 suppressFields="['subscription','holding_link_id','create_date','edit_date','creator','editor']"
23 suppressEditFields="['id','holding_link_id','create_date','edit_date']"
24 defaultCellWidth="'auto'"
25 onPostSubmit="attempt_reload_opac"
32 <th field="label" formatter="format_siss_label"
33 get="get_id_and_label"></th>
39 <div dojoType="dijit.Dialog"
40 title="[% l('Generate Issuance and Item Predictions') %]"
41 execute="generate_predictions(arguments[0]);"
42 jsId="prediction_dialog">
43 <script type="dojo/connect" event="onShow">
44 prepare_prediction_dialog();
46 <table class="serial-dialog-table">
49 <input dojoType="dijit.form.RadioButton"
50 id="end_date" name="end_how" value="date"
51 checked="false" disabled="true"
52 jsId="prediction_dialog_end_date" />
53 <label for="end_date">
54 [% l('Predict until end of subscription') %]
61 <input dojoType="dijit.form.RadioButton"
62 id="end_num" name="end_how" value="number"
63 checked="true" jsId="prediction_dialog_end_num"
64 onChange="if (this.attr('checked')) setTimeout(function(){prediction_dialog_num_to_predict.focus();},200);" />
66 [% l('Predict a certain number of issuances:') %]
70 <input dojoType="dijit.form.TextBox"
72 jsId="prediction_dialog_num_to_predict"
73 name="num_to_predict" />
78 <button dojoType="dijit.form.Button"
79 jsId="prediction_dialog_submit"
80 type="submit" disabled="true">[% l('Generate') %]</button>