source: main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/certificatemanagepage.pt @ 7443

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

Make local roles assignable in certificate containers.

File size: 5.5 KB
Line 
1<h2 i18n:translate=""
2tal:condition="view/label"
3tal:content="view/label">Label</h2>
4
5<div class="form-status"
6    tal:define="status view/status"
7    tal:condition="status">
8    Form Status:
9    <span i18n:translate="" tal:content="view/status">
10      Form status summary
11    </span>
12</div>
13
14<form action="." tal:attributes="action request/URL" method="POST"
15      class="edit-form" enctype="multipart/form-data">
16
17<div id="tabs">
18  <ul>
19    <li><a href="#tab-1"><span>Settings</span></a></li>
20    <li><a href="#tab-2"><span>Course Referrers</span></a></li>
21    <li><a href="#tab-3"><span>Local Roles</span></a></li>
22  </ul>
23   
24  <div id="tab-1">
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        </tbody>
49        </table>
50        <div class="actionButtons" tal:condition="view/availableActions">
51          <span tal:repeat="action view/actions"
52                tal:omit-tag="">
53            <input tal:condition="python:action.label in view.taboneactions"
54                   tal:replace="structure action/render"/>
55          </span>
56        </div>
57  </div>
58  <div id="tab-2">
59    <h3>Course Referrers</h3>
60    <table class="display dataTableManage">
61      <thead>
62        <tr>
63          <th>&nbsp;</th><th>Level</th><th>Semester</th><th>Referrer</th><th>Course</th><th>Title</th>
64          <th>Mandatory</th>
65        </tr>
66      </thead>
67      <tbody>
68        <tr tal:repeat="cc context/values">
69           <td>
70            <input type="checkbox"
71                 name="val_id"
72                 tal:attributes="value cc/__name__" />
73          </td>
74           <td>
75            <span tal:content="cc/level">
76           LEVEL
77            </span>
78          </td>
79          <td tal:content="cc/course/semester">SEMESTER</td>
80          <td>
81            <a tal:attributes="href python: view.url(cc)"
82             tal:content="cc/__name__">
83                REFERRER CODE
84            </a>
85          </td>
86          <td>
87            <a tal:attributes="href python:view.url(cc.course)"
88             tal:content="cc/course/code">
89                COURSE CODE
90            </a>
91          </td>
92          <td>
93            <span tal:content="cc/course/title">
94           COURSE TITLE
95            </span>
96          </td>
97          <td>
98            <span tal:content="cc/core_or_elective">
99           MANDATORY
100            </span>
101          </td>
102        </tr>
103      </tbody>
104    </table>
105    <div class="actionButtons" tal:condition="view/availableActions">
106      <span tal:repeat="action view/actions"
107            tal:omit-tag="">
108        <input tal:condition="python:action.label in view.tabtwoactions"
109               tal:replace="structure action/render"/>
110      </span>
111    </div>
112  </div>
113  <div id="tab-3"> <br />
114    <table class="display dataTableManage">
115      <thead>
116        <tr>
117          <th>&nbsp;
118          </th>
119          <th>User Id
120          </th>
121          <th>Name
122          </th>
123          <th>Local Role
124          </th>
125        </tr>
126      </thead>
127      <tbody>
128        <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeB"> <td>
129            <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
130          <td tal:content="entry/user_name"> USERNAME </td>
131          <td tal:content="entry/user_title"> USERTITLE </td>
132          <td tal:content="entry/local_role_title"> LOCAL ROLE </td>
133        </tr>
134      </tbody>
135    </table>
136    <div class="actionButtons" tal:condition="view/availableActions">
137      <span tal:repeat="action view/actions" tal:omit-tag="">
138        <input tal:condition="python:action.label in view.tabthreeactions1" tal:replace="structure action/render"/>
139      </span>
140    </div><br /><br />
141    <table class="zebra">
142      <tr> <td>
143          <select id="user" name="user">
144            <option tal:repeat="user view/getUsers" tal:attributes="value user/name">
145            <span tal:replace="user/val/title">USERTITLE
146            </span>
147            </option>
148          </select> </td> <td>
149          <select id="local_role" name="local_role">
150            <option tal:repeat="localrole view/getLocalRoles" tal:attributes="value localrole/name">
151            <span tal:replace="localrole/title">LOCALROLETITLE
152            </span>
153            </option>
154          </select> </td> <td>
155          <div tal:condition="view/availableActions">
156            <span tal:repeat="action view/actions" tal:omit-tag="">
157              <input tal:condition="python:action.label in view.tabthreeactions2" tal:replace="structure action/render"/>
158            </span>
159          </div> </td>
160      </tr>
161    </table>
162  </div>
163</div>
164</form> 
165
166
167
Note: See TracBrowser for help on using the repository browser.