1 <html metal:use-macro="here/main_template/macros/master">
3 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
5 <body i18n:domain="photoprint">
6 <div metal:fill-slot="main_no_tabs"
7 tal:define="getToolByName python:modules['Products.CMFCore.utils'].getToolByName;
8 wtool python:getToolByName(here, 'portal_workflow');
9 review_state python: wtool.getInfoFor(here, 'review_state', wf_id='order_workflow')"
11 <h2 i18n:translate="">Cancel order "<span tal:replace="here/title_or_id" i18n:name="order_reference">Item</span>"</h2>
12 <div i18n:translate="">
13 Cancel the order and relist reserved copies.
16 <form method="post" tal:attributes="action string:${here/absolute_url}/content_status_modify">
18 <span i18n:translate="" tal:omit-tag="">Current state:</span>
19 <span tal:content="review_state" i18n:translate="" tal:omit-tag="">state</span>
21 <table class="TwoColumnForm">
23 <th i18n:translate="mail_subject">Subject</th>
24 <td tal:define="_ python:modules['Products.photoprint.utils'].translate">
25 <input type="text" size="58"
27 tal:attributes="value python:_('[%s] order %s canceling notification') % (here.portal_photo_print.store_name, here.getId())"/>
31 <th i18n:translate="">Comments</th>
33 <textarea name="comment" cols="50" rows="8" i18n:translate=""
34 >Due to a lack of payment since <span
35 tal:content="python:here.created().strftime(locale_date_fmt)"
37 i18n:name="creation_date"/>, your order has been canceled.
39 The <span tal:content="here/portal_photo_print/store_name|nothing"
41 i18n:name="store_name"></span> team.
46 <th i18n:translate="">Send email</th>
48 <label tal:repeat="member python:mtool.getMembers(here.listCreators())">
49 <input type="checkbox" name="recipients:list" tal:attributes="value member/id" checked="checked" />
50 <span tal:replace="member/getMemberFullName">Membre full name</span>
51 <<span tal:replace="python:member.getProperty('email')">member email</span>>
58 <input type="hidden" name="syncFragments:tokens" value="rightCell" />
59 <input type="hidden" name="workflow_action" value="cancel" />
60 <input type="submit" value="Cancel the order" i18n:attributes="value" />