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

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

Add passport picture switch to applicants containers.

File size: 5.7 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 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
72                              and context.__parent__.with_picture">
73    <input id="confirm_passport" name="confirm_passport"
74           type="checkbox" value="True"/>&nbsp;&nbsp;
75    <span i18n:translate="">
76    I confirm that the Passport Photograph uploaded on this form is a
77    true picture of me.
78    </span>
79  </div>
80  <br />
81
82  <div tal:condition="view/availableActions">
83    <span tal:repeat="action view/actions"
84          tal:omit-tag="">
85      <input tal:condition="python:action.label in view.display_actions[0]"
86             tal:replace="structure action/render"/>
87    </span>
88  </div>
89
90  <tal:refereereports condition="view/display_refereereports">
91    <br /><br />
92    <h3 i18n:translate="">
93        Referee Reports
94    </h3>
95    <table i18n:domain="waeup.kofa" class="table table-condensed">
96      <thead>
97      <tr>
98        <th i18n:translate="">Report Id</th>
99        <th i18n:translate="">Creation Date</th>
100        <th i18n:translate="">Referee</th>
101        <th i18n:translate="">Email Address</th>
102      </tr>
103      </thead>
104      <tbody>
105        <tr tal:repeat="cl context/refereereports">
106          <td> <a tal:attributes="href python:view.url(cl)">
107            <span tal:content="cl/r_id">RID</span></a></td>
108          <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
109          <td tal:content="cl/name">REFEREE</td>
110          <td tal:content="cl/email">EMAIL</td>
111        </tr>
112      </tbody>
113    </table>
114  </tal:refereereports>
115
116  <tal:payments condition="view/display_payments">
117    <br /><br />
118    <h3 i18n:translate="">
119        Payment Tickets
120    </h3>
121
122    <table i18n:domain="waeup.kofa" class="table table-condensed">
123      <thead>
124      <tr>
125        <th>&nbsp;</th>
126        <th i18n:translate="">Payment Id</th>
127        <th i18n:translate="">Creation Date</th>
128        <th i18n:translate="">Payment Date</th>
129        <th i18n:translate="">Category</th>
130        <th i18n:translate="">Item</th>
131        <th i18n:translate="">State</th>
132      </tr>
133      </thead>
134      <tbody>
135        <tr tal:repeat="cl context/payments">
136          <td>
137           <input type="checkbox"  name="val_id"
138           tal:attributes="value cl/__name__"
139           tal:condition="python: not view.unremovable(cl)" />
140          </td>
141          <td> <a tal:attributes="href python:view.url(cl)">
142          <span tal:content="cl/p_id">PID</span></a></td>
143          <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
144          <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
145          <td tal:content ="cl/category">CATEGORY</td>
146          <td tal:content ="cl/display_item">ITEM</td>
147          <td tal:content ="cl/p_state_title">STATE</td>
148        </tr>
149      </tbody>
150    </table>
151
152    <div tal:condition="view/availableActions">
153      <span tal:repeat="action view/actions"
154            tal:omit-tag="">
155        <input tal:condition="python:action.label in view.display_actions[1]"
156               tal:replace="structure action/render"/>
157      </span>
158    </div>
159    <br />
160    <p i18n:translate="" tal:condition="context/special">
161      <strong>Notice:</strong> If you need to pay for another service,
162      select the corresponding special application category above,
163      click 'Save' and then 'Add online payment ticket' again.
164    </p>
165  </tal:payments>
166</form>
Note: See TracBrowser for help on using the repository browser.