changeset 552:13eb36c0b00c

layer template for pundit layer
author casties
date Wed, 19 Sep 2012 10:37:38 +0200
parents f558624d3f73
children 2fe04b61ed95
files documentViewer.py zpt/layer_text_annotator.zpt zpt/layer_text_pundit.zpt
diffstat 3 files changed, 46 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/documentViewer.py	Wed Sep 19 10:13:52 2012 +0200
+++ b/documentViewer.py	Wed Sep 19 10:37:38 2012 +0200
@@ -135,6 +135,7 @@
     layer_text_search = PageTemplateFile('zpt/layer_text_search', globals())
     layer_text_annotator = PageTemplateFile('zpt/layer_text_annotator', globals())
     layer_text_gis = PageTemplateFile('zpt/layer_text_gis', globals())
+    layer_text_pundit = PageTemplateFile('zpt/layer_text_pundit', globals())
     # toc templates
     toc_thumbs = PageTemplateFile('zpt/toc_thumbs', globals())
     toc_text = PageTemplateFile('zpt/toc_text', globals())
--- a/zpt/layer_text_annotator.zpt	Wed Sep 19 10:13:52 2012 +0200
+++ b/zpt/layer_text_annotator.zpt	Wed Sep 19 10:37:38 2012 +0200
@@ -90,7 +90,7 @@
     <ul>
       <li metal:define-macro="layer_select_li">
         <input type="checkbox" class="autosubmit" name="viewLayer" value="annotator"
-          tal:attributes="checked python:'annotator' in viewLayers" /> Annotations
+          tal:attributes="checked python:'annotator' in viewLayers" /> Annotator
       </li>
     </ul>
   </div>
@@ -98,7 +98,7 @@
   <metal:block metal:define-macro="options_box" tal:condition="python:'annotator' in viewLayers">
     <!-- BEGIN ANNOTATIONS -->
     <div class="options">
-      <h4>Annotations</h4>
+      <h4>Annotator</h4>
       <p>
         User "<span tal:replace="annUser" />"<span tal:condition="annGroup" tal:content="string: ($annGroup)"/>.
       </p>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/layer_text_pundit.zpt	Wed Sep 19 10:37:38 2012 +0200
@@ -0,0 +1,43 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<!-- not used here
+<metal:block metal:define-macro="html_head">
+</metal:block>
+-->
+</head>
+<body>
+  <!-- right-side options -->
+  <div class="col buttons">
+    <!-- LAYER DISPLAY OPTION  -->
+    <ul>
+      <metal:block metal:define-macro="layer_select_li">
+        <li>
+          <input type="checkbox" class="autosubmit" name="viewLayer" value="pundit"
+            tal:attributes="checked python:'pundit' in viewLayers" /> Pundit
+        </li>
+      </metal:block>
+    </ul>
+  </div>
+
+  <metal:block metal:define-macro="options_box" tal:condition="python:'pundit' in viewLayers">
+    <!-- <div class="options">
+      <h4>Dictionary view</h4>
+      <form name="f3" action="">
+      <div>Open dictionary definition</div>
+        <ul>
+          <li>
+            <input type="radio" name="r3" /> in new Tab
+          </li>
+          <li>
+            <input type="radio" name="r3" /> in new Window
+          </li>
+        </ul>
+      </form>
+    </div> -->
+  </metal:block> 
+
+</body>
+
+</html>