Ménage
[photoprint.git] / skins / order_cancel_form.pt
1 <html metal:use-macro="here/main_template/macros/master">
2 <head>
3 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
4 </head>
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')"
10 tal:omit-tag="">
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.
14 </div>
15
16 <form method="post" tal:attributes="action string:${here/absolute_url}/content_status_modify">
17 <p>
18 <span i18n:translate="" tal:omit-tag="">Current state:</span>
19 <span tal:content="review_state" i18n:translate="" tal:omit-tag="">state</span>
20 </p>
21 <table class="TwoColumnForm">
22 <tr>
23 <th i18n:translate="mail_subject">Subject</th>
24 <td tal:define="_ python:modules['Products.photoprint.utils'].translate">
25 <input type="text" size="58"
26 name="subject"
27 tal:attributes="value python:_('[%s] order %s canceling notification') % (here.portal_photo_print.store_name, here.getId())"/>
28 </td>
29 </tr>
30 <tr>
31 <th i18n:translate="">Comments</th>
32 <td>
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)"
36 tal:omit-tag=""
37 i18n:name="creation_date"/>, your order has been canceled.
38
39 The <span tal:content="here/portal_photo_print/store_name|nothing"
40 tal:omit-tag=""
41 i18n:name="store_name"></span> team.
42 </textarea>
43 </td>
44 </tr>
45 <tr>
46 <th i18n:translate="">Send email</th>
47 <td>
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 &lt;<span tal:replace="python:member.getProperty('email')">member email</span>&gt;
52 </label>
53 </td>
54 </tr>
55 <tr>
56 <td><br/></td>
57 <td>
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" />
61 </td>
62 </table>
63 </form>
64 </div>
65 </body>
66 </html>