LP#1814943 Closed Dates Editor Tab Missing Title
[working/Evergreen.git] / Open-ILS / src / templates / staff / admin / local / actor / closed_dates.tt2
1 [%
2   WRAPPER 'staff/base.tt2';
3   ctx.page_type = l('Closed Dates');
4   ctx.page_app = 'egAdminClosed';
5   ctx.page_ctrl = 'ClosedDates';
6   ctx.page_title = l('Closed Dates');
7 %]
8
9 [% BLOCK APP_JS %]
10 <script src="[% ctx.media_prefix %]/js/ui/default/staff/services/grid.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/local/actor/closed_dates.js"></script>
13 <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/admin.css" />
14 <script>
15   angular.module('egCoreMod').run(['egStrings', function(s) {
16     s.CONFIRM_CLOSED_DELETE = "[% l('Confirm closed date deletion') %]";
17     s.CONFIRM_CLOSED_DELETE_BODY = '[% l('Delete closing "{{reason}}" for {{org.name()}}?') %]';
18     s.POSSIBLE_EMERGENCY_CLOSING = "[% l('Possible Emergency Closing') %]";
19     s.EMERGENCY_CLOSING = "[% l('Emergency Closing') %]";
20     s.CREATING_CLOSINGS = "[% l('Creating closings') %]";
21     s.PROCESSING_EMERGENCY = "[% l('Processing Emergency Closing') %]";
22   }]);
23 </script>
24 [% END %]
25
26 <div class="container-fluid" style="text-align:center">
27   <div class="alert alert-info alert-less-pad strong-text-2">
28     [% l('Closed Dates Editor') %]
29   </div>
30 </div>
31
32 <div class="row">
33   <div class="col-md-4">
34     <div class="form-group">
35       <label>[% l('Edit Closed Dates for: ') %]&nbsp; </label>
36       <eg-org-selector onchange="org_changed" 
37         selected="context_org"></eg-org-selector>
38     </div>
39   </div>
40   <div class="col-md-4">
41   </div>
42   <div class="col-md-1">
43     <label>[% l('Date Filter: ') %]&nbsp; </label>
44   </div>
45   <div class="col-md-3">
46     <eg-date-input ng-model="date_filter"></eg-date-input>
47   </div>
48 </div>
49
50 <eg-grid
51     id-field="id"
52     grid-controls="gridControls"
53     items-provider="gridDataProvider"
54     features="-multiselect"
55     persist-key="admin.local.actor.closed_dates"
56     dateformat="{{$root.egDateAndTimeFormat}}">
57    
58     <eg-grid-menu-item standalone="true" label="[% l('Add closing') %]" handler="create_aoucd"></eg-grid-action> 
59     <eg-grid-menu-item standalone="true" label="[% l('Refresh') %]" handler="refresh_page"></eg-grid-action> 
60
61     <eg-grid-action label="[% l('Edit closing') %]" handler="update_aoucd"></eg-grid-action> 
62     <eg-grid-action label="[% l('Delete closing') %]" handler="delete_aoucd"></eg-grid-action> 
63
64     <eg-grid-field label="[% l('Closing Start') %]" flex="1" path="close_start" visible>
65       {{item.close_start | egOrgDateInContext:item._format:item.org_unit:item._duration}}
66     </eg-grid-field>
67     <eg-grid-field label="[% l('Closing End') %]" flex="1" path="close_end" visible>
68       {{item.close_end | egOrgDateInContext:item._format:item.org_unit:item._duration}}
69     </eg-grid-field>
70     <eg-grid-field label="[% l('Reason for Closing') %]" flex="2" path="reason" visible></eg-grid-field>
71     <eg-grid-field label="[% l('Emergency Closing Processing Summary') %]" flex="2" path="emergency_closing.status" visible>
72       <span class="{{item._text_class}}">
73         [% l('Circulations: ') %]{{item.emergency_closing.status.circulations_complete}} / {{item.emergency_closing.status.circulations}} |
74         [% l('Holds: ') %]{{item.emergency_closing.status.holds_complete}} / {{item.emergency_closing.status.holds}} |
75         [% l('Reservations:') %]{{item.emergency_closing.status.reservations_complete}} / {{item.emergency_closing.status.reservations}}
76       </span>
77     </eg-grid-field>
78     <eg-grid-field label="[% l('Full Day') %]" path="full_day" datatype="bool" hidden></eg-grid-field>
79     <eg-grid-field label="[% l('Multiple Days') %]" path="multi_day" datatype="bool" hidden></eg-grid-field>
80     <eg-grid-field label="[% l('Emergency Closing Circulations') %]" path="emergency_closing.status.circulations" hidden>
81     <eg-grid-field label="[% l('Emergency Closing Holds') %]" path="emergency_closing.status.holds" hidden>
82     <eg-grid-field label="[% l('Emergency Closing Reservations') %]" path="emergency_closing.status.reservations" hidden>
83     <eg-grid-field label="[% l('Emergency Closing Circulations Completed') %]" path="emergency_closing.status.circulations_complete" hidden>
84     <eg-grid-field label="[% l('Emergency Closing Holds Completed') %]" path="emergency_closing.status.holds_complete" hidden>
85     <eg-grid-field label="[% l('Emergency Closing Reservations Completed') %]" path="emergency_closing.status.reservations_complete" hidden>
86 </eg-grid>
87
88 [% END %]