changeset 24:2204e028811b

preliminary version 0.2 - lots of stuff rewritten - new template system - still no access control
author casties
date Thu, 06 Apr 2006 19:13:43 +0200
parents a6d39ef1c7cc
children e93fb8cadd3a
files zpt/changeDocumentViewer.zpt zpt/head_main.zpt zpt/viewer_main.zpt
diffstat 3 files changed, 36 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/zpt/changeDocumentViewer.zpt	Thu Apr 06 19:13:43 2006 +0200
+++ b/zpt/changeDocumentViewer.zpt	Thu Apr 06 19:13:43 2006 +0200
@@ -1,11 +1,18 @@
-<h1 tal:replace="structure here/manage_page_header">Header</h1>
-	<h2>Add an Document Viewer</h2>
+<div tal:replace="structure here/manage_page_header">Header</div>
+	<h2>Add a Document Viewer</h2>
 		<form action="changeDocumentViewer">
 		
-		<p class="form-optional">Title<input size="80" tal:attributes="value here/title" name="title"></p>
-		<p class="form-label">Image viewer url<input size="80" tal:attributes="value here/imageViewerUrl" name="imageViewerUrl"></p>
+		<p class="form-optional">Title</p>
+        <p class="form-element"><input size="80" tal:attributes="value here/title" name="title"></p>
+		<p class="form-label">Image viewer URL</p>
+        <p class="form-element"><input size="80" tal:attributes="value here/imageViewerUrl" name="imageViewerUrl"></p>
+        <p class="form-text">Full URL up to the '?' (e.g. 'http://echo.mpiwg-berlin.mpg.de/zogilib?')</p>
+        <p class="form-optional">digilib base URL</p>
+        <p class="form-element"><input size="80" tal:attributes="value here/digilibBaseUrl" name="digilibBaseUrl"></p>
+        <p class="form-text">This information can be automatically detected if the image viewer above is a Zogilib instance.<br/>
+        You must clear this field when you change the image viewer URL above.</p>
 		
 		<p><input type="submit" value="change"></p>
 		</form>
 			
-<h1 tal:replace="structure here/manage_page_footer">Footer</h1>
+<div tal:replace="structure here/manage_page_footer">Footer</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/head_main.zpt	Thu Apr 06 19:13:43 2006 +0200
@@ -0,0 +1,6 @@
+<tal:block tal:define="docinfo options/docinfo">
+  <span tal:condition="not:exists:docinfo/author">(no information)</span>
+  <tal:y tal:condition="exists:docinfo/author">
+    <b tal:content="docinfo/author"/>,<i tal:content="docinfo/title"/>,<i tal:content="docinfo/year"/>
+  </tal:y>
+</tal:block>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/viewer_main.zpt	Thu Apr 06 19:13:43 2006 +0200
@@ -0,0 +1,18 @@
+<html>
+<head>
+<link rel="stylesheet" href="template/docuviewer_css" type="text/css">
+</head>
+<body tal:define="docinfo options/docinfo; pageinfo options/pageinfo">
+<div tal:replace="structure python:here.template.head_main(docinfo=docinfo)"/>
+<table border="0" width="100%" height="100%">
+  <tr>
+    <td width="300px" valign="top">
+		<tal:block replace="structure python:here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)" /> 
+    </td>
+    <td width="100%">
+      <tal:block tal:content="structure python:here.template.image_main(docinfo=docinfo,pageinfo=pageinfo)" />
+    </td>
+  </tr>
+</table>
+</body>
+</html>