source: main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser_templates/applicanteditpage.pt @ 14217

Last change on this file since 14217 was 14029, checked in by Henrik Bettermann, 8 years ago

display_actions must contain 2 elements.

File size: 5.4 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  <table class="form-table">
22    <tbody>
23      <tal:widgets content="structure provider:widgets" />
24      <tr>
25        <td class="fieldname" i18n:translate="">
26          Passport Photo:
27        </td>
28        <td>
29          <img src="passport.jpg" height="180px" /><br />
30          <br />
31                <div class="input-group half">
32                        <div class="input-group-btn">
33                                <div class="btn btn-default btn-file">
34                Select&hellip;
35                <input type="file" name="form.passport" />
36              </div>
37                        </div>
38                        <input type="text" class="form-control" readonly>
39          </div>
40          <span i18n:translate="">
41            Max. file size:
42          </span>
43          <span tal:replace="view/max_upload_size">10 KB</span>
44      </tr>
45      <tr tal:condition="view/manage_applications">
46        <td class="fieldname" i18n:translate="">Password:</td>
47        <td>
48          <input class="form-control" name="password" type="password"  />
49        </td>
50      </tr>
51      <tr tal:condition="view/manage_applications">
52        <td class="fieldname" i18n:translate="">Retype Password:</td>
53        <td>
54          <input class="form-control" name="control_password" type="password" />
55        </td>
56      </tr>
57      <tr tal:condition="view/manage_applications">
58        <td class="fieldname" i18n:translate="">Application Transition:</td>
59        <td>
60          <select id="transition" name="transition" class="form-control half">
61            <option tal:repeat="transition view/getTransitions"
62                    tal:attributes="value transition/name">
63              <span tal:replace="transition/title">TRANSITIONTITLE</span>
64            </option>
65          </select>
66        </td>
67      </tr>
68    </tbody>
69  </table>
70
71  <div tal:condition="python: not view.manage_applications and not view.target == 'trans'">
72    <input id="confirm_passport" name="confirm_passport"
73           type="checkbox" value="True"/>&nbsp;&nbsp;
74    <span i18n:translate="">
75     I hereby confirm that the Passport Photograph uploaded on this form is a
76     true picture of me. I also acknowledge by ticking this check box that,
77     if discovered at any time that I do not possess any of the qualifications
78     which I claim I have obtained, I will be expelled from the University
79     and shall not be re-admitted for the same or any other programme,
80     even if I have upgraded my previous qualifications or possess additional
81     qualifications.
82    </span>
83  </div>
84  <div tal:condition="python: not view.manage_applications and view.target == 'trans'">
85    <input id="confirm_passport" name="confirm_passport"
86           type="checkbox" value="True"/>&nbsp;&nbsp;
87    <span i18n:translate="">
88     I hereby confirm that the Passport Photograph uploaded on this form is a
89     true picture of me.
90    </span>
91  </div>
92  <br />
93
94  <div tal:condition="view/availableActions">
95    <span tal:repeat="action view/actions"
96          tal:omit-tag="">
97      <input tal:condition="python:action.label in view.display_actions[0]"
98             tal:replace="structure action/render"/>
99    </span>
100  </div>
101
102  <tal:payments condition="view/display_payments">
103    <br /><br />
104    <h3 i18n:translate="">
105        Payment Tickets
106    </h3>
107
108    <table i18n:domain="waeup.kofa" class="table table-condensed">
109      <thead>
110      <tr>
111        <th>&nbsp;</th>
112        <th i18n:translate="">Payment Id</th>
113        <th i18n:translate="">Creation Date</th>
114        <th i18n:translate="">Payment Date</th>
115        <th i18n:translate="">Category</th>
116        <th i18n:translate="">Item</th>
117        <th i18n:translate="">State</th>
118      </tr>
119      </thead>
120      <tbody>
121        <tr tal:repeat="cl context/payments">
122          <td>
123           <input type="checkbox" name="val_id"
124                 tal:attributes="value cl/__name__"
125           tal:condition="python: not view.unremovable(cl)" />
126          </td>
127          <td> <a tal:attributes="href python:view.url(cl)">
128          <span tal:content="cl/p_id">PID</span></a></td>
129          <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
130          <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
131          <td tal:content ="cl/category">CATEGORY</td>
132          <td tal:content ="cl/display_item">ITEM</td>
133          <td tal:content ="cl/p_state_title">STATE</td>
134        </tr>
135      </tbody>
136    </table>
137
138    <div tal:condition="view/availableActions">
139      <span tal:repeat="action view/actions"
140            tal:omit-tag="">
141        <input tal:condition="python:action.label in view.display_actions[1]"
142               tal:replace="structure action/render"/>
143      </span>
144    </div>
145    <br />
146    <p i18n:translate="" tal:condition="context/special">
147      <strong>Notice:</strong> If you need to pay for another service,
148      select the corresponding special application category above,
149      click 'Save' and then 'Add online payment ticket' again.
150    </p>
151  </tal:payments>
152</form>
Note: See TracBrowser for help on using the repository browser.