jslint.
[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 <div metal:use-macro="here/photo_layout_macros/macros/grid"></div>
28 <form tal:attributes="action string:$portal_url/save_as_lightbox_form"
29 tal:condition="python:not isAnon and not options['selectionIsLightbox'] and len(batch)">
30 <input type="submit" value="Save as..." name="saveas" i18n:attributes="value"/>
31 </form>
32 <div tal:condition="python:isAnon and len(batch)" i18n:translate="">
33 <span i18n:name="please_login">
34 <a tal:define="mq python:modules['ZTUtils'].make_query"
35 tal:attributes="href python:'%s/login_form?%s' % (portal_url, mq(came_from='%s/save_as_lightbox_form' % portal_url))"
36 i18n:translate="login_to_save_seletion">Please log in</a></span> if you want to save this selection.
37 </div>
38 <div tal:condition="python:not len(batch)" i18n:translate="">Empty selection.</div>
39 </div>
40 </body>
41 </html>