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

Last change on this file since 7055 was 6756, checked in by uli, 13 years ago

Merge changes from uli-studentpw back into trunk.

File size: 5.0 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"  class="edit-form" enctype="multipart/form-data">
2  <h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
3  <div class="form-status"  tal:define="status view/status"  tal:condition="status"> Form Status:
4    <span i18n:translate="" tal:content="view/status"> Form status summary
5    </span>
6  </div>
7  <div id="tabs">
8    <ul>
9      <li>
10      <a href="#tab-1">
11        <span>Settings
12        </span></a>
13      </li>
14      <li>
15      <a href="#tab-2">
16        <span>Applicants
17        </span></a>
18      </li>
19      <li>
20      <a href="#tab-3">
21        <span>Local Roles
22        </span></a>
23      </li>
24    </ul>
25    <div id="tab-1">
26      <table class="zebra">
27        <tbody>
28          <tal:block repeat="widget view/widgets">
29            <tr>
30              <td class="label">
31                <label tal:attributes="for widget/name">
32                  <span class="required" tal:condition="widget/required">*
33                  </span>
34                  <span i18n:translate="" tal:content="widget/label">label
35                  </span>:
36                </label> </td>
37              <td class="field">
38                <span class="widget" tal:content="structure widget">
39                  <input type="text" />
40                </span>
41                <tal:error tal:condition="widget/error">
42                  <span tal:replace="structure widget/error">error
43                  </span>
44                </tal:error>
45                <tal:hint tal:condition="widget/hint">
46                  <span class="hint" tal:content="structure widget/hint">hint
47                  </span>
48                </tal:hint> </td>
49            </tr>
50          </tal:block>
51        </tbody>
52      </table>
53      <div class="actionButtons" tal:condition="view/availableActions">
54        <span tal:repeat="action view/actions" tal:omit-tag="">
55          <input tal:condition="python:action.label in view.taboneactions"  tal:replace="structure action/render"/>
56        </span>
57      </div>
58    </div>
59    <div id="tab-2"> <h3>Applicants</h3>
60      <table class="display dataTableManage">
61        <thead>
62          <tr>
63            <th>&nbsp;
64            </th>
65            <th>ID
66            </th>
67            <th>state
68            </th>
69          </tr>
70        </thead>
71        <tbody>
72          <tr tal:repeat="appl context/values"> <td>
73              <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" /> </td> <td>
74              <a tal:attributes="href python: view.url(appl)"  tal:content="appl/__name__"> ID </a> </td> <td>
75              <span tal:replace="appl/state">state
76              </span> </td>
77          </tr>
78        </tbody>
79      </table>
80      <div class="actionButtons" tal:condition="view/availableActions">
81        <span tal:repeat="action view/actions" tal:omit-tag="">
82          <input tal:condition="python:action.label in view.tabtwoactions"  tal:replace="structure action/render"/>
83        </span>
84      </div>
85    </div>
86    <div id="tab-3"> <br />
87      <table class="display dataTableManage">
88        <thead>
89          <tr>
90            <th>&nbsp;
91            </th>
92            <th>User Id
93            </th>
94            <th>Name
95            </th>
96            <th>Local Role
97            </th>
98          </tr>
99        </thead>
100        <tbody>
101          <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeB"> <td>
102              <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
103            <td tal:content="entry/user_name"> USERNAME  </td>
104            <td tal:content="entry/user_title"> USERTITLE  </td>
105            <td tal:content="entry/local_role_title"> LOCAL ROLE  </td>
106          </tr>
107        </tbody>
108      </table>
109      <div class="actionButtons" tal:condition="view/availableActions">
110        <span tal:repeat="action view/actions" tal:omit-tag="">
111          <input tal:condition="python:action.label in view.tabthreeactions1" tal:replace="structure action/render"/>
112        </span>
113      </div> <br /><br />
114      <table class="zebra">
115        <tr> <td>
116            <select id="user" name="user">
117              <option tal:repeat="user view/getUsers" tal:attributes="value user/name">
118              <span tal:replace="user/val/description">USERTITLE
119              </span>
120              </option>
121            </select> </td> <td>
122            <select id="local_role" name="local_role">
123              <option tal:repeat="localrole view/getLocalRoles" tal:attributes="value localrole/name">
124              <span tal:replace="localrole/title">LOCALROLETITLE
125              </span>
126              </option>
127            </select> </td> <td>
128            <div tal:condition="view/availableActions">
129              <span tal:repeat="action view/actions" tal:omit-tag="">
130                <input tal:condition="python:action.label in view.tabthreeactions2" tal:replace="structure action/render"/>
131              </span>
132            </div> </td>
133        </tr>
134      </table>
135    </div>
136  </div>
137</form>
Note: See TracBrowser for help on using the repository browser.