source: main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt @ 17929

Last change on this file since 17929 was 17670, checked in by Henrik Bettermann, 8 months ago

If the picture is not editable by the applicant, do not show the confirm box.

File size: 6.9 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" tal:condition="context/translated_state">
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" tal:condition="context/history">
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 tal:condition="view/picture_editable">
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        </td>
45      </tr>
46
47      <tal:files>
48        <tr tal:repeat="filename view/additional_files">
49          <tal:cond tal:condition="python:view.display_fileupload(filename)">
50            <td class="fieldname">
51              <span tal:replace="python:filename[0]">FILENAME</span>:
52            </td>
53            <td>
54              <p tal:condition="python:view.file_exists(filename[1])">
55                <a tal:attributes="href python:filename[1]"i18n:translate="">
56                  Download file
57                </a>
58              </p>
59              <div class="input-group half">
60                <div class="input-group-btn">
61                  <div class="btn btn-default btn-file">
62                    Select&hellip;
63                  <input type="file" tal:attributes="name python:filename[1]" />
64                  </div>
65                </div>
66                <input type="text" class="form-control" readonly>
67              </div>
68              <span i18n:translate="">
69                JPG or PDF files only. Max. file size:
70              </span>
71              <span tal:replace="view/max_file_upload_size">10 KB</span>
72            </td>
73          </tal:cond>
74        </tr>
75      </tal:files>
76
77      <tr tal:condition="view/manage_applications">
78        <td class="fieldname" i18n:translate="">Password:</td>
79        <td>
80          <input class="form-control" name="password" type="password"  />
81        </td>
82      </tr>
83      <tr tal:condition="view/manage_applications">
84        <td class="fieldname" i18n:translate="">Retype Password:</td>
85        <td>
86          <input class="form-control" name="control_password" type="password" />
87        </td>
88      </tr>
89      <tr tal:condition="view/manage_applications">
90        <td class="fieldname" i18n:translate="">Application Transition:</td>
91        <td>
92          <select id="transition" name="transition" class="form-control half">
93            <option tal:repeat="transition view/getTransitions"
94                    tal:attributes="value transition/name">
95              <span tal:replace="transition/title">TRANSITIONTITLE</span>
96            </option>
97          </select>
98        </td>
99      </tr>
100    </tbody>
101  </table>
102
103  <div tal:condition="python: not view.manage_applications
104                              and view.picture_editable">
105    <input id="confirm_passport" name="confirm_passport"
106           type="checkbox" value="True"/>&nbsp;&nbsp;
107    <span i18n:translate="">
108    I confirm that the Passport Photograph uploaded on this form is a
109    true picture of me.
110    </span>
111  </div>
112  <br />
113
114  <div tal:condition="view/availableActions">
115    <span tal:repeat="action view/actions"
116          tal:omit-tag="">
117      <input tal:condition="python:action.label in view.display_actions[0]"
118             tal:replace="structure action/render"/>
119    </span>
120  </div>
121
122  <tal:refereereports condition="view/display_refereereports">
123    <br /><br />
124    <h3 i18n:translate="">
125        Referee Reports
126    </h3>
127    <table i18n:domain="waeup.kofa" class="table table-condensed">
128      <thead>
129      <tr>
130        <th i18n:translate="">Report Id</th>
131        <th i18n:translate="">Creation Date</th>
132        <th i18n:translate="">Referee</th>
133        <th i18n:translate="">Email Address</th>
134      </tr>
135      </thead>
136      <tbody>
137        <tr tal:repeat="cl context/refereereports">
138          <td> <a tal:attributes="href python:view.url(cl)">
139            <span tal:content="cl/r_id">RID</span></a></td>
140          <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
141          <td tal:content="cl/name">REFEREE</td>
142          <td tal:content="cl/email">EMAIL</td>
143        </tr>
144      </tbody>
145    </table>
146  </tal:refereereports>
147
148  <tal:payments condition="view/display_payments">
149    <br /><br />
150    <h3 i18n:translate="">
151        Payment Tickets
152    </h3>
153
154    <table i18n:domain="waeup.kofa" class="table table-condensed">
155      <thead>
156      <tr>
157        <th>&nbsp;</th>
158        <th i18n:translate="">Payment Id</th>
159        <th i18n:translate="">Creation Date</th>
160        <th i18n:translate="">Payment Date</th>
161        <th i18n:translate="">Category</th>
162        <th i18n:translate="">Item</th>
163        <th i18n:translate="">State</th>
164      </tr>
165      </thead>
166      <tbody>
167        <tr tal:repeat="cl context/payments">
168          <td>
169           <input type="checkbox"  name="val_id"
170           tal:attributes="value cl/__name__"
171           tal:condition="python: not view.unremovable(cl)" />
172          </td>
173          <td> <a tal:attributes="href python:view.url(cl)">
174          <span tal:content="cl/p_id">PID</span></a></td>
175          <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
176          <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
177          <td tal:content ="cl/category">CATEGORY</td>
178          <td tal:content ="cl/display_item">ITEM</td>
179          <td tal:content ="cl/p_state_title">STATE</td>
180        </tr>
181      </tbody>
182    </table>
183
184    <div tal:condition="view/availableActions">
185      <span tal:repeat="action view/actions"
186            tal:omit-tag="">
187        <input tal:condition="python:action.label in view.display_actions[1]"
188               tal:replace="structure action/render"/>
189      </span>
190    </div>
191    <br />
192    <p i18n:translate="" tal:condition="context/special">
193      <strong>Notice:</strong> If you need to pay for another service,
194      select the corresponding special application category above,
195      click 'Save' and then 'Add online payment ticket' again.
196    </p>
197  </tal:payments>
198</form>
Note: See TracBrowser for help on using the repository browser.