source: main/waeup.kofa/branches/0.2/src/waeup/kofa/students/browser_templates/studycoursemanagepage.pt @ 11476

Last change on this file since 11476 was 10266, checked in by Henrik Bettermann, 11 years ago

Define correct dictionaries. level_dict must include probation levels.

Add buttons for navigating to transcripts.

Add property attribute 'transcript_enabled' which eases defining conditions in custom packages.

File size: 3.1 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2      i18n:domain="waeup.kofa" enctype="multipart/form-data">
3
4  <ul class="tabs" data-tabs="tabs">
5    <li tal:attributes="class view/tab1"><a href="#tab-1">
6      <span i18n:translate="">Study Course Data</span></a>
7    </li>
8    <li tal:attributes="class view/tab2"><a href="#tab-2">
9      <span i18n:translate="">Study Levels</span></a>
10    </li>
11  </ul>
12
13  <div class="tab-content">
14    <div id="tab-1" tal:attributes="class view/tab1">
15      <table class="form-table">
16      <tbody>
17        <tal:widgets content="structure provider:widgets" />
18      </tbody>
19      </table>
20      <div tal:condition="view/availableActions">
21        <span tal:repeat="action view/actions"
22              tal:omit-tag="">
23          <input tal:condition="python:action.label in view.taboneactions"
24                 tal:replace="structure action/render"/>
25        </span>
26      </div>
27    </div>
28
29    <div id="tab-2" tal:attributes="class view/tab2">
30      <h3 i18n:translate="">Study Levels (Course Lists)</h3>
31      <table class="display dataTableManage">
32        <thead>
33          <tr>
34            <th>&nbsp;</th>
35            <th i18n:translate="">Level Code</th>
36            <th i18n:translate="">Level Title</th>
37          </tr>
38        </thead>
39        <tbody>
40          <tr tal:repeat="cl context/values">
41             <td>
42              <input type="checkbox"
43                         name="val_id"
44                         tal:attributes="value cl/__name__" />
45            </td>
46            <td> <a tal:attributes="href cl/__name__">
47              <span tal:content="cl/level">CODE</span></a>
48            </td>
49            <td>
50              <span tal:content="cl/level_title">TITLE</span>
51            </td>
52          </tr>
53        </tbody>
54      </table>
55
56      <div tal:condition="view/availableActions">
57        <span tal:repeat="action view/actions"
58              tal:omit-tag="">
59          <input tal:condition="python:action.label in view.tabtwoactions"
60                 tal:replace="structure action/render"/>
61        </span>
62      </div>
63      <br /><br /><br />
64      <div>
65        <span tal:condition="view/availableActions">
66          <span tal:repeat="action view/actions"
67                tal:omit-tag="">
68            <input tal:condition="python:action.label in view.tabthreeactions"
69                   tal:replace="structure action/render"/>
70          </span>
71        </span>
72        <select id="addlevel" name="addlevel" class='span5'>
73          <option tal:attributes="value level/code" tal:repeat="level view/level_dicts">
74            <span tal:replace="level/title">LEVELTITLE
75          </span>
76          </option>
77        </select>
78        &nbsp;&nbsp;<span i18n:translate="">in session</span>&nbsp;&nbsp;
79        <select id="level_session" name="level_session" class='span3'>
80          <option tal:attributes="value session/code" tal:repeat="session view/session_dicts">
81            <span tal:replace="session/title">LEVELSESSION
82          </span>
83          </option>
84        </select>
85      </div>
86    </div>
87  </div>
88</form> 
89
90
91
Note: See TracBrowser for help on using the repository browser.