]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/base.tt2
1e2c740e9241c45c609ede7a6dd4d089c02da2bd
[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
27     <!-- load the navbar template inline since it's used on every page -->
28     <script type="text/ng-template" id="eg-navbar-template">
29       [% INCLUDE "staff/navbar.tt2" %]
30     </script>
31
32     <!-- instantiate the navbar by invoking it's name -->
33     <eg-navbar></eg-navbar>
34
35     <!-- main page content goes here -->
36     <div id="top-content-container" class="container">[% content %]</div>
37
38     [% 
39       # status bar along bottom of page
40       INCLUDE "staff/statusbar.tt2";
41
42       # script imports
43       INCLUDE "staff/base_js.tt2";
44
45       # App-specific JS load commands go into an APP_JS block.
46       PROCESS APP_JS;
47     %]
48
49     <!-- content printed via the browser is inserted here for 
50          DOM-ification prior to delivery to the printer -->
51     <div id="print-div" eg-print-container></div>
52   </body>
53 </html>