side-porting web staff base template
authorBill Erickson <berick@esilibrary.com>
Mon, 4 Nov 2013 14:41:12 +0000 (09:41 -0500)
committerBill Erickson <berick@esilibrary.com>
Mon, 4 Nov 2013 14:41:12 +0000 (09:41 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/staff/t_base.tt2 [new file with mode: 0644]

diff --git a/Open-ILS/src/templates/staff/t_base.tt2 b/Open-ILS/src/templates/staff/t_base.tt2
new file mode 100644 (file)
index 0000000..325f1d9
--- /dev/null
@@ -0,0 +1,24 @@
+<!doctype html>
+<html lang="[% ctx.locale %]"
+    [%- IF ctx.page_app %] ng-app="[% ctx.page_app %]"[% END -%]
+    [%- IF ctx.page_ctrl %] ng-controller="[% ctx.page_ctrl %]"[% END %]>
+  <head>
+    <title>[% l('Evergreen Staff [_1]', ctx.page_title) %]</title>
+    <base href="/eg/staff/">
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <!-- TODO: remote hosted CSS should be hosted locally instead -->
+    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css" />
+    <link rel="stylesheet" href="[% ctx.media_prefix %]/css/skin/default/staff/base.css" />
+  </head>
+  <body>
+    [% INCLUDE "staff/t_navbar.tt2" %]
+    <div id="top-content-container" class="container">[% content %]</div>
+  </body>
+  [% 
+    INCLUDE "staff/t_base_js.tt2";
+
+    # App-specific JS load commands go into an APP_JS block.
+    PROCESS APP_JS;
+  %]
+</html>