source: main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicanteditpage.pt @ 7443

Last change on this file since 7443 was 7254, checked in by Henrik Bettermann, 13 years ago

Define formatDatetime (for displaying datetime objects in data tables) centrally in layout.py.

File size: 4.7 KB
Line 
1<form action="." tal:attributes="action request/URL" method="post"
2      class="edit-form" enctype="multipart/form-data">
3
4  <h2 i18n:translate=""
5    tal:condition="view/label"
6    tal:content="view/label">Label</h2>
7
8  <h2> ... <span tal:replace="context/state">Application State</span> ... </h2>
9
10  <div class="workflow">
11    <div tal:repeat="msg context/history/messages">
12      <span tal:replace="msg">message</span><br />
13    </div>
14  </div>
15
16  <div class="form-status"
17    tal:define="status view/status"
18    tal:condition="status">
19    Form Status:
20    <span i18n:translate="" tal:content="view/status">
21      Form status summary
22    </span>
23  </div>
24
25  <table class="zebra">
26    <tbody>
27      <tal:block repeat="widget view/widgets">
28        <tr>
29          <td class="label">
30            <label tal:attributes="for widget/name">
31              <span class="required" tal:condition="widget/required">*</span>
32              <span i18n:translate="" tal:content="widget/label">label</span>:
33            </label>
34          </td>
35          <td class="field">
36            <span class="widget" tal:content="structure widget">
37              <input type="text" />
38            </span>
39            <tal:error tal:condition="widget/error">
40              <span tal:replace="structure widget/error">error</span>
41            </tal:error>
42            <tal:hint tal:condition="widget/hint">
43              <span class="hint" tal:content="structure widget/hint">hint</span>
44            </tal:hint>
45          </td>
46        </tr>
47      </tal:block>
48      <tr>
49        <td class="label">
50          <label i18n:translate="" for="form.passport">Photograph</label>
51        </td>
52        <td class="field">
53          <span class="widget">
54            <img src="passport.jpg" /><br />
55            <input type="file" name="form.passport" />
56            <br />
57            <span i18n:translate="">
58              Max. file size:
59              <span tal:replace="view/max_upload_size">10 KB</span>
60            </span>
61          </span>
62      </tr>
63      <tr tal:condition="view/manage_applications">
64        <td class="label"><label>Password:</label></td>
65        <td>
66          <input name="password" type="password"  />
67        </td>
68      </tr>
69      <tr tal:condition="view/manage_applications">
70        <td class="label"><label>Retype password:</label></td>
71        <td>
72          <input name="control_password" type="password" />
73        </td>
74      </tr>
75      <tr tal:condition="view/manage_applications">
76        <td class="label"><label>Application Transition:</label></td>
77        <td>
78          <select id="transition" name="transition">
79            <option tal:repeat="transition view/getTransitions"
80                    tal:attributes="value transition/name">
81              <span tal:replace="transition/title">TRANSITIONTITLE</span>
82            </option>
83          </select>
84        </td>
85      </tr>
86    </tbody>
87  </table>
88
89  <div tal:condition="not: view/manage_applications">
90    <input class="checkboxType" id="confirm_passport" name="confirm_passport"
91           type="checkbox" value="True"/>
92    I confirm that the Passport Photograph uploaded on this form is a
93    true picture of me.
94  </div>
95
96  <div class="actionButtons" tal:condition="view/availableActions">
97    <span tal:repeat="action view/actions"
98          tal:omit-tag="">
99      <input tal:condition="python:action.label in view.display_actions[0]"
100             tal:replace="structure action/render"/>
101    </span>
102  </div>
103
104  <br /><br />
105  <h3 i18n:translate="">Acceptance Fee Payment Tickets</h3>
106
107  <table class="display dataTableManage">
108    <thead>
109    <tr>
110      <th>&nbsp;</th>
111      <th>Payment Id</th>
112      <th>Creation Date</th>
113      <th>Payment Date</th>
114      <th>Category</th>
115      <th>Item</th>
116      <th>State</th>
117    </tr>
118    </thead>
119    <tbody>
120      <tr tal:repeat="cl context/values">
121         <td>
122          <input type="checkbox"
123                 name="val_id"
124                 tal:attributes="value cl/__name__"
125         tal:condition="python: not view.unremovable(cl)" />
126        </td>
127        <td> <a tal:attributes="href cl/__name__">
128        <span tal:content="cl/p_id">PID</span></a></td>
129        <td tal:content="python: layout.formatDatetime(cl.creation_date)">CREATION DATE</td>
130        <td tal:content="python: layout.formatDatetime(cl.payment_date)">PAYMENT DATE</td>
131      <td tal:content ="cl/category">CATEGORY</td>
132      <td tal:content ="cl/p_item">ITEM</td>
133      <td tal:content ="cl/state">STATE</td>
134      </tr>
135    </tbody>
136  </table>
137
138  <div class="actionButtons" tal:condition="view/availableActions">
139    <span tal:repeat="action view/actions"
140          tal:omit-tag="">
141      <input tal:condition="python:action.label in view.display_actions[1]"
142             tal:replace="structure action/render"/>
143    </span>
144  </div>
145</form>
Note: See TracBrowser for help on using the repository browser.