source: main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt @ 11026

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

Next try to format select elements coming from zope.formlib or from Kofa pagetemplates.

File size: 4.1 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 class="workflow">
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>
25        <td class="fieldname" i18n:translate="">
26          Passport Photo:
27        </td>
28        <td>
29          <img src="passport.jpg" height="180px" /><br />
30          <input type="file" name="form.passport" />
31          <br />
32          <span i18n:translate="">
33            Max. file size:
34          </span>
35          <span tal:replace="view/max_upload_size">10 KB</span>
36      </tr>
37      <tr tal:condition="view/manage_applications">
38        <td class="fieldname" i18n:translate="">Password:</td>
39        <td>
40          <input class="form-control" name="password" type="password"  />
41        </td>
42      </tr>
43      <tr tal:condition="view/manage_applications">
44        <td class="fieldname" i18n:translate="">Retype Password:</td>
45        <td>
46          <input class="form-control" name="control_password" type="password" />
47        </td>
48      </tr>
49      <tr tal:condition="view/manage_applications">
50        <td class="fieldname" i18n:translate="">Application Transition:</td>
51        <td>
52          <select id="transition" name="transition" class="form-control half">
53            <option tal:repeat="transition view/getTransitions"
54                    tal:attributes="value transition/name">
55              <span tal:replace="transition/title">TRANSITIONTITLE</span>
56            </option>
57          </select>
58        </td>
59      </tr>
60    </tbody>
61  </table>
62
63  <div tal:condition="not: view/manage_applications">
64    <input id="confirm_passport" name="confirm_passport"
65           type="checkbox" value="True"/>
66    <span i18n:translate="">
67    I confirm that the Passport Photograph uploaded on this form is a
68    true picture of me.
69    </span>
70  </div>
71  <br />
72
73  <div tal:condition="view/availableActions">
74    <span tal:repeat="action view/actions"
75          tal:omit-tag="">
76      <input tal:condition="python:action.label in view.display_actions[0]"
77             tal:replace="structure action/render"/>
78    </span>
79  </div>
80
81  <br /><br />
82  <h3 i18n:translate="">
83      Application Fee Payment Tickets
84  </h3>
85
86  <div class="table-responsive">
87    <table i18n:domain="waeup.kofa" class="table table-condensed">
88      <thead>
89      <tr>
90        <th>&nbsp;</th>
91        <th i18n:translate="">Payment Id</th>
92        <th i18n:translate="">Creation Date</th>
93        <th i18n:translate="">Payment Date</th>
94        <th i18n:translate="">Category</th>
95        <th i18n:translate="">Item</th>
96        <th i18n:translate="">State</th>
97      </tr>
98      </thead>
99      <tbody>
100        <tr tal:repeat="cl context/values">
101           <td>
102            <input type="checkbox"
103                 name="val_id"
104                 tal:attributes="value cl/__name__"
105           tal:condition="python: not view.unremovable(cl)" />
106          </td>
107          <td> <a tal:attributes="href python:view.url(cl)">
108          <span tal:content="cl/p_id">PID</span></a></td>
109          <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
110          <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
111        <td tal:content ="cl/category">CATEGORY</td>
112        <td tal:content ="cl/display_item">ITEM</td>
113        <td tal:content ="cl/p_state_title">STATE</td>
114        </tr>
115      </tbody>
116    </table>
117  </div>
118
119  <div tal:condition="view/availableActions">
120    <span tal:repeat="action view/actions"
121          tal:omit-tag="">
122      <input tal:condition="python:action.label in view.display_actions[1]"
123             tal:replace="structure action/render"/>
124    </span>
125  </div>
126</form>
Note: See TracBrowser for help on using the repository browser.