<html metal:use-macro="here/main_template/macros/master" xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal"> <head> <title>Selection</title> <meta http-equiv="content-type" content="text/html;charset=UTF-8"/> <metal:block metal:fill-slot="javascript_head_slot"> <script type="text/javascript" tal:attributes="src string:${portal_url}/cart_widgets.js"></script> <script type="text/javascript" tal:attributes="src string:${portal_url}/photo_lightbox_viewer.js"></script> </metal:block> </head> <body> <div metal:fill-slot="main_no_tabs" tal:define="batch options/batch; infos options/infos; features options/features" tal:omit-tag="" i18n:domain="portfolio"> <h1 i18n:translate="">My selection</h1> <em tal:condition="python: not options['selectionIsLightbox'] and len(batch)"> (<span tal:content="options/selectionName" tal:omit-tag="" i18n:translate="">selection name</span>) </em> <div tal:condition="options/selectionIsLightbox"> <em i18n:translate="">You are editing this ligthbox:</em> <a tal:attributes="href options/lightbox/absolute_url" tal:content="options/lightbox/title_or_id">lightbox url</a> </div> <div metal:use-macro="here/photo_layout_macros/macros/grid"></div> <form tal:attributes="action string:$portal_url/save_as_lightbox_form" tal:condition="python:not isAnon and not options['selectionIsLightbox'] and len(batch)"> <input type="submit" value="Save as..." name="saveas" i18n:attributes="value"/> </form> <div tal:condition="python:isAnon and len(batch)" i18n:translate=""> <span i18n:name="please_login"> <a tal:define="mq python:modules['ZTUtils'].make_query" tal:attributes="href python:'%s/login_form?%s' % (portal_url, mq(came_from='%s/save_as_lightbox_form' % portal_url))" i18n:translate="login_to_save_seletion">Please log in</a></span> if you want to save this selection. </div> <div tal:condition="python:not len(batch)" i18n:translate="">Empty selection.</div> </div> </body> </html>