source: main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser_templates/applicanteditpage.pt @ 10287

Last change on this file since 10287 was 10287, checked in by Henrik Bettermann, 11 years ago

Customize template for demonstration purposes, see ticket 890.

File size: 4.2 KB
Line 
1<form action="." tal:attributes="action request/URL" method="post"
2      i18n:domain="waeup.kofa" enctype="multipart/form-data"
3      autocomplete="off">
4
5  <h2 i18n:domain="waeup.kofa">
6    ...
7    <span tal:replace="context/translated_state">APPLICATIONSTATE
8    </span>
9    <span tal:omit-tag=""
10      i18n:translate="" tal:condition="context/suspended">(account suspended)
11    </span>
12    ...
13  </h2>
14
15  <div class="workflow">
16    <div tal:repeat="msg context/history/messages">
17      <span tal:replace="msg">MESSAGE</span><br />
18    </div>
19  </div>
20
21  <div tal:condition="python: view.target.startswith('putme') and
22                              view.context.__parent__.year == 2014 and
23                              view.context.state == 'paid'">
24    <br />
25    <a href="https://uniben.waeup.org/downloads/PastExercises.pdf"
26        i18n:translate="">
27      Download past questions to exercise.
28    </a><br /><br />
29  </div>
30
31  <table class="form-table">
32    <tbody>
33      <tal:widgets content="structure provider:widgets" />
34      <tr>
35        <td class="fieldname" i18n:translate="">
36          Passport Photo:
37        </td>
38        <td>
39          <img src="passport.jpg" height="180px" /><br />
40          <input type="file" name="form.passport" />
41          <br />
42          <span i18n:translate="">
43            Max. file size:
44          </span>
45          <span tal:replace="view/max_upload_size">10 KB</span>
46      </tr>
47      <tr tal:condition="view/manage_applications">
48        <td class="fieldname" i18n:translate="">Password:</td>
49        <td>
50          <input name="password" type="password"  />
51        </td>
52      </tr>
53      <tr tal:condition="view/manage_applications">
54        <td class="fieldname" i18n:translate="">Retype Password:</td>
55        <td>
56          <input name="control_password" type="password" />
57        </td>
58      </tr>
59      <tr tal:condition="view/manage_applications">
60        <td class="fieldname" i18n:translate="">Application Transition:</td>
61        <td>
62          <select id="transition" name="transition">
63            <option tal:repeat="transition view/getTransitions"
64                    tal:attributes="value transition/name">
65              <span tal:replace="transition/title">TRANSITIONTITLE</span>
66            </option>
67          </select>
68        </td>
69      </tr>
70    </tbody>
71  </table>
72
73  <div tal:condition="not: view/manage_applications">
74    <input id="confirm_passport" name="confirm_passport"
75           type="checkbox" value="True"/>
76    <span i18n:translate="">
77    I confirm that the Passport Photograph uploaded on this form is a
78    true picture of me.
79    </span>
80  </div>
81  <br />
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/display_item">ITEM</td>
122      <td tal:content ="cl/p_state_title">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.