LP#1826890: set page title for Statistical Popularity Badges admin page
[Evergreen.git] / Open-ILS / src / templates / staff / admin / local / rating / badge.tt2
1 [%
2   WRAPPER 'staff/base.tt2';
3   ctx.page_title = l('Statistical Popularity Badges');
4   ctx.page_app = 'egAdminRating';
5   ctx.page_ctrl = 'Badges';
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/ui.js"></script>
11 <script src="[% ctx.media_prefix %]/js/ui/default/staff/admin/local/rating/badge.js"></script>
12 <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/admin.css" />
13 <script>
14   angular.module('egCoreMod').run(['egStrings', function(s) {
15     s.CONFIRM_DELETE_BADGE_TITLE =
16       "[% l('Confirm badge deletion') %]";
17     s.CONFIRM_DELETE_BADGE_BODY =
18       "[% l('Delete badge {{id}} ({{name}})?') %]";
19   }]);
20 </script>
21 [% END %]
22
23 <div class="container-fluid" style="text-align:center">
24   <div class="alert alert-info alert-less-pad strong-text-2">
25     [% l('Statistical Popularity Badges') %]
26   </div>
27 </div>
28
29 <!--
30 <div class="row">
31   <div class="col-md-4">
32     <div class="form-group">
33       <label>[% l('Scope Library') %]</label>
34       <eg-org-selector onchange="org_changed" 
35         selected="context_org"></eg-org-selector>
36     </div>
37   </div>
38 </div>
39 -->
40
41 <eg-grid
42     id-field="id"
43     idl-class="rb"
44     grid-controls="gridControls"
45     features="-multiselect"
46     persist-key="admin.local.rating.badge"
47     dateformat="{{$root.egDateAndTimeFormat}}">
48    
49     <eg-grid-action label="[% l('Add badge') %]" handler="create_rb"></eg-grid-action> 
50     <eg-grid-action label="[% l('Edit badge') %]" handler="update_rb"></eg-grid-action> 
51     <eg-grid-action label="[% l('Delete badge') %]" handler="delete_rb"></eg-grid-action> 
52
53     <eg-grid-field label="[% l('Name') %]"                   path='name'></eg-grid-field>
54     <eg-grid-field label="[% l('Description') %]"            path='description'></eg-grid-field>
55     <eg-grid-field label="[% l('Scope') %]"                  path='scope.name'></eg-grid-field>
56     <eg-grid-field label="[% l('Popularity Parameter') %]"   path='popularity_parameter.name'></eg-grid-field>
57     <eg-grid-field label="[% l('ID') %]" path='id' required hidden></eg-grid-field>
58     <eg-grid-field path='*' hidden></eg-grid-field> 
59 </eg-grid>
60
61 [% END %]