source: main/waeup.futminna/trunk/src/waeup/futminna/applicants/browser_templates/applicanteditpage.pt @ 10220

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

Add credential form upload facilities.

File size: 5.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">
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>
16    <span  i18n:translate="">
17      <strong>Notice:</strong>
18      Download, fill, scan and re-upload the following forms:
19    </span>
20        <a href="https://futminna.waeup.org/downloads/ExtraApplicantInformationForm.pdf"
21        i18n:translate="">
22      Extra Applicant Information Form</a>,
23    <a href="https://futminna.waeup.org/downloads/RefereeForm.pdf"
24        i18n:translate="">
25      Referee's Form
26    </a><br /><br />
27  </div>
28
29  <div class="workflow">
30    <div tal:repeat="msg context/history/messages">
31      <span tal:replace="msg">MESSAGE</span><br />
32    </div>
33  </div>
34
35  <table class="form-table">
36    <tbody>
37      <tal:widgets content="structure provider:widgets" />
38      <tr>
39        <td class="fieldname" i18n:translate="">
40          Passport Photo:
41        </td>
42        <td>
43          <img src="passport.jpg" height="180px" /><br />
44          <input type="file" name="form.passport" />
45          <br />
46          <span i18n:translate="">
47            Max. file size:
48          </span>
49          <span tal:replace="view/max_upload_size">10 KB</span>
50      </tr>
51      <tr>
52        <td class="fieldname" i18n:translate="">
53          Extra Applicant Information Form:
54        </td>
55        <td>
56          <p tal:condition="python: view.file_exists('extraform.pdf')">
57            <a href="extraform.pdf"
58               i18n:translate="">
59              Download pdf file
60            </a>
61          </p>
62          <input type="file" name="form.extraform" />
63          <br />
64          <span i18n:translate="">
65            Max. file size:
66          </span>
67          <span tal:replace="view/max_file_upload_size">10 KB</span>
68      </tr>
69      <tr>
70        <td class="fieldname" i18n:translate="">
71          Referee's Form:
72        </td>
73        <td>
74          <p tal:condition="python: view.file_exists('refereeform.pdf')">
75            <a href="refereeform.pdf"
76               i18n:translate="">
77              Download pdf file
78            </a>
79          </p>
80          <input type="file" name="form.refereeform" />
81          <br />
82          <span i18n:translate="">
83            Max. file size:
84          </span>
85          <span tal:replace="view/max_file_upload_size">10 KB</span>
86      </tr>
87      <tr>
88        <td class="fieldname" i18n:translate="">
89          Credential Form:
90        </td>
91        <td>
92          <p tal:condition="python: view.file_exists('credentialform.pdf')">
93            <a href="credentialform.pdf"
94               i18n:translate="">
95              Download pdf file
96            </a>
97          </p>
98          <input type="file" name="form.credentialform" />
99          <br />
100          <span i18n:translate="">
101            Max. file size:
102          </span>
103          <span tal:replace="view/max_file_upload_size">10 KB</span>
104      </tr>
105      <tr tal:condition="view/manage_applications">
106        <td class="fieldname" i18n:translate="">Password:</td>
107        <td>
108          <input name="password" type="password"  />
109        </td>
110      </tr>
111      <tr tal:condition="view/manage_applications">
112        <td class="fieldname" i18n:translate="">Retype Password:</td>
113        <td>
114          <input name="control_password" type="password" />
115        </td>
116      </tr>
117      <tr tal:condition="view/manage_applications">
118        <td class="fieldname" i18n:translate="">Application Transition:</td>
119        <td>
120          <select id="transition" name="transition">
121            <option tal:repeat="transition view/getTransitions"
122                    tal:attributes="value transition/name">
123              <span tal:replace="transition/title">TRANSITIONTITLE</span>
124            </option>
125          </select>
126        </td>
127      </tr>
128    </tbody>
129  </table>
130
131  <div tal:condition="not: view/manage_applications">
132    <input id="confirm_passport" name="confirm_passport"
133           type="checkbox" value="True"/>
134    <span i18n:translate="">
135    I confirm that the Passport Photograph uploaded on this form is a
136    true picture of me.
137    </span>
138  </div>
139  <br />
140
141  <div tal:condition="view/availableActions">
142    <span tal:repeat="action view/actions"
143          tal:omit-tag="">
144      <input tal:condition="python:action.label in view.display_actions[0]"
145             tal:replace="structure action/render"/>
146    </span>
147  </div>
148
149  <br /><br />
150  <h3 i18n:translate="">
151      Acceptance Fee Payment Tickets
152  </h3>
153
154  <table>
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/values">
168         <td>
169          <input type="checkbox"
170                 name="val_id"
171                 tal:attributes="value cl/__name__"
172         tal:condition="python: not view.unremovable(cl)" />
173        </td>
174        <td> <a tal:attributes="href cl/__name__">
175        <span tal:content="cl/p_id">PID</span></a></td>
176        <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
177        <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
178      <td tal:content ="cl/category">CATEGORY</td>
179      <td tal:content ="cl/display_item">ITEM</td>
180      <td tal:content ="cl/state">STATE</td>
181      </tr>
182    </tbody>
183  </table>
184
185  <div tal:condition="view/availableActions">
186    <span tal:repeat="action view/actions"
187          tal:omit-tag="">
188      <input tal:condition="python:action.label in view.display_actions[1]"
189             tal:replace="structure action/render"/>
190    </span>
191  </div>
192</form>
Note: See TracBrowser for help on using the repository browser.