source: main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/applicants/browser_templates/applicanteditpage.pt @ 10009

Last change on this file since 10009 was 7449, checked in by Henrik Bettermann, 13 years ago

Backup

File size: 4.3 KB
Line 
1<form action="." tal:attributes="action request/URL" method="post"
2      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="alert-message error"
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-table">
26    <tbody>
27      <tal:block repeat="widget view/widgets">
28        <tr>
29          <td class="fieldname">
30            <span tal:condition="widget/required">*</span>
31            <span i18n:translate="" tal:content="widget/label">label</span>:
32          </td>
33          <td>
34            <span tal:content="structure widget">
35              <input type="text" />
36            </span>
37            <tal:error tal:condition="widget/error">
38              <span tal:replace="structure widget/error">error</span>
39            </tal:error>
40            <tal:hint tal:condition="widget/hint">
41              <span tal:content="structure widget/hint">hint</span>
42            </tal:hint>
43          </td>
44        </tr>
45      </tal:block>
46      <tr>
47        <td class="fieldname">
48          Photograph
49        </td>
50        <td>
51          <img src="passport.jpg" /><br />
52          <input type="file" name="form.passport" />
53          <br />
54          <span i18n:translate="">
55            Max. file size:
56            <span tal:replace="view/max_upload_size">10 KB</span>
57          </span>
58      </tr>
59      <tr tal:condition="view/manage_applications">
60        <td class="fieldname">Password:</td>
61        <td>
62          <input name="password" type="password"  />
63        </td>
64      </tr>
65      <tr tal:condition="view/manage_applications">
66        <td class="fieldname">Retype password:</td>
67        <td>
68          <input name="control_password" type="password" />
69        </td>
70      </tr>
71      <tr tal:condition="view/manage_applications">
72        <td class="fieldname">Application Transition:</td>
73        <td>
74          <select id="transition" name="transition">
75            <option tal:repeat="transition view/getTransitions"
76                    tal:attributes="value transition/name">
77              <span tal:replace="transition/title">TRANSITIONTITLE</span>
78            </option>
79          </select>
80        </td>
81      </tr>
82    </tbody>
83  </table>
84
85  <div tal:condition="not: view/manage_applications">
86    <input id="confirm_passport" name="confirm_passport"
87           type="checkbox" value="True"/>
88    I confirm that the Passport Photograph uploaded on this form is a
89    true picture of me.
90  </div>
91
92  <div tal:condition="view/availableActions">
93    <span tal:repeat="action view/actions"
94          tal:omit-tag="">
95      <input tal:condition="python:action.label in view.display_actions[0]"
96             tal:replace="structure action/render"/>
97    </span>
98  </div>
99
100  <br /><br />
101  <h3 i18n:translate="">Acceptance Fee Payment Tickets</h3>
102
103  <table>
104    <thead>
105    <tr>
106      <th>&nbsp;</th>
107      <th>Payment Id</th>
108      <th>Creation Date</th>
109      <th>Payment Date</th>
110      <th>Category</th>
111      <th>Item</th>
112      <th>State</th>
113    </tr>
114    </thead>
115    <tbody>
116      <tr tal:repeat="cl context/values">
117         <td>
118          <input type="checkbox"
119                 name="val_id"
120                 tal:attributes="value cl/__name__"
121         tal:condition="python: not view.unremovable(cl)" />
122        </td>
123        <td> <a tal:attributes="href cl/__name__">
124        <span tal:content="cl/p_id">PID</span></a></td>
125        <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
126        <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
127      <td tal:content ="cl/category">CATEGORY</td>
128      <td tal:content ="cl/p_item">ITEM</td>
129      <td tal:content ="cl/state">STATE</td>
130      </tr>
131    </tbody>
132  </table>
133
134  <div tal:condition="view/availableActions">
135    <span tal:repeat="action view/actions"
136          tal:omit-tag="">
137      <input tal:condition="python:action.label in view.display_actions[1]"
138             tal:replace="structure action/render"/>
139    </span>
140  </div>
141</form>
Note: See TracBrowser for help on using the repository browser.