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

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

Backup work in progress

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