]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/serial/subscription/issuance.tt2
Move serials interfaces closer together
[working/Evergreen.git] / Open-ILS / src / templates / serial / subscription / issuance.tt2
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>
11     </div>
12 </div>
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>
17 </div>
18 [%- END -%]
19 <div dojoType="dijit.layout.ContentPane" layout="top">
20     <table jsId="iss_grid"
21         dojoType="openils.widget.AutoGrid"
22         autoHeight="true"
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"
28         fmClass="siss"
29         query="{id: '*'}"
30         editOnEnter="true"
31         showPaginator="true">
32         <thead>
33             <tr>
34                 <th field="label" formatter="format_siss_label"
35                     get="get_id_and_label"></th>
36             </tr>
37         </thead>
38     </table>
39 </div>
40 <div class="hidden">
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();
47         </script>
48         <table class="serial-dialog-table">
49             <tr>
50                 <th>
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') %]
57                     </label>
58                 </th>
59                 <td></td>
60             </tr>
61             <tr>
62                 <th>
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);" />
67                     <label for="end_num">
68                         [% l('Predict a certain number of issuances:') %]
69                     </label>
70                 </th>
71                 <td>
72                     <input dojoType="dijit.form.TextBox"
73                         style="width: 5em;"
74                         jsId="prediction_dialog_num_to_predict"
75                         name="num_to_predict" />
76                 </td>
77             </tr>
78             <tr>
79                 <td colspan="2">
80                     <button dojoType="dijit.form.Button"
81                         jsId="prediction_dialog_submit"
82                         type="submit" disabled="true">[% l('Generate') %]</button>
83                 </td>
84             </tr>
85         </table>
86     </div>
87 </div>