eggification
[Portfolio.git] / Products / Portfolio / skins / get_slide_buyable_items.pt
diff --git a/Products/Portfolio/skins/get_slide_buyable_items.pt b/Products/Portfolio/skins/get_slide_buyable_items.pt
new file mode 100644 (file)
index 0000000..8fb12bd
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<div class="wdgt-buyable-items"
+     xmlns:tal="http://xml.zope.org/namespaces/tal"
+     xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+     tal:define="pptool here/portal_photo_print;
+                 uidh here/portal_uidhandler;
+                 uid python:uidh.register(here);
+                 utool nocall:here/portal_url;
+                 portal_url utool;
+                 portal_object utool/getPortalObject;
+                 slide_size portal_object/slide_size;
+                 items python:pptool.getPrintingOptionsFor(here);"
+     i18n:domain="portfolio">
+  <div class="panel-background"><br/></div>
+  <div style="position:absolute;padding:5px;">
+    <form tal:attributes="action string:${context/absolute_url}/add_to_cart">
+      <select name="printing_template">
+        <option tal:repeat="item items" tal:attributes="value item/getId"
+          ><span tal:replace="item/title"/> – <span tal:replace="item/price/taxed"/> €</option>
+      </select>
+      <input type="submit"
+             name="add_to_cart" title="Add to cart"
+             class="add-to-cart-btn"
+             value=""
+             i18n:attributes="title"/>
+      <div>
+        <span i18n:translate="" tal:omit-tag="">quantity:</span>
+        <input type="text" name="quantity" size="2" value="1"/>
+      </div>
+      <div class="ppt-description"
+           tal:repeat="item items"
+           tal:attributes="name item/getId"
+           tal:content="item/description">Description</div>
+      <input type="submit" name="cancel" value="Cancel"
+             tal:attributes="style python:'position:absolute;;top:%dpx' % (slide_size - 20)"
+             i18n:attributes="value"/>
+      <input name="cmf_uid" type="hidden" tal:attributes="value uid"/>
+    </form>
+  </div>
+</div>