source: main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicanteditpage.pt @ 7756

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

Replace widgets loop in all pagetemplates by the new widgets provider.

File size: 3.6 KB
Line 
1<form action="." tal:attributes="action request/URL" method="post"
2      i18n:domain="waeup.sirp" enctype="multipart/form-data">
3
4  <h2>
5  ... <span tal:replace="context/translated_state">APPLICATIONSTATE</span> ...
6  </h2>
7
8  <div class="workflow">
9    <div tal:repeat="msg context/history/messages">
10      <span tal:replace="msg">MESSAGE</span><br />
11    </div>
12  </div>
13
14  <table class="form-table">
15    <tbody>
16      <tal:widgets content="structure provider:widgets" />
17      <tr>
18        <td class="fieldname" i18n:translate="">
19          Photograph
20        </td>
21        <td>
22          <img src="passport.jpg" /><br />
23          <input type="file" name="form.passport" />
24          <br />
25          <span i18n:translate="">
26            Max. file size:
27          </span>
28          <span tal:replace="view/max_upload_size">10 KB</span>
29      </tr>
30      <tr tal:condition="view/manage_applications">
31        <td class="fieldname" i18n:translate="">Password:</td>
32        <td>
33          <input name="password" type="password"  />
34        </td>
35      </tr>
36      <tr tal:condition="view/manage_applications">
37        <td class="fieldname" i18n:translate="">Retype password:</td>
38        <td>
39          <input name="control_password" type="password" />
40        </td>
41      </tr>
42      <tr tal:condition="view/manage_applications">
43        <td class="fieldname" i18n:translate="">Application Transition:</td>
44        <td>
45          <select id="transition" name="transition">
46            <option tal:repeat="transition view/getTransitions"
47                    tal:attributes="value transition/name">
48              <span tal:replace="transition/title">TRANSITIONTITLE</span>
49            </option>
50          </select>
51        </td>
52      </tr>
53    </tbody>
54  </table>
55
56  <div tal:condition="not: view/manage_applications">
57    <input id="confirm_passport" name="confirm_passport"
58           type="checkbox" value="True"/>
59    <span i18n:translate="">
60    I confirm that the Passport Photograph uploaded on this form is a
61    true picture of me.
62    </span>
63  </div>
64
65  <div tal:condition="view/availableActions">
66    <span tal:repeat="action view/actions"
67          tal:omit-tag="">
68      <input tal:condition="python:action.label in view.display_actions[0]"
69             tal:replace="structure action/render"/>
70    </span>
71  </div>
72
73  <br /><br />
74  <h3 i18n:translate="">
75      Acceptance Fee Payment Tickets
76  </h3>
77
78  <table>
79    <thead>
80    <tr>
81      <th>&nbsp;</th>
82      <th i18n:translate="">Payment Id</th>
83      <th i18n:translate="">Creation Date</th>
84      <th i18n:translate="">Payment Date</th>
85      <th i18n:translate="">Category</th>
86      <th i18n:translate="">Item</th>
87      <th i18n:translate="">State</th>
88    </tr>
89    </thead>
90    <tbody>
91      <tr tal:repeat="cl context/values">
92         <td>
93          <input type="checkbox"
94                 name="val_id"
95                 tal:attributes="value cl/__name__"
96         tal:condition="python: not view.unremovable(cl)" />
97        </td>
98        <td> <a tal:attributes="href cl/__name__">
99        <span tal:content="cl/p_id">PID</span></a></td>
100        <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
101        <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
102      <td tal:content ="cl/category">CATEGORY</td>
103      <td tal:content ="cl/p_item">ITEM</td>
104      <td tal:content ="cl/state">STATE</td>
105      </tr>
106    </tbody>
107  </table>
108
109  <div tal:condition="view/availableActions">
110    <span tal:repeat="action view/actions"
111          tal:omit-tag="">
112      <input tal:condition="python:action.label in view.display_actions[1]"
113             tal:replace="structure action/render"/>
114    </span>
115  </div>
116</form>
Note: See TracBrowser for help on using the repository browser.