source: main/waeup.kofa/branches/uli-py3/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt @ 17954

Last change on this file since 17954 was 15946, checked in by Henrik Bettermann, 5 years ago

Make further adjustments for fileupload in the applicants section.

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