source: main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studycoursemanagepage.pt @ 7310

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

Use getStudent instead of traversing the ancestral line with try/except.

File size: 3.2 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>Study Course Data</span></a></li>
20  <li><a href="#tab-2"><span>Study Levels</span></a></li>
21</ul>
22   
23<div id="tab-1">        
24  <table class="zebra">
25  <tbody>
26  <tal:block repeat="widget view/widgets">
27    <tr>
28      <td class="label">
29        <label tal:attributes="for widget/name">
30          <span class="required" tal:condition="widget/required">*</span>
31          <span i18n:translate="" tal:content="widget/label">label</span>:
32        </label>
33      </td>
34      <td class="field">
35        <span class="widget" tal:content="structure widget">
36          <input type="text" />
37        </span>
38        <tal:error tal:condition="widget/error">
39          <span tal:replace="structure widget/error">error</span>
40        </tal:error>
41        <tal:hint tal:condition="widget/hint">
42          <span class="hint" tal:content="structure widget/hint">hint</span>
43        </tal:hint>
44      </td>
45    </tr>
46  </tal:block>
47  </tbody>
48  </table>
49  <div class="actionButtons" tal:condition="view/availableActions">
50    <span tal:repeat="action view/actions"
51          tal:omit-tag="">
52      <input tal:condition="python:action.label in view.taboneactions"
53             tal:replace="structure action/render"/>
54    </span>
55  </div>
56</div>   
57   
58<div id="tab-2">
59  <h3>Study Levels (Course Lists)</h3>
60  <table class="display dataTableManage">
61    <thead>
62      <tr>
63        <th>&nbsp;</th><th>Level Code</th><th>Level Title</th>
64      </tr>
65    </thead>
66    <tbody>
67      <tr tal:repeat="cl context/values">
68         <td>
69          <input type="checkbox"
70                 name="val_id"
71                 tal:attributes="value cl/__name__" />
72        </td>
73        <td> <a tal:attributes="href cl/__name__">
74          <span tal:content="cl/level">CODE</span></a>
75        </td>
76        <td>
77          <span tal:content="cl/level_title">TITLE</span>
78        </td>
79      </tr>
80    </tbody>
81  </table>
82
83  <div class="actionButtons" tal:condition="view/availableActions">
84    <span tal:repeat="action view/actions"
85          tal:omit-tag="">
86      <input tal:condition="python:action.label in view.tabtwoactions"
87             tal:replace="structure action/render"/>
88    </span>
89  </div>
90  <br /><br /><br />
91  <div>
92    <span class="actionButtons" tal:condition="view/availableActions">
93      <span tal:repeat="action view/actions"
94            tal:omit-tag="">
95        <input tal:condition="python:action.label in view.tabthreeactions"
96               tal:replace="structure action/render"/>
97      </span>
98    </span>
99    <select id="addlevel" name="addlevel">
100      <option tal:attributes="value level/code" tal:repeat="level view/level_dict">
101        <span tal:replace="level/title">LEVELTITLE
102      </span>
103      </option>
104    </select>
105  </div>
106
107
108
109</div>
110</div>
111</form> 
112
113
114
Note: See TracBrowser for help on using the repository browser.