1 <html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="here/main_template/macros/master" i18n:domain="plinn">
4 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
5 <metal:block metal:fill-slot="javascript_head_slot">
6 <script type="text/javascript" tal:attributes="src python:'%s/%s?charset=%s' % (portal_url, 'epoz_multilingual.js', here.default_charset)"></script>
7 <script type="text/javascript" tal:attributes="src here/vcXMLRPC.js/absolute_url"></script>
8 <script type="text/javascript" tal:attributes="src here/epoz_script_main.js/absolute_url"></script>
9 <script type="text/javascript" tal:attributes="src here/epoz_redirect.js/absolute_url"></script>
10 <script type="text/javascript" tal:attributes="src here/color_utils.js/absolute_url"></script>
11 <script type="text/javascript" tal:attributes="src string:${portal_url}/plinn_multilingual.js?charset=utf-8"></script>
12 <script type="text/javascript" tal:attributes="src here/layout_controlers.js/absolute_url"></script>
13 <script type="text/javascript" tal:attributes="src here/layout_objects.js/absolute_url"></script>
14 <script type="text/javascript" tal:attributes="src here/xml_io.js/absolute_url"></script>
19 <div metal:fill-slot="header">
20 <div metal:use-macro="here/widgets/macros/generic_header">generic_header macro</div>
23 <div metal:fill-slot="main" tal:omit-tag="">
25 <span id="PlinnDocumentUrl" tal:content="here/absolute_url" style="display:none"></span>
26 <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);" />
27 <input type="hidden" id="ImgDispatcher" value=""
28 onclick="new Rectangle(new Point(30, 30), 200, 200, 'IMG_ELEMENT', 15).draw(CURRENT_LAYER);"/>
29 <input type="hidden" id="EpozImgDispatcher" value=""
30 onclick="CreateImage(PLINN_DOCUMENT_URL+'/'+this.value);">
31 <input type="hidden" id="AttachmentDispatcher" value="" onclick="CreateAttachmentLink(this.value);" />
32 <select id="layerSelector"></select>
33 <img id="layer_status" width="13" height="11" onclick="LAYER_MANAGER.toggleLayerVisibility();"
34 tal:attributes="src here/plinn_icons/visible_layer.gif/absolute_url" alt="Toggle layer visibility" title="Hide layer" />
36 <div metal:use-macro="here/plinn_macros/macros/EpozToolbar"></div>
38 <!-- main wysiwyg document node -->
39 <form style="margin:0"><div id="main_space" style="position:relative"></div></form>
41 <!-- elements for cloning -->
42 <div id="elements_pool" style="display:none">
44 <img id="img" alt="image" />
45 <div id="epoz"><iframe src="plinn_blank_iframe.html?charset=utf8&css=zpt_stylesheet.css&customcss=plinn_style.css"
46 style="width:100% ; height:100% ; border:none ; background:transparent" allowTransparency="true" frameborder="no"></iframe><textarea style="display:none"></textarea></div>
48 <form action="." style="margin:0" method="post" enctype="multipart/form-data" id="plinn_document_form"
49 tal:attributes="action string:${here/absolute_url}/plinndocument_edit_form">
50 <input type="hidden" name="onBeforeSubmit" value="_plinnDocumentBeforeSubmit" />
51 <textarea id="xml_output" name="text" style="display:none" rows="1" cols="1"></textarea>
52 <br/><input type="submit" value="Save" name="change_and_view" i18n:attributes="value" />
54 <script type="text/javascript">
56 initPlinn(document.getElementById("main_space"), document.getElementById("PlinnDocumentUrl").innerHTML+ "/XMLBody");
57 var plinnDocumentForm = document.getElementById('plinn_document_form');
58 if ((AJAX_CONFIG & 2) == 2) {
59 var fm = new FormManager(plinnDocumentForm);
60 fm.onBeforeSubmit = _plinnDocumentBeforeSubmit;
63 addListener(plinnDocumentForm, 'submit', _plinnDocumentBeforeSubmit);