source: WAeUP_SRP/trunk/skins/waeup_ois/study_course_view.pt @ 3728

Last change on this file since 3728 was 3727, checked in by Henrik Bettermann, 16 years ago
  • more customizations for OIS
  • fetch all student object titles from getStudentObjectTitles.py
File size: 5.7 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                      titles here/getStudentObjectTitles;">               
11    <a href=""
12       tal:attributes="href string:${here/academicsParent}">
13      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
14      Up one level
15    </a>
16    <h3>
17       <span tal:condition="python:is_so and info">
18         <span tal:content="info/student/name" />:
19       </span>
20       <span tal:content="titles/StudentStudyCourse" />
21    </h3>
22    <br /> 
23    <table tal:define="sc python: info['course_doc']">
24      <tr>
25        <td width="220px">Certificate Code:</td>
26        <td><span tal:content="info/doc/study_course" /></td>
27      </tr>
28      <tr>
29        <td width="220px">Current Session:</td>
30        <td><span tal:content="python:context.portal_vocabularies.sessions.get(info['doc'].current_session)" /></td>
31      </tr>
32      <tr>
33        <td width="220px">Current Study Level:</td>
34        <td><span tal:content="python:context.portal_vocabularies.student_levels.get(info['doc'].current_level)" /></td>
35      </tr>
36      <tr tal:condition="is_so">
37        <td width="220px">Current Study Mode:</td>
38        <td><span tal:content="python:context.portal_vocabularies.entry_modes.get(info['doc'].current_mode)" /></td>
39      </tr>       
40      <tr>
41        <td width="220px">Current Verdict:</td>
42        <td><span tal:content="info/verdict" /></td>
43      </tr>
44      <tr>
45        <td width="220px">Previous Verdict:</td>
46        <td><span tal:content="info/previous_verdict" /></td>
47      </tr>     
48      <span tal:define="f_id sc/faculty;
49        d_id sc/department;
50        c_id sc/study_course;
51        f_title context/academics/?f_id/Title|string:Faculty not yet in Prospectus;
52        d_title context/academics/?f_id/?d_id/Title|string:Department not yet in Prospectus;
53        c_title context/academics/?f_id/?d_id/certificates/?c_id/Title|string:Department not yet in Prospectus"
54        >
55      <tr>
56        <td width="220px">Certificate:</td>
57        <td tal:content="c_title" />
58      </tr>
59      <tr>
60        <td>Certificate Id:</td>
61        <td><span tal:content="sc/study_course" /></td>
62      </tr>
63        </span>
64      </table>       
65   
66    <form action="" method="post" class="group" onsubmit="return submit_once()"
67          tal:attributes="action info/action"
68          tal:define="rows python: info['items'];"
69          >
70      <span tal:condition="rows">
71     
72      <table  class="contentListing" width="100%" summary="content layout" id="folder_content">     
73        <tr tal:repeat="row rows"
74          tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
75          <td align="left" valign="middle" style="width: 5px;"
76              tal:condition="python:is_so">
77            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
78                   tal:condition="is_so"
79                   tal:define="id row/id"
80                   tal:attributes="value id;
81                   id python:'cb_' + id;
82                   checked python:id in info['choosen_ids'];"
83                   />
84          </td>
85          <td><a href="view"
86                 tal:attributes="href string:${row/url}">
87            <strong tal:content="row/title" /></a>
88          </td>
89        </tr>
90      </table>
91      </span>
92      <table width="100%" cellspacing="0" cellpadding="2"
93             summary="contents of the folder"
94             class="folderButtons">
95        <tr tal:condition="python: is_so and info['items']">
96          <td align="left" valign="top" rowspan="3"></td>
97          <td align="left" valign="top">
98            <input type="button" value="button_select_all" class="context"
99                     onclick="someJavaScriptFunctionThatWillBeReplaced"
100                     i18n:attributes="value"
101                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
102                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
103                     />
104            <input type="submit" name="level_delete:method" value="button_delete"
105                   class="destructive" i18n:attributes="value"
106                   tal:attributes="onclick python:'return window.confirm(\'%s\')' %
107                   (cpsmcat('description_confirm_delete'), )"
108                   />
109          </td>
110        </tr>
111      </table>
112    </form>
113    <form action="" method="post" class="group" onsubmit="return submit_once()"
114          tal:attributes="action string:${context/absolute_url}/create_level"
115          tal:define="rows python: info['items'];"
116          tal:condition="create_level"
117          >
118      <table width="100%" cellspacing="0" cellpadding="2"
119             summary="contents of the folder"
120             class="folderButtons">
121        <tr>
122          <td align="left" valign="top" rowspan="3"></td>
123          <td align="left" valign="top">
124            <input type="submit" name="create_level"
125                     class="destructive"
126                     tal:attributes="value string: Register Courses for ${info/create_level_str}"
127                     />
128          </td>
129        </tr>
130      </table>
131    </form> 
132   
133    <div tal:condition="info/missing_data">
134       <font color='red'>
135          Your department has not yet provided the results and verdict of the previous session.
136       </font>
137    </div>
138
139  </span>
140  </span>
141  </metal:main>
142</metal:body>
143
Note: See TracBrowser for help on using the repository browser.