optimisation empreinte mémoire.
[Portfolio.git] / skins / get_slide_buyable_items.pt
1 <?xml version="1.0" encoding="utf-8" ?>
2 <div class="wdgt-buyable-items"
3 xmlns:tal="http://xml.zope.org/namespaces/tal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 tal:define="pptool here/portal_photo_print;
6 uidh here/portal_uidhandler;
7 uid python:uidh.register(here);
8 utool nocall:here/portal_url;
9 portal_url utool;
10 portal_object utool/getPortalObject;
11 slide_size portal_object/slide_size;
12 items python:pptool.getPrintingOptionsFor(here);"
13 i18n:domain="portfolio">
14 <div class="panel-background"><br/></div>
15 <div style="position:absolute;padding:5px;">
16 <form tal:attributes="action string:${context/absolute_url}/add_to_cart">
17 <select name="printing_template">
18 <option tal:repeat="item items" tal:attributes="value item/getId"
19 ><span tal:replace="item/title"/> – <span tal:replace="item/price/taxed"/> €</option>
20 </select>
21 <input type="submit"
22 name="add_to_cart" title="Add to cart"
23 class="add-to-cart-btn"
24 value=""
25 i18n:attributes="title"/>
26 <div>
27 <span i18n:translate="" tal:omit-tag="">quantity:</span>
28 <input type="text" name="quantity" size="2" value="1"/>
29 </div>
30 <div class="ppt-description"
31 tal:repeat="item items"
32 tal:attributes="name item/getId"
33 tal:content="item/description">Description</div>
34 <input type="submit" name="cancel" value="Cancel"
35 tal:attributes="style python:'position:absolute;;top:%dpx' % (slide_size - 20)"
36 i18n:attributes="value"/>
37 <input name="cmf_uid" type="hidden" tal:attributes="value uid"/>
38 </form>
39 </div>
40 </div>