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

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

Certificate filter box (for demonstration purposes!!!)

File size: 7.8 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
25      <tr>
26        <td class="separator" colspan="2">For Demonstration Purposes Only!! <<<<</td>
27      </tr>
28      <tr>
29        <td class="fieldname" i18n:translate="">
30          Certificate:
31        </td>
32        <td>
33          <input id="filterbox" class="kofa-filterbox form-control half"
34                 placeholder="Enter search text, then select item below."
35                 type="text" i18n:translate=""/>
36          <br />
37          <select id="filteredselect" name="course1"
38                  class="form-control" size=5>
39              <span tal:repeat="item view/certs"
40                  tal:omit-tag="">
41              <option tal:attributes="value python:item[0]">
42                <span tal:replace="python:item[1]">TITLE</span>
43              </option>
44            </span>
45          </select>
46        </td>
47      </tr>
48
49      <tr>
50        <td class="separator" colspan="2">>>>></td>
51      </tr>
52
53      <tr tal:condition="python: context.__parent__.with_picture">
54        <td class="fieldname" i18n:translate="">
55          Passport Photo:
56        </td>
57        <td>
58          <img src="passport.jpg" height="180px" /><br />
59          <br />
60                <div class="input-group half">
61                        <div class="input-group-btn">
62                                <div class="btn btn-default btn-file">
63                Select&hellip;
64                <input type="file" name="form.passport" />
65              </div>
66                        </div>
67                        <input type="text" class="form-control" readonly>
68          </div>
69          <span i18n:translate="">
70            Max. file size:
71          </span>
72          <span tal:replace="view/max_upload_size">10 KB</span>
73      </tr>
74
75      <tal:files>
76        <tr tal:repeat="filename view/additional_files">
77          <tal:cond tal:condition="python:view.display_fileupload(filename)">
78            <td class="fieldname">
79              <span tal:replace="python:filename[0]">FILENAME</span>:
80            </td>
81            <td>
82              <p tal:condition="python:view.file_exists(filename[1])">
83                <a tal:attributes="href python:filename[1]"i18n:translate="">
84                  Download pdf file
85                </a>
86              </p>
87              <div class="input-group half">
88                <div class="input-group-btn">
89                  <div class="btn btn-default btn-file">
90                    Select&hellip;
91                  <input type="file" tal:attributes="name python:filename[1]" />
92                  </div>
93                </div>
94                <input type="text" class="form-control" readonly>
95              </div>
96              <span i18n:translate="">
97                PDF files only. Max. file size:
98              </span>
99              <span tal:replace="view/max_file_upload_size">10 KB</span>
100            </td>
101          </tal:cond>
102        </tr>
103      </tal:files>
104
105      <tr tal:condition="view/manage_applications">
106        <td class="fieldname" i18n:translate="">Password:</td>
107        <td>
108          <input class="form-control" 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 class="form-control" 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" class="form-control half">
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="python: not view.manage_applications
132                              and context.__parent__.with_picture">
133    <input id="confirm_passport" name="confirm_passport"
134           type="checkbox" value="True"/>&nbsp;&nbsp;
135    <span i18n:translate="">
136    I confirm that the Passport Photograph uploaded on this form is a
137    true picture of me.
138    </span>
139  </div>
140  <br />
141
142  <div tal:condition="view/availableActions">
143    <span tal:repeat="action view/actions"
144          tal:omit-tag="">
145      <input tal:condition="python:action.label in view.display_actions[0]"
146             tal:replace="structure action/render"/>
147    </span>
148  </div>
149
150  <tal:refereereports condition="view/display_refereereports">
151    <br /><br />
152    <h3 i18n:translate="">
153        Referee Reports
154    </h3>
155    <table i18n:domain="waeup.kofa" class="table table-condensed">
156      <thead>
157      <tr>
158        <th i18n:translate="">Report Id</th>
159        <th i18n:translate="">Creation Date</th>
160        <th i18n:translate="">Referee</th>
161        <th i18n:translate="">Email Address</th>
162      </tr>
163      </thead>
164      <tbody>
165        <tr tal:repeat="cl context/refereereports">
166          <td> <a tal:attributes="href python:view.url(cl)">
167            <span tal:content="cl/r_id">RID</span></a></td>
168          <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
169          <td tal:content="cl/name">REFEREE</td>
170          <td tal:content="cl/email">EMAIL</td>
171        </tr>
172      </tbody>
173    </table>
174  </tal:refereereports>
175
176  <tal:payments condition="view/display_payments">
177    <br /><br />
178    <h3 i18n:translate="">
179        Payment Tickets
180    </h3>
181
182    <table i18n:domain="waeup.kofa" class="table table-condensed">
183      <thead>
184      <tr>
185        <th>&nbsp;</th>
186        <th i18n:translate="">Payment Id</th>
187        <th i18n:translate="">Creation Date</th>
188        <th i18n:translate="">Payment Date</th>
189        <th i18n:translate="">Category</th>
190        <th i18n:translate="">Item</th>
191        <th i18n:translate="">State</th>
192      </tr>
193      </thead>
194      <tbody>
195        <tr tal:repeat="cl context/payments">
196          <td>
197           <input type="checkbox"  name="val_id"
198           tal:attributes="value cl/__name__"
199           tal:condition="python: not view.unremovable(cl)" />
200          </td>
201          <td> <a tal:attributes="href python:view.url(cl)">
202          <span tal:content="cl/p_id">PID</span></a></td>
203          <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
204          <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
205          <td tal:content ="cl/category">CATEGORY</td>
206          <td tal:content ="cl/display_item">ITEM</td>
207          <td tal:content ="cl/p_state_title">STATE</td>
208        </tr>
209      </tbody>
210    </table>
211
212    <div tal:condition="view/availableActions">
213      <span tal:repeat="action view/actions"
214            tal:omit-tag="">
215        <input tal:condition="python:action.label in view.display_actions[1]"
216               tal:replace="structure action/render"/>
217      </span>
218    </div>
219    <br />
220    <p i18n:translate="" tal:condition="context/special">
221      <strong>Notice:</strong> If you need to pay for another service,
222      select the corresponding special application category above,
223      click 'Save' and then 'Add online payment ticket' again.
224    </p>
225  </tal:payments>
226</form>
Note: See TracBrowser for help on using the repository browser.