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

Last change on this file since 5045 was 3790, checked in by Henrik Bettermann, 16 years ago

urgent changes for OIS

payment at FUTMinna goes live

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