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 [%- IF CGI.param('context') != 'scv' -%]
14 <div class="serial-additional-controls">
15 <span dojoType="dijit.form.Button"
16 onclick="prediction_dialog.show();">[% l('Generate Predictions') %]</span>
19 <div dojoType="dijit.layout.ContentPane" layout="top">
20 <table jsId="iss_grid"
21 dojoType="openils.widget.AutoGrid"
23 fieldOrder="['subscription','creator','editor','label','date_published','caption_and_pattern','holding_type']"
24 suppressFields="['subscription','holding_link_id','create_date','edit_date','creator','editor']"
25 suppressEditFields="['id','holding_link_id','create_date','edit_date']"
26 defaultCellWidth="'auto'"
27 onPostSubmit="attempt_reload_opac"
34 <th field="label" formatter="format_siss_label"
35 get="get_id_and_label"></th>
41 <div dojoType="dijit.Dialog"
42 title="[% l('Generate Issuance and Item Predictions') %]"
43 execute="generate_predictions(arguments[0]);"
44 jsId="prediction_dialog">
45 <script type="dojo/connect" event="onShow">
46 prepare_prediction_dialog();
48 <table class="serial-dialog-table">
51 <input dojoType="dijit.form.RadioButton"
52 id="end_date" name="end_how" value="date"
53 checked="false" disabled="true"
54 jsId="prediction_dialog_end_date" />
55 <label for="end_date">
56 [% l('Predict until end of subscription') %]
63 <input dojoType="dijit.form.RadioButton"
64 id="end_num" name="end_how" value="number"
65 checked="true" jsId="prediction_dialog_end_num"
66 onChange="if (this.attr('checked')) setTimeout(function(){prediction_dialog_num_to_predict.focus();},200);" />
68 [% l('Predict a certain number of issuances:') %]
72 <input dojoType="dijit.form.TextBox"
74 jsId="prediction_dialog_num_to_predict"
75 name="num_to_predict" />
80 <button dojoType="dijit.form.Button"
81 jsId="prediction_dialog_submit"
82 type="submit" disabled="true">[% l('Generate') %]</button>