]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/staff/base.tt2
LP#1570091: webstaff: fix deps for ngToast, and put it in place gloablly
[working/Evergreen.git] / Open-ILS / src / templates / staff / base.tt2
1 <!doctype html>
2 [%- PROCESS 'staff/config.tt2' %]
3 <html lang="[% ctx.locale %]"
4     [%- IF ctx.page_app %] ng-app="[% ctx.page_app %]"[% END -%]
5     [%- IF ctx.page_ctrl %] ng-controller="[% ctx.page_ctrl %]"[% END %]>
6   <head>
7     <title>[% l('Evergreen Staff [_1]', ctx.page_title) %]</title>
8     <base href="/eg/staff/">
9     <meta charset="utf-8">
10     <meta name="viewport" content="width=device-width, initial-scale=1.0">
11     [% IF EXPAND_WEB_IMPORTS %]
12     <link rel="stylesheet" href="[% WEB_BUILD_PATH %]/css/bootstrap.min.css" />
13     <link rel="stylesheet" href="[% WEB_BUILD_PATH %]/css/hotkeys.min.css" />
14     <link rel="stylesheet" href="[% WEB_BUILD_PATH %]/css/ngToast.min.css" />
15     <link rel="stylesheet" href="[% WEB_BUILD_PATH %]/css/ngToast-animations.min.css" />
16     <link rel="stylesheet" href="[% WEB_BUILD_PATH %]/css/tree-control.css" />
17     <link rel="stylesheet" href="[% WEB_BUILD_PATH %]/css/tree-control-attribute.css" />
18     [% ELSE %]
19     <link rel="stylesheet" href="[% WEB_BUILD_PATH %]/css/evergreen-staff-client-deps.[% EVERGREEN_VERSION %].min.css" />
20     [% END %]
21     <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/cat.css" />
22     <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/style.css" />
23     <link rel="stylesheet" href="[% ctx.base_path %]/staff/css/print.css" type="text/css" media="print" />
24   </head>
25   <body>
26     <toast></toast>
27
28     <!-- load the navbar template inline since it's used on every page -->
29     <script type="text/ng-template" id="eg-navbar-template">
30       [% INCLUDE "staff/navbar.tt2" %]
31     </script>
32
33     <!-- instantiate the navbar by invoking it's name -->
34     <eg-navbar></eg-navbar>
35
36     <!-- main page content goes here -->
37     <div id="top-content-container" class="container">[% content %]</div>
38
39     [% 
40       # status bar along bottom of page
41       INCLUDE "staff/statusbar.tt2";
42
43       # script imports
44       INCLUDE "staff/base_js.tt2";
45
46       # App-specific JS load commands go into an APP_JS block.
47       PROCESS APP_JS;
48     %]
49
50     <!-- content printed via the browser is inserted here for 
51          DOM-ification prior to delivery to the printer -->
52     <div id="print-div" eg-print-container></div>
53   </body>
54 </html>