eggification
[PlinnDocument.git] / Products / PlinnDocument / skins / plinndocument_edit_template.pt
diff --git a/Products/PlinnDocument/skins/plinndocument_edit_template.pt b/Products/PlinnDocument/skins/plinndocument_edit_template.pt
new file mode 100644 (file)
index 0000000..ef54386
--- /dev/null
@@ -0,0 +1,69 @@
+<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="here/main_template/macros/master" i18n:domain="plinn">
+
+  <head>
+    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
+               <metal:block metal:fill-slot="javascript_head_slot">
+                       <script type="text/javascript" tal:attributes="src python:'%s/%s?charset=%s' % (portal_url, 'epoz_multilingual.js', here.default_charset)"></script>
+      <script type="text/javascript" tal:attributes="src here/vcXMLRPC.js/absolute_url"></script>
+      <script type="text/javascript" tal:attributes="src here/epoz_script_main.js/absolute_url"></script>
+      <script type="text/javascript" tal:attributes="src here/epoz_redirect.js/absolute_url"></script>
+           <script type="text/javascript" tal:attributes="src here/color_utils.js/absolute_url"></script>
+           <script type="text/javascript" tal:attributes="src string:${portal_url}/plinn_multilingual.js?charset=utf-8"></script>
+           <script type="text/javascript" tal:attributes="src here/layout_controlers.js/absolute_url"></script>
+           <script type="text/javascript" tal:attributes="src here/layout_objects.js/absolute_url"></script>
+           <script type="text/javascript" tal:attributes="src here/xml_io.js/absolute_url"></script>
+               </metal:block>
+  </head>
+
+  <body>
+    <div metal:fill-slot="header">
+      <div metal:use-macro="here/widgets/macros/generic_header">generic_header macro</div>
+    </div>
+    
+<div metal:fill-slot="main" tal:omit-tag="">
+       <!-- tools -->
+       <span id="PlinnDocumentUrl" tal:content="here/absolute_url" style="display:none"></span>
+               <img width="25" height="25" alt="Add text" title="Add text" tal:attributes="src here/plinn_icons/textarea.gif/absolute_url" onclick="new Rectangle(new Point(30, 30), 300, 200, 'EPOZ_ELEMENT').draw(CURRENT_LAYER);" />&nbsp;&nbsp;&nbsp;
+               <input type="hidden" id="ImgDispatcher" value=""
+            onclick="new Rectangle(new Point(30, 30), 200, 200, 'IMG_ELEMENT', 15).draw(CURRENT_LAYER);"/>
+               <input type="hidden" id="EpozImgDispatcher" value=""
+            onclick="CreateImage(PLINN_DOCUMENT_URL+'/'+this.value);">
+    <input type="hidden" id="AttachmentDispatcher" value="" onclick="CreateAttachmentLink(this.value);" />
+               <select id="layerSelector"></select>
+               <img id="layer_status" width="13" height="11" onclick="LAYER_MANAGER.toggleLayerVisibility();"
+                                tal:attributes="src here/plinn_icons/visible_layer.gif/absolute_url"  alt="Toggle layer visibility" title="Hide layer" />
+               
+               <div metal:use-macro="here/plinn_macros/macros/EpozToolbar"></div>
+               
+               <!-- main wysiwyg document node -->
+               <form style="margin:0"><div id="main_space" style="position:relative"></div></form>
+               
+               <!-- elements for cloning -->
+    <div id="elements_pool" style="display:none">
+       <div id="div"></div>
+       <img id="img" alt="image" />
+       <div id="epoz"><iframe src="plinn_blank_iframe.html?charset=utf8&css=zpt_stylesheet.css&customcss=plinn_style.css"
+                                                style="width:100% ; height:100% ; border:none ; background:transparent" allowTransparency="true" frameborder="no"></iframe><textarea style="display:none"></textarea></div>
+    </div>
+    <form action="." style="margin:0" method="post" enctype="multipart/form-data" id="plinn_document_form"
+                       tal:attributes="action string:${here/absolute_url}/plinndocument_edit_form">
+       <input type="hidden" name="onBeforeSubmit" value="_plinnDocumentBeforeSubmit" />
+       <textarea id="xml_output" name="text" style="display:none" rows="1" cols="1"></textarea>
+       <br/><input type="submit" value="Save" name="change_and_view" i18n:attributes="value" />
+    </form>
+    <script type="text/javascript">
+       //<!--
+                       initPlinn(document.getElementById("main_space"), document.getElementById("PlinnDocumentUrl").innerHTML+ "/XMLBody");
+                       var plinnDocumentForm = document.getElementById('plinn_document_form');
+                       if ((AJAX_CONFIG & 2) == 2) {
+                         var fm = new FormManager(plinnDocumentForm);
+                         fm.onBeforeSubmit = _plinnDocumentBeforeSubmit;
+                       }
+                       else {
+                         addListener(plinnDocumentForm, 'submit', _plinnDocumentBeforeSubmit);
+                       }
+                       //-->
+    </script>
+</div>
+  </body>
+</html>