source: main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/browser_templates/applicanteditpage.pt @ 15917

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

Add file upload facilities for statement of result upload.

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