Introduction d'un système de remise scriptable.
[Portfolio.git] / skins / selection_view_template.pt
1 <html metal:use-macro="here/main_template/macros/master"
2 xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal">
3 <head>
4 <title>Selection</title>
5 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
6 <metal:block metal:fill-slot="javascript_head_slot">
7 <script type="text/javascript" tal:attributes="src string:${portal_url}/cart_widgets.js"></script>
8 <script type="text/javascript" tal:attributes="src string:${portal_url}/photo_lightbox_viewer.js"></script>
9 </metal:block>
10 </head>
11 <body>
12 <div metal:fill-slot="main_no_tabs"
13 tal:define="batch options/batch;
14 infos options/infos;
15 features options/features"
16 tal:omit-tag=""
17 i18n:domain="portfolio">
18 <h1 i18n:translate="">My selection</h1>
19 <em tal:condition="python: not options['selectionIsLightbox'] and len(batch)">
20 (<span tal:content="options/selectionName" tal:omit-tag="" i18n:translate="">selection name</span>)
21 </em>
22 <div tal:condition="options/selectionIsLightbox">
23 <em i18n:translate="">You are editing this ligthbox:</em>
24 <a tal:attributes="href options/lightbox/absolute_url"
25 tal:content="options/lightbox/title_or_id">lightbox url</a>
26 </div>
27 <form tal:attributes="action string:$portal_url/selection_view" method="post">
28 <div id="lightbox_toolbar" class="image_toolbar"
29 tal:define="ModifyPortalContent modules/Products/CMFCore/permissions/ModifyPortalContent"
30 tal:condition="python:mtool.checkPermission(ModifyPortalContent, here)">
31 <input type="image" width="17" height="27" alt="delete" title="delete"
32 name="delete"
33 tal:attributes="src string:$portal_url/trash_btn.gif"
34 i18n:attributes="alt;title"/>
35 <br/>
36 </div>
37 <div metal:use-macro="here/photo_layout_macros/macros/grid"></div>
38 </form>
39 <br clear="all"/>
40 <form tal:attributes="action string:$portal_url/save_as_lightbox_form"
41 tal:condition="python:not isAnon and not options['selectionIsLightbox'] and len(batch)">
42 <input type="submit" value="Save as..." name="saveas" i18n:attributes="value"/>
43 </form>
44 <div tal:condition="python:isAnon and len(batch)" i18n:translate="">
45 <span i18n:name="please_login">
46 <a tal:define="mq python:modules['ZTUtils'].make_query"
47 tal:attributes="href python:'%s/login_form?%s' % (portal_url, mq(came_from='%s/save_as_lightbox_form' % portal_url))"
48 i18n:translate="login_to_save_seletion">Please log in</a></span> if you want to save this selection.
49 </div>
50 <div tal:condition="python:not len(batch)" i18n:translate="">Empty selection.</div>
51 </div>
52 </body>
53 </html>