--- /dev/null
+<!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"
+ tal:define="portal_url nocall:here/portal_url;
+ dummy python:request.RESPONSE.setHeader('Content-Type', 'text/html;;charset=utf-8')">
+
+ <head>
+ <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
+ <script type="text/javascript" defer="defer" tal:attributes="src here/epoz_script_detect.js/absolute_url"></script>
+ <script type="text/javascript" defer="defer" tal:attributes="src here/javascript_events_api.js/absolute_url"></script>
+ <link href="." rel="stylesheet" media="screen" tal:attributes="href here/zpt_stylesheet.css/absolute_url" />
+ <link href="." rel="stylesheet" media="screen" tal:attributes="href string:${portal_url}/plinn_style.css" />
+ <style>
+ body {background:#ccc;}
+ </style>
+ <script type="text/javascript">
+ //<!--
+ function hideUploadForm(formId) {
+ window.parent.document.getElementById(formId).style.visibility = "hidden" ;
+ }
+
+ function dispatchImageAndHideUploadForm(imgUrl, formId, epozInsert) {
+ var dispatcherId = (epozInsert) ? "EpozImgDispatcher" : "ImgDispatcher";
+ var dispatch = window.parent.document.getElementById(dispatcherId);
+ dispatch.value = imgUrl;
+ raiseMouseEvent(dispatch, 'click');
+ window.parent.document.getElementById(formId).style.visibility = "hidden" ;
+ }
+
+ function dispatchFileAndHideUploadForm(data, formId) {
+ var dispatch = window.parent.document.getElementById("AttachmentDispatcher");
+ dispatch.value = data;
+ raiseMouseEvent(dispatch, 'click');
+ window.parent.document.getElementById(formId).style.visibility = "hidden" ;
+ }
+ //-->
+ </script>
+ <title>Image upload form</title>
+ </head>
+
+ <body tal:attributes="onload options/onload"
+ i18n:domain="plinn">
+ <h3 i18n:translate="" tal:condition="python:options['formId']=='ImageUploadForm'">Insert image</h3>
+ <h3 i18n:translate="" tal:condition="python:options['formId']=='FileUploadForm'">Insert file</h3>
+ <form action="plinn_attachment_form" method="post" enctype="multipart/form-data">
+ <input type="hidden" name="formId" tal:attributes="value options/formId" />
+ <input type="file" name="file" size="16"/><input type="submit" name="upload" value="Upload" i18n:attributes="value" /><br>
+ <label tal:condition="python:options['formId']=='ImageUploadForm'">
+ <input type="checkbox" name="epozInsert:bool" value="True" />
+ <span i18n:translate="" tal:omit-tag="">Insert inside text</span>
+ </label>
+ </form>
+ <button onclick="hideUploadForm();" i18n:translate="" tal:attributes="onclick options/hideFormCode">Cancel</button>
+ </body>
+
+</html>
\ No newline at end of file