1 | <form action="." tal:attributes="action request/URL" method="post" |
---|
2 | class="edit-form" enctype="multipart/form-data"> |
---|
3 | |
---|
4 | <h2 i18n:translate="" |
---|
5 | tal:condition="view/label" |
---|
6 | tal:content="view/label">Label</h2> |
---|
7 | |
---|
8 | <h2> ... <span tal:replace="context/state">Application State</span> ... </h2> |
---|
9 | |
---|
10 | <div class="workflow"> |
---|
11 | <div tal:repeat="msg context/history/messages"> |
---|
12 | <span tal:replace="msg">message</span><br /> |
---|
13 | </div> |
---|
14 | </div> |
---|
15 | |
---|
16 | <div class="form-status" |
---|
17 | tal:define="status view/status" |
---|
18 | tal:condition="status"> |
---|
19 | Form Status: |
---|
20 | <span i18n:translate="" tal:content="view/status"> |
---|
21 | Form status summary |
---|
22 | </span> |
---|
23 | </div> |
---|
24 | |
---|
25 | <table class="form-fields zebra"> |
---|
26 | <tbody> |
---|
27 | <tal:block repeat="widget view/widgets"> |
---|
28 | <tr> |
---|
29 | <td class="label"> |
---|
30 | <label tal:attributes="for widget/name"> |
---|
31 | <span class="required" tal:condition="widget/required">*</span> |
---|
32 | <span i18n:translate="" tal:content="widget/label">label</span>: |
---|
33 | </label> |
---|
34 | </td> |
---|
35 | <td class="field"> |
---|
36 | <span class="widget" tal:content="structure widget"> |
---|
37 | <input type="text" /> |
---|
38 | </span> |
---|
39 | <tal:error tal:condition="widget/error"> |
---|
40 | <span tal:replace="structure widget/error">error</span> |
---|
41 | </tal:error> |
---|
42 | <tal:hint tal:condition="widget/hint"> |
---|
43 | <span class="hint" tal:content="structure widget/hint">hint</span> |
---|
44 | </tal:hint> |
---|
45 | </td> |
---|
46 | </tr> |
---|
47 | </tal:block> |
---|
48 | <tr> |
---|
49 | <td class="label"> |
---|
50 | <label i18n:translate="" for="form.passport">Photograph</label> |
---|
51 | </td> |
---|
52 | <td class="field"> |
---|
53 | <span class="widget"> |
---|
54 | <img src="passport.jpg" /><br /> |
---|
55 | <input type="file" name="form.passport" /> |
---|
56 | <br /> |
---|
57 | <span i18n:translate=""> |
---|
58 | Max. file size: |
---|
59 | <span tal:replace="view/max_upload_size">10 KB</span> |
---|
60 | </span> |
---|
61 | </span> |
---|
62 | </tr> |
---|
63 | <tr tal:condition="view/manage_applications"> |
---|
64 | <td class="label"><label>Application Transition:</label></td> |
---|
65 | <td> |
---|
66 | <select id="transition" name="transition"> |
---|
67 | <option tal:repeat="transition view/getTransitions" |
---|
68 | tal:attributes="value transition/name"> |
---|
69 | <span tal:replace="transition/title">TRANSITIONTITLE</span> |
---|
70 | </option> |
---|
71 | </select> |
---|
72 | </td> |
---|
73 | </tr> |
---|
74 | </tbody> |
---|
75 | </table> |
---|
76 | |
---|
77 | <div tal:condition="not: view/manage_applications"> |
---|
78 | <input class="checkboxType" id="confirm_passport" name="confirm_passport" |
---|
79 | type="checkbox" value="True"/> |
---|
80 | I confirm that the Passport Photograph uploaded on this form is a |
---|
81 | true picture of me. |
---|
82 | </div> |
---|
83 | |
---|
84 | <div class="actionButtons" tal:condition="view/availableActions"> |
---|
85 | <input tal:repeat="action view/actions" |
---|
86 | tal:replace="structure action/render" |
---|
87 | /> |
---|
88 | </div> |
---|
89 | </form> |
---|