source: WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt @ 1493

Last change on this file since 1493 was 1482, checked in by joachim, 18 years ago

add course registration.
The Link to the study_level is disabled in study_course_view.pt,
but can be invoked manually. On first invocation the courses are created.

  • Property svn:keywords set to Id
File size: 5.2 KB
Line 
1<metal:html>
2  <metal:body use-macro="here/waeup_content_master/macros/master">
3    <metal:block fill-slot="header"
4                 tal:define="global info context/getStudyLevelInfo;
5                 global is_so context/isSectionOfficer;"
6                 >
7      <a href=""
8         tal:attributes="href string:${here/academicsParent}">
9        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
10        Up one level
11      </a>
12      <h3>
13        <span tal:condition="is_so">
14          <span tal:content="info/student/name" />:
15        </span>
16        <span tal:content="here/title_or_id" />
17      </h3>
18      <br />
19    </metal:block>
20    <metal:main fill-slot="main" tal:condition="python:1">
21      <form action="add_course_result" method="post" class="group">
22        <h3>Add a course</h3>
23        <table>
24          <tr>
25            <th>Course Id</th>
26            <td><input type="text" name="course_id"
27                       tal:attributes="value request/course_id|nothing"/></td>
28            <td tal:condition="request/error|nothing"
29                tal:content="request/error" />
30          </tr>
31          <tr>
32            <th></th>
33            <td colspan="2">
34              <input type="submit" name="add"
35                     class="context" value="Add Course"
36                     />
37            </td>
38          </tr>
39        </table>
40      </form>   
41      <form action="." method="post" class="group">
42        <h3>Carryover Courses</h3>
43        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
44          <tr tal:repeat="row info/carry_overs"
45              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
46            <td align="left" valign="middle" style="width: 5px;">
47              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
48                     tal:define="id row/code"
49                     tal:attributes="value id;
50                     id python:'cb_' + id;
51                     checked python:id in info['choosen_ids'];"
52                     />
53            </td>
54            <td width="80%" tal:content="row/title"></td>
55            <td width="8%" tal:content="row/code"></td>
56            <td width="2%" tal:content="row/semester"></td>
57            <td width="2%" tal:content="row/credits"></td>
58            <td width="8%" tal:content="row/grade|string:"></td>
59          </tr>
60        </table>
61        <h3>Session Courses</h3>
62        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
63          <tr tal:repeat="row info/normal"
64              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
65            <td align="left" valign="middle" style="width: 5px;">
66              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
67                     tal:define="id row/code"
68                     tal:attributes="value id;
69                     id python:'cb_' + id;
70                     checked python:id in info['choosen_ids'];"
71                     />
72            </td>
73            <td width="80%" tal:content="row/title"></td>
74            <td width="8%" tal:content="row/code"></td>
75            <td width="2%" tal:content="row/semester"></td>
76            <td width="2%" tal:content="row/credits"></td>
77            <td width="8%" tal:content="row/coe|nothing"></td>
78          </tr>
79          <tr>
80            <td colspan="1"></td>
81            <th colspan="3">Total credits</th>
82            <td width="8%" tal:content="info/credits_total"></td>
83          </tr>
84        </table>
85        <table width="100%" cellspacing="0" cellpadding="2"
86               class="folderButtons">
87          <tr>
88            <td align="left" valign="top" rowspan="3"></td>
89            <td align="left" valign="top">
90              <span tal:condition="python:1">
91                <input type="button" value="button_select_all" class="context"
92                       onclick="someJavaScriptFunctionThatWillBeReplaced"
93                       i18n:attributes="value"
94                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
95                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
96                       />
97                <input tal:condition="python:0" type="submit" name="register_checked:method"
98                       class="context" value="Register" />
99                <input tal:condition="python:0" type="submit" name="retract_checked:method"
100                       class="context" value="Retract" />
101                <input type="submit" name="course_result_delete:method" value="button_delete"
102                       class="destructive" i18n:attributes="value"
103                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
104                       (cpsmcat('description_confirm_delete'), )"
105                       />
106                <input tal:condition="python: 0"
107                       type="submit" name="id_rename_form:method"
108                       class="context" value="Change Object ID" i18n:attributes="value"
109                       />
110              </span>
111            </td>
112          </tr>
113        </table>
114      </form>
115    </metal:main>
116  </metal:body>
117</metal:html>
118 
Note: See TracBrowser for help on using the repository browser.