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

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

Define two different (convenience?) methods: fullname and display_fullname. The first one is a hyphen-separated string of all name parts and is meant for indexing only. The second one uses the SIRPUtils fullname method and is meant for displaying the fullname in the UI. It can be easily customized according to the requirements of the school.

File size: 5.6 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"
56                 tal:replace="structure action/render"/>
57        </span>
58      </div>
59    </div>
60    <div id="tab-2"> <h3>Applicants</h3>
61      <table class="display dataTableManage">
62        <thead>
63          <tr>
64            <th>&nbsp;
65            </th>
66            <th>Application Number
67            </th>
68            <th>Full Name
69            </th>
70            <th>First Choice
71            </th>
72            <th>Application State
73            </th>
74          </tr>
75        </thead>
76        <tbody>
77          <tr tal:repeat="appl context/values">
78            <td>
79              <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" />
80            </td>
81            <td>
82              <a tal:attributes="href python: view.url(appl)"
83                 tal:content="appl/__name__"> Number </a>
84            </td>
85            <td>
86              <span tal:replace="appl/display_fullname">Fullname
87              </span>
88            </td>
89            <td>
90              <span tal:replace="appl/course1/code|nothing">First Choice
91              </span>
92            </td>
93            <td>
94              <span tal:replace="appl/state">State
95              </span>
96            </td>
97          </tr>
98        </tbody>
99      </table>
100      <div class="actionButtons" tal:condition="view/availableActions">
101        <span tal:repeat="action view/actions" tal:omit-tag="">
102          <input tal:condition="python:action.label in view.tabtwoactions"
103                 tal:replace="structure action/render"/>
104        </span>
105      </div>
106    </div>
107    <div id="tab-3"> <br />
108      <table class="display dataTableManage">
109        <thead>
110          <tr>
111            <th>&nbsp;
112            </th>
113            <th>User Id
114            </th>
115            <th>Name
116            </th>
117            <th>Local Role
118            </th>
119          </tr>
120        </thead>
121        <tbody>
122          <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeB"> <td>
123              <input type="checkbox" name="role_id"
124                tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
125            <td tal:content="entry/user_name"> USERNAME  </td>
126            <td tal:content="entry/user_title"> USERTITLE  </td>
127            <td tal:content="entry/local_role_title"> LOCAL ROLE  </td>
128          </tr>
129        </tbody>
130      </table>
131      <div class="actionButtons" tal:condition="view/availableActions">
132        <span tal:repeat="action view/actions" tal:omit-tag="">
133          <input tal:condition="python:action.label in view.tabthreeactions1"
134                  tal:replace="structure action/render"/>
135        </span>
136      </div> <br /><br />
137      <table class="zebra">
138        <tr> <td>
139            <select id="user" name="user">
140              <option tal:repeat="user view/getUsers"
141                      tal:attributes="value user/name">
142              <span tal:replace="user/val/title">USERTITLE
143              </span>
144              </option>
145            </select> </td> <td>
146            <select id="local_role" name="local_role">
147              <option tal:repeat="localrole view/getLocalRoles"
148                      tal:attributes="value localrole/name">
149              <span tal:replace="localrole/title">LOCALROLETITLE
150              </span>
151              </option>
152            </select> </td> <td>
153            <div tal:condition="view/availableActions">
154              <span tal:repeat="action view/actions" tal:omit-tag="">
155                <input tal:condition="python:action.label in view.tabthreeactions2"
156                       tal:replace="structure action/render"/>
157              </span>
158            </div> </td>
159        </tr>
160      </table>
161    </div>
162  </div>
163</form>
Note: See TracBrowser for help on using the repository browser.