eggification
[MosaicDocument.git] / Products / MosaicDocument / default_slots / slot_image_form.pt
diff --git a/Products/MosaicDocument/default_slots/slot_image_form.pt b/Products/MosaicDocument/default_slots/slot_image_form.pt
new file mode 100755 (executable)
index 0000000..46327b3
--- /dev/null
@@ -0,0 +1,42 @@
+<html tal:omit-tag="">
+
+  <head tal:replace="nothing">
+    <title>slot_image_form</title>
+    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
+  </head>
+
+  <body tal:define="object nocall:options/object;
+                    thumbnail object/thumbnail;
+                    width thumbnail/width;
+                    height thumbnail/height;
+                    showSize object/get_size;
+                    src string:${object/absolute_url}/thumbnail;
+                    title python:object and object.title or ''"
+        i18n:domain="plinn"
+        tal:omit-tag="">
+    <div>
+       <div tal:condition="showSize" tal:omit-tag="">
+       <span i18n:translate="" tal:omit-tag="">width / height:</span>
+       <input type="text" name="textfieldName" size="4" class="mosaic_input"
+             tal:attributes="name python:'.'.join((object.getId(), 'thumb_width')) + ':record:int'; value width;"
+             tal:condition="showSize" /> / 
+      <input type="text" name="textfieldName" size="4" class="mosaic_input"
+             tal:attributes="name python:'.'.join((object.getId(), 'thumb_height')) + ':record:int';
+                             value height;" /><br/></div>
+      <img tal:attributes="src src;
+                           height height;
+                           width width;
+                           alt python:title or 'place holder for an image'" /><br/>
+      <small i18n:translate="">Title :</small>
+      <input type="text" class="mosaic_input"
+       tal:attributes="name python:'.'.join((object.getId(), 'title')) + ':record:string' ; value title" />
+      <br/>
+      <span i18n:translate="">Change image:</span>
+      <br/>
+      <input class="mosaic_input" type="file"
+             tal:attributes="name python:'.'.join((object.getId(), 'file')) + ':record'" />
+      <input type="hidden" name="noAjax" value="1" />
+    </div>
+  </body>
+
+</html>
\ No newline at end of file