source: TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/templates/layout.html @ 5237

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/templates/layout.html@5237
Revision 5237, 2.3 KB checked in by cbyrom, 11 years ago (diff)

Various tidy ups of editor code - including restricting editing rights
to non-admin users of editor.

Line 
1<html lang="en" xmlns="http://www.w3.org/1999/xhtml" 
2        xmlns:py="http://genshi.edgewall.org/"
3        xmlns:xi="http://www.w3.org/2001/XInclude" py:strip="">
4<xi:include href="ndgPage.html" />
5<?python from oai_info_editor.lib.constants import *?>
6
7  <py:match path="head" once="true">
8    <head py:attrs="select('@*')">
9      <title py:with="title = list(select('title/text()'))">
10        <py:if test="title">${title}</py:if>
11      </title>
12                ${Markup(h.javascript_include_tag(builtins=True))}
13                <script type="text/javascript" src="$g.server/js/yui/build/yui/yui-min.js" ></script> 
14            <script type="text/javascript" src="$g.server/js/toggleDiv.js"/>
15        <script type="text/javascript" src="$g.server/js/ndgJavascript.js"/>
16        <link media="all, screen" href="$g.server/layout/style/oai_editor_style.css" 
17                type="text/css" rel="stylesheet"/>
18
19                <!--! Include anything else specified in the parent template header -->
20            ${select('*[local-name()!="title"]')}
21    </head>
22  </py:match>
23
24  <py:match path="body" once="true">
25    <body py:attrs="select('@*')" onUnload="Div_hide('loading');">
26    <div id="entirepage">
27      <div py:replace="header()"/>
28      ${Markup(c.tbinfo)}
29
30      <div id="logo"><img src="$g.LeftLogo" alt="$g.LeftAlt" /></div>
31
32      <div id="content">
33                <table class="homeHelpBar">
34                        <tr><td align="left">
35                            <a py:if="c.title != EDITOR_HOME_TITLE" href="${h.url_for('home')}">Home</a>
36                            <span py:if="c.vocabHomeURL" py:strip="">
37                            <a href="$c.vocabHomeURL">Vocab List Home</a>
38                            </span>
39                            </td><td align="right"><a py:if="c.title != HELP_PAGE_TITLE" href="${h.url_for('help')}">Help</a>
40                            </td></tr>
41                    </table>
42<div class="javascriptWarning"><script type="text/javascript"><!--
43document.write("<div style='display:none' id='moreinfo'>");
44//-->
45</script>WARNING: You currently have javascript disabled.  For these pages to work correctly, please enable javascript.<script type="text/javascript"><!--
46document.write("</div>");
47//--></script></div>
48                <div id="loading" class='hidden'><img src="$g.loadingIcon" alt="Loading" />Please wait...</div>
49                    ${select('*[local-name()!="panelTab" and local-name()!="includeCorrectionLink"]')}
50      </div>
51      <div py:replace="footer()"/>
52    </div>
53    </body>
54  </py:match>
55</html>
Note: See TracBrowser for help on using the repository browser.