8a3c8861072cfd362451c9d9f88eb1d8e678b309
[working/Evergreen.git] / Open-ILS / src / templates / serial / subscription / distribution.tt2
1 <div dojoType="dijit.layout.ContentPane" layout="top"
2     class="oils-header-panel lesser">
3     <div>[% l('Distributions') %]</div>
4     <div style="margin-right: 16px;">
5         <span dojoType="dijit.form.Button"
6             onClick="dist_grid.refresh();">[% l('Refresh Grid') %]</span>
7         <span dojoType="dijit.form.Button"
8             onClick="sub_grid._fresh = false; dist_grid.showCreateDialog();">
9             [% l('New Distribution') %]
10         </span>
11         <span dojoType="dijit.form.Button"
12             onClick="sub_grid._fresh = false; dist_grid.deleteSelected();">
13             [% l('Delete Selected') %]
14         </span>
15     </div>
16 </div>
17 <div dojoType="dijit.layout.ContentPane" layout="top">
18     <table
19         jsId="dist_grid"
20         dojoType="openils.widget.AutoGrid"
21         style="height: 550px;"
22         fieldOrder="['subscription','label','holding_lib']"
23         suppressFields="['record_entry','subscription','receive_call_number','bind_call_number','bind_unit_template']"
24         suppressEditFields="['record_entry','receive_call_number','bind_call_number','bind_unit_template']"
25         onPostSubmit="attempt_reload_opac"
26         fmClass="sdist"
27         query="{id: '*'}"
28         editOnEnter="true"
29         showPaginator="true">
30         <thead>
31             <tr>
32                 <th field="label" width="35%"
33                     get="get_id_and_label" formatter="format_sdist_label"></th>
34             </tr>
35         </thead>
36     </table>
37 </div>