1 <div dojoType="dijit.layout.ContentPane" layout="top"
2 class="oils-header-panel lesser">
4 <div style="margin-right: 16px;">
5 <span dojoType="dijit.form.Button"
6 onclick="iss_grid.refresh();">Refresh Grid</span>
7 <span dojoType="dijit.form.Button"
8 onclick="iss_grid.showCreatePane();">New Issuance</span>
9 <span dojoType="dijit.form.Button"
10 onclick="iss_grid.deleteSelected();">Delete Selected</span>
13 <div class="serial-additional-controls">
14 <span dojoType="dijit.form.Button"
15 onclick="prediction_dialog.show();">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'"
31 <th field="label" formatter="format_siss_label"
32 get="get_id_and_label"></th>
38 <div dojoType="dijit.Dialog"
39 title="Generate Issuance and Item Predictions"
40 execute="generate_predictions(arguments[0]);"
41 jsId="prediction_dialog">
42 <script type="dojo/connect" event="onShow">
43 prepare_prediction_dialog();
45 <table class="serial-dialog-table">
48 <input dojoType="dijit.form.RadioButton"
49 id="end_date" name="end_how" value="date"
50 checked="false" disabled="true"
51 jsId="prediction_dialog_end_date" />
52 <label for="end_date">
53 Predict until end of subscription
60 <input dojoType="dijit.form.RadioButton"
61 id="end_num" name="end_how" value="number"
62 checked="true" jsId="prediction_dialog_end_num"
63 onChange="if (this.attr('checked')) setTimeout(function(){prediction_dialog_num_to_predict.focus();},200);" />
65 Predict a certain number of issuances:
69 <input dojoType="dijit.form.TextBox"
71 jsId="prediction_dialog_num_to_predict"
72 name="num_to_predict" />
77 <button dojoType="dijit.form.Button"
78 jsId="prediction_dialog_submit"
79 type="submit" disabled="true">Generate</button>