]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/serial/subscription/issuance.tt2
Merge branch 'collab/miker/acs-ui-repairs' from working/Evergreen.git
[working/Evergreen.git] / Open-ILS / web / templates / default / serial / subscription / issuance.tt2
1 <div dojoType="dijit.layout.ContentPane" layout="top"
2     class="oils-header-panel lesser">
3     <div>Issuances</div>
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>
11     </div>
12 </div>
13 <div class="serial-additional-controls">
14     <span dojoType="dijit.form.Button"
15         onclick="prediction_dialog.show();">Generate Predictions</span>
16 </div>
17 <div dojoType="dijit.layout.ContentPane" layout="top">
18     <table jsId="iss_grid"
19         dojoType="openils.widget.AutoGrid"
20         autoHeight="true"
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         fmClass="siss"
26         query="{id: '*'}"
27         editOnEnter="true"
28         showPaginator="true">
29         <thead>
30             <tr>
31                 <th field="label" formatter="format_siss_label"
32                     get="get_id_and_label"></th>
33             </tr>
34         </thead>
35     </table>
36 </div>
37 <div class="hidden">
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();
44         </script>
45         <table class="serial-dialog-table">
46             <tr>
47                 <th>
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
54                     </label>
55                 </th>
56                 <td></td>
57             </tr>
58             <tr>
59                 <th>
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);" />
64                     <label for="end_num">
65                         Predict a certain number of issuances:
66                     </label>
67                 </th>
68                 <td>
69                     <input dojoType="dijit.form.TextBox"
70                         style="width: 5em;"
71                         jsId="prediction_dialog_num_to_predict"
72                         name="num_to_predict" />
73                 </td>
74             </tr>
75             <tr>
76                 <td colspan="2">
77                     <button dojoType="dijit.form.Button"
78                         jsId="prediction_dialog_submit"
79                         type="submit" disabled="true">Generate</button>
80                 </td>
81             </tr>
82         </table>
83     </div>
84 </div>