source: main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt @ 6107

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

Rename views and page templates according to the convention in the university package.

File size: 3.5 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  <div class="form-status"
9    tal:define="status view/status"
10    tal:condition="status">
11
12    <div i18n:translate="" tal:content="view/status">
13      Form status summary
14    </div>
15
16    <ul class="errors" tal:condition="view/errors">
17      <li tal:repeat="error view/error_views">
18         <span tal:replace="structure error">Error Type</span>
19      </li>
20    </ul>
21  </div>
22
23  <div id="tabs">
24    <ul>
25      <li><a href="#tab-1"><span>Settings</span></a></li>
26      <li><a href="#tab-2"><span>Applicants</span></a></li>
27    </ul>
28    <div id="tab-1">
29        <table class="zebra">
30                <tbody>
31                  <tal:block repeat="widget view/widgets">
32                    <tr>
33                      <td class="label" tal:define="hint widget/hint">
34                        <label tal:condition="python:hint"
35                               tal:attributes="for widget/name">
36                          <span class="required" tal:condition="widget/required"
37                                >*</span><span i18n:translate=""
38                                tal:content="widget/label">label</span>
39                        </label>
40                        <label tal:condition="python:not hint"
41                               tal:attributes="for widget/name">
42                          <span class="required" tal:condition="widget/required"
43                                >*</span><span i18n:translate=""
44                                tal:content="widget/label">label</span>
45                        </label>
46                      </td>
47                      <td class="field">
48                        <div class="widget" tal:content="structure widget">
49                          <input type="text" />
50                        </div>
51                        <div class="error" tal:condition="widget/error">
52                          <span tal:replace="structure widget/error">error</span>
53                        </div>
54                      </td>
55                    </tr>
56                  </tal:block>
57                </tbody>
58        </table>
59        <div id="actionsView">
60            <span class="actionButtons" tal:condition="view/availableActions">
61                <span tal:repeat="action view/actions"
62                      tal:omit-tag="">
63                  <input tal:condition="python:action.label in view.taboneactions"
64                         tal:replace="structure action/render"/>
65                </span>
66            </span>
67        </div>
68    </div>
69    <div id="tab-2">
70      <h3>Applicants</h3>
71      <table id="datatable" class="display">
72        <thead>
73          <tr>
74            <th>ID</th><th>status</th>
75          </tr>
76        </thead>
77        <tbody>
78          <tr tal:repeat="appl context/values">
79            <td>
80              <input type="checkbox"
81                         name="val_id"
82                         tal:attributes="value appl/_name_" />
83            </td>
84            <td>
85              <a tal:attributes="href python: view.url(appl)"
86                      tal:content="appl/__name__">
87                      ID
88              </a>
89            </td>
90            <td>
91              <span tal:condition="not: appl/locked">in progress</span>
92              <span tal:condition="appl/locked">submitted</span>
93            </td>
94          </tr>
95        </tbody>
96    </table>
97    <div id="actionsView">
98        <span class="actionButtons" tal:condition="view/availableActions">
99            <span tal:repeat="action view/actions"
100                  tal:omit-tag="">
101              <input tal:condition="python:action.label in view.tabtwoactions"
102                     tal:replace="structure action/render"/>
103            </span>
104        </span>
105    </div>
106    </div>
107  </div>
108</form>
Note: See TracBrowser for help on using the repository browser.