diff zpt/project/edit_description.zpt @ 22:5ed0b0c21fe5

started to clean up MPIWGProject.
author casties
date Mon, 08 Apr 2013 20:28:29 +0200
parents zpt/edit_MPIWGProjectNeu.zpt@bca61e893fcc
children e30a4bd074db
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/project/edit_description.zpt	Mon Apr 08 20:28:29 2013 +0200
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html metal:use-macro="here/edit_template/macros/page" xmlns:metal="http://xml.zope.org/namespaces/metal" >
+<head>
+<metal:block metal:fill-slot="html_head">
+<metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/head">
+  <metal:macros fill-slot="bootstrap-editor">
+    <script type="text/javascript" src="/kupuEditor/kupuinit_form.js"> </script>
+    <script type="text/javascript" src="/kupuEditor/kupustart_form.js"> </script>
+  </metal:macros>
+</metal:macros>
+<tal:block tal:define="global onload string:kupu = startKupu();"/>
+</metal:block>
+</head>
+<body>
+<tal:block metal:fill-slot="navsel" tal:define="global menusel string:description" />
+<tal:block metal:fill-slot="body">
+  <form action="saveEditedContent" method="POST">
+    <div>
+      <span class="kupu-tb-buttongroup">
+        <button type="button" id="kupu-preview-button" title="preview: alt-p" accesskey="p">Preview</button>
+      </span>
+      <span class="kupu-tb-buttongroup">
+        <button type="button" id="kupu-save-button" title="save: alt-s" accesskey="s">Publish</button>
+      </span>
+    </div>
+    <metal:macros use-macro="here/kupuEditor/kupumacros/macros/xmlconfig">
+      <metal:macros fill-slot="dst">saveEditedContent</metal:macros>
+    </metal:macros>
+    <metal:macros use-macro="here/kupuEditor/kupumacros/macros/fulleditor">
+      <metal:macros fill-slot="tb_select_styles">
+        <select id="kupu-tb-styles">
+          <option xmlns:i18n="http://xml.zope.org/namespaces/i18n" value="P" i18n:translate="">
+            Normal
+          </option>
+          <option value="H3">
+            <span xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:translate="">Heading</span>
+          </option>
+        </select>
+      </metal:macros>
+      <metal:macros fill-slot="toolbox_properties">
+        <div class="kupu-toolbox" id="kupu-toolbox-properties">
+          <input type="hidden" class="wide" id="kupu-properties-title"/> 
+          <input type="hidden" class="wide" id="kupu-properties-description"/>
+        </div>
+      </metal:macros>
+      <metal:macros fill-slot="toolbox_tables">
+        <div class="kupu-toolbox" id="kupu-toolbox-properties">
+          <input type="hidden" class="wide" id="kupu-table-classchooser"/> 
+          <input type="hidden" class="wide" id="kupu-table-newrows" />
+          <input type="hidden" class="wide" id="kupu-table-newcols" />
+        </div>
+      </metal:macros>
+      <metal:macros fill-slot="editorframe">
+        <tal:block tal:condition="not:python:here.REQUEST.get('fromPreview',None)">
+          <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc"
+            tal:attributes="src python:here.absolute_url()+'/getWebProject_description'"> </iframe>
+        </tal:block>
+        <tal:block tal:condition="python:here.REQUEST.get('fromPreview',None)">
+          <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc"
+            tal:attributes="src python:here.absolute_url()+'/previewTemplate/getWebProject_description'"> </iframe>
+        </tal:block>
+      </metal:macros>
+    </metal:macros>
+    <p></p>
+  </form>
+</tal:block>
+</body>
+</html>