source: main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/basemanagepage.pt @ 7134

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

Use jquery tabs in StudentBaseManageFormPage? and StudentClearanceManageFormPage? forms to separate form data and file upload widgets.

File size: 2.8 KB
Line 
1<h2 i18n:translate=""
2    tal:condition="view/label"
3    tal:content="view/label">Label</h2>
4
5<form action="." tal:attributes="action request/URL" method="post"
6      class="edit-form" enctype="multipart/form-data">
7
8  <div class="form-status"
9    tal:define="status view/status"
10    tal:condition="status">
11    Form Status:
12    <span i18n:translate="" tal:content="view/status">
13      Form status summary
14    </span>
15  </div>
16
17  <div id="tabs">
18    <ul>
19      <li><a href="#tab-1"><span>Base Data</span></a></li>
20      <li><a href="#tab-2"><span>Passport Picture</span></a></li>
21    </ul>
22
23    <div id="tab-1">
24      <table class="form-fields zebra">
25        <tbody>
26          <tal:block repeat="widget view/widgets">
27            <tr>
28              <td class="label">
29                <label tal:attributes="for widget/name">
30                  <span class="required" tal:condition="widget/required">*</span>
31                  <span i18n:translate="" tal:content="widget/label">label</span>:
32                </label>
33              </td>
34              <td class="field">
35                <span class="widget" tal:content="structure widget">
36                  <input type="text" />
37                </span>
38                <tal:error tal:condition="widget/error">
39                  <span tal:replace="structure widget/error">error</span>
40                </tal:error>
41                <tal:hint tal:condition="widget/hint">
42                  <span class="hint" tal:content="structure widget/hint">hint</span>
43                </tal:hint>
44              </td>
45            </tr>
46          </tal:block>
47          <tr>
48            <td class="label"><label>Password:</label></td>
49            <td>
50              <input name="password" type="password"  />
51            </td>
52          </tr>
53          <tr>
54            <td class="label"><label>Retype password:</label></td>
55            <td>
56              <input name="control_password" type="password" />
57            </td>
58          </tr>
59          <tr>
60            <td class="label"><label>Registration Transition:</label></td>
61            <td>
62              <select id="transition" name="transition">
63                <option tal:repeat="transition view/getTransitions"
64                        tal:attributes="value transition/name">
65                  <span tal:replace="transition/title">TRANSITIONTITLE</span>
66                </option>
67              </select>
68            </td>
69          </tr>
70
71        </tbody>
72      </table>
73
74      <div class="actionButtons" tal:condition="view/availableActions">
75        <input tal:repeat="action view/actions"
76               tal:replace="structure action/render"
77               />
78      </div>
79    </div>
80
81    <div id="tab-2">
82      <h2>Upload passport picture</h2>
83      <table class="form-fields zebra">
84        <tbody>
85          <tal:files content="structure provider:files" />
86        </tbody>
87      </table>
88    </div>
89  </div>
90</form>
Note: See TracBrowser for help on using the repository browser.