]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/serial/subscription/issuance.tt2
I18N: Make everything in tt2 files translatable.
[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 <div class="serial-additional-controls">
14     <span dojoType="dijit.form.Button"
15         onclick="prediction_dialog.show();">[% l('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         onPostSubmit="attempt_reload_opac"
26         fmClass="siss"
27         query="{id: '*'}"
28         editOnEnter="true"
29         showPaginator="true">
30         <thead>
31             <tr>
32                 <th field="label" formatter="format_siss_label"
33                     get="get_id_and_label"></th>
34             </tr>
35         </thead>
36     </table>
37 </div>
38 <div class="hidden">
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();
45         </script>
46         <table class="serial-dialog-table">
47             <tr>
48                 <th>
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') %]
55                     </label>
56                 </th>
57                 <td></td>
58             </tr>
59             <tr>
60                 <th>
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);" />
65                     <label for="end_num">
66                         [% l('Predict a certain number of issuances:') %]
67                     </label>
68                 </th>
69                 <td>
70                     <input dojoType="dijit.form.TextBox"
71                         style="width: 5em;"
72                         jsId="prediction_dialog_num_to_predict"
73                         name="num_to_predict" />
74                 </td>
75             </tr>
76             <tr>
77                 <td colspan="2">
78                     <button dojoType="dijit.form.Button"
79                         jsId="prediction_dialog_submit"
80                         type="submit" disabled="true">[% l('Generate') %]</button>
81                 </td>
82             </tr>
83         </table>
84     </div>
85 </div>