LP1752370: Add weight column to metabib fields grid
[working/Evergreen.git] / Open-ILS / src / templates / staff / admin / server / config / metabib_field.tt2
1 [%
2   WRAPPER "staff/base.tt2";
3   ctx.page_title = l("Metabib Fields");
4   ctx.page_app = "egAdminConfig";
5   ctx.page_ctrl = 'MetabibField';
6 %]
7
8 [% BLOCK APP_JS %]
9 <script src="[% ctx.media_prefix %]/js/ui/default/staff/services/grid.js"></script>
10 <script src="[% ctx.media_prefix %]/js/ui/default/staff/services/fm_record_editor.js"></script>
11 <script src="[% ctx.media_prefix %]/js/ui/default/staff/services/ui.js"></script>
12 <script src="[% ctx.media_prefix %]/js/ui/default/staff/admin/server/config/metabib_field.js"></script>
13 <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/admin.css" />
14 [% END %]
15
16 <div class="container-fluid" style="text-align:center">
17   <div class="alert alert-info alert-less-pad strong-text-2">
18     [% l('Metabib Fields') %]
19   </div>
20 </div>
21
22 <div class="row">
23   <div class="col-md-2 form-group">
24       <label class="pull-right">[% l('Search Class') %]</label>
25   </div>
26   <div class="col-md-2 form-group nullable">
27       <select class="form-control" ng-model="search_class">
28         <option value="">[% l('All classes') %]</option>
29         <option value="keyword">[% l('Keyword') %]</option>
30         <option value="title">[% l('Title') %]</option>
31         <option value="author">[% l('Author') %]</option>
32         <option value="subject">[% l('Subject') %]</option>
33         <option value="series">[% l('Series') %]</option>
34         <option value="identifier">[% l('Identifier') %]</option>
35       </select>
36   </div>
37 </div>
38
39 <eg-grid
40     id-field="id"
41     idl-class="cmf"
42     grid-controls="gridControls"
43     features="-multiselect"
44     persist-key="admin.server.config.metabib_field.grid"
45     dateformat="{{$root.egDateAndTimeFormat}}">
46
47     <eg-grid-menu-item handler="new_record" label="[% l('New Record') %]"></eg-grid-menu-item>
48     <eg-grid-action handler="edit_record" label="[% l('Edit Record') %]"></eg-grid-action>
49     <eg-grid-action handler="delete_record" label="[% l('Delete Record') %]"></eg-grid-action>
50
51     <eg-grid-field label="[% l('ID') %]"    path='id' required hidden></eg-grid-field>
52     <eg-grid-field label="[% l('Label') %]" path="label" required></eg-grid-field>
53     <eg-grid-field label="[% l('Class') %]" path="field_class"></eg-grid-field>
54     <eg-grid-field label="[% l('Weight') %]" path='weight'></eg-grid-field>
55     <eg-grid-field label="[% l('Field') %]" path="name" hidden></eg-grid-field>
56     <eg-grid-field label="[% l('Search Field') %]" path='search_field'></eg-grid-field>
57     <eg-grid-field label="[% l('Facet Field') %]" path='facet_field'></eg-grid-field>
58     <eg-grid-field label="[% l('Display Field') %]" path='display_field'></eg-grid-field>
59     <eg-grid-field label="[% l('Browse Field') %]" path='browse_field'></eg-grid-field>
60     <eg-grid-field label="[% l('Data Suppliers') %]">
61         <a href="./admin/server/config/metabib_field_virtual_map?cmf={{item.id}}" target="_blank">[% l('Manage'); %]</a>
62     </eg-grid-field>
63 </eg-grid>
64
65 [% END %]