source: WAeUP_SRP/base/skins/waeup_student/study_course_view.pt @ 2988

Last change on this file since 2988 was 2876, checked in by joachim, 17 years ago

simplyfied faster display of study_level

  • Property svn:keywords set to Id
File size: 6.1 KB
Line 
1<metal:body use-macro="here/main_template/macros/master">
2  <metal:main fill-slot="main"
3              tal:define="global info context/getStudyCourseInfo;">
4    <span tal:condition="not: info">
5      <span tal:content="here/illegal_view" />
6    </span>
7    <span tal:condition="info">
8    <span tal:define="create_level info/create_level|nothing;
9                      is_so info/is_so;">               
10    <a href=""
11       tal:attributes="href string:${here/academicsParent}">
12      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
13      Up one level
14    </a>
15    <h3>
16       <span tal:condition="python:is_so and info">
17         <span tal:content="info/student/name" />:
18       </span>
19      <span tal:content="here/title_or_id" />
20    </h3>
21    <br /> 
22    <table tal:define="sc python: info['course_doc']">
23      <tr>
24        <td width="220px">Certificate Code:</td>
25        <td><span tal:content="info/doc/study_course" /></td>
26      </tr>
27      <tr>
28        <td width="220px">Current Session:</td>
29        <td><span tal:content="python:context.portal_vocabularies.sessions.get(info['doc'].current_session)" /></td>
30      </tr>
31      <tr>
32        <td width="220px">Current Study Level:</td>
33        <td><span tal:content="python:context.portal_vocabularies.student_levels.get(info['doc'].current_level)" /></td>
34      </tr>
35      <tr>
36        <td width="220px">Current Study Mode:</td>
37        <td><span tal:content="python:context.portal_vocabularies.entry_modes.get(info['doc'].current_mode)" /></td>
38      </tr>       
39      <tr>
40        <td width="220px">Current Verdict:</td>
41        <td><span tal:content="info/verdict" /></td>
42      </tr>
43      <tr>
44        <td width="220px">Previous Verdict:</td>
45        <td><span tal:content="info/previous_verdict" /></td>
46      </tr>     
47      <span tal:define="f_id sc/faculty;
48        d_id sc/department;
49        c_id sc/study_course;
50        f_title context/academics/?f_id/Title|string:Faculty not yet in Prospectus;
51        d_title context/academics/?f_id/?d_id/Title|string:Department not yet in Prospectus;
52        c_title context/academics/?f_id/?d_id/certificates/?c_id/Title|string:Department not yet in Prospectus"
53        >
54      <tr>
55        <td width="220px">Certificate:</td>
56        <td tal:content="c_title" />
57      </tr>
58      <tr>
59        <td>Certificate Id:</td>
60        <td><span tal:content="sc/study_course" /></td>
61      </tr>
62          <tr>
63            <td>Faculty:</td>
64            <td tal:content="f_title" />
65          </tr>
66          <tr>
67            <td>Department:</td>
68            <td><span tal:content="d_title" /></td>
69          </tr>
70        </span>
71      </table>       
72   
73    <form action="" method="post" class="group" onsubmit="return submit_once()"
74          tal:attributes="action info/action"
75          tal:define="rows python: info['items'];"
76          >
77      <span tal:condition="rows">
78     
79      <table  class="contentListing" width="100%" summary="content layout" id="folder_content">     
80        <tr tal:repeat="row rows"
81          tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
82          <td align="left" valign="middle" style="width: 5px;"
83              tal:condition="python:is_so">
84            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
85                   tal:condition="is_so"
86                   tal:define="id row/id"
87                   tal:attributes="value id;
88                   id python:'cb_' + id;
89                   checked python:id in info['choosen_ids'];"
90                   />
91          </td>
92          <td><a href="view"
93                 tal:attributes="href string:${row/url}">
94            <strong tal:content="row/title" /></a>
95          </td>
96        </tr>
97      </table>
98      <br />
99      <font color="red">
100      Accessing the course list may take longer. Please be patient, don't click the level link twice!
101      </font>
102      </span>
103      <table width="100%" cellspacing="0" cellpadding="2"
104             summary="contents of the folder"
105             class="folderButtons">
106        <tr tal:condition="python: is_so and info['items']">
107          <td align="left" valign="top" rowspan="3"></td>
108          <td align="left" valign="top">
109            <input type="button" value="button_select_all" class="context"
110                     onclick="someJavaScriptFunctionThatWillBeReplaced"
111                     i18n:attributes="value"
112                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
113                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
114                     />
115            <input type="submit" name="level_delete:method" value="button_delete"
116                   class="destructive" i18n:attributes="value"
117                   tal:attributes="onclick python:'return window.confirm(\'%s\')' %
118                   (cpsmcat('description_confirm_delete'), )"
119                   />
120          </td>
121        </tr>
122      </table>
123    </form>
124    <form action="" method="post" class="group" onsubmit="return submit_once()"
125          tal:attributes="action string:${context/absolute_url}/create_level"
126          tal:define="rows python: info['items'];"
127          tal:condition="create_level"
128          >
129      <table width="100%" cellspacing="0" cellpadding="2"
130             summary="contents of the folder"
131             class="folderButtons">
132        <tr>
133          <td align="left" valign="top" rowspan="3"></td>
134          <td align="left" valign="top">
135            <input type="submit" name="create_level"
136                     class="destructive"
137                     tal:attributes="onclick python:'return window.confirm(\'Do you really want to register for Level %s?\')' % create_level;
138                     value string: Register Courses for ${info/create_level_str}"
139                     />
140          </td>
141        </tr>
142      </table>
143    </form> 
144   
145    <div tal:condition="info/missing_data">
146       <font color='red'>
147          Your faculty has not yet provided the results and verdict of the previous session.
148       </font>
149    </div>
150
151  </span>
152  </span>
153  </metal:main>
154</metal:body>
155
Note: See TracBrowser for help on using the repository browser.