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

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

Rebuild applicants package (1st part). Applicants now have an applicant_id and a password and can use the regular login page to enter the portal.

Add user_type attribute to SIRPPrincipal objects.

Add some permissions in students package.

Some tests are still missing and will be re-added soon.

File size: 3.3 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    <input tal:repeat="action view/actions"
98           tal:replace="structure action/render"
99           />
100  </div>
101</form>
Note: See TracBrowser for help on using the repository browser.