source: WAeUP_SRP/trunk/skins/waeup_futminna/study_course_view.pt @ 8794

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

Use LongTitle? of faculty and department.

File size: 6.4 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:condition="info/is_student">
21          My
22       </span>       
23       <span tal:content="titles/StudentStudyCourse" />
24    </h3>
25    <br /> 
26    <table tal:define="sc python: info['course_doc']">
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 Verdict:</td>
37        <td><span tal:content="info/verdict" /></td>
38      </tr>
39      <tr>
40        <td width="220px">Previous Verdict:</td>
41        <td><span tal:content="info/previous_verdict" /></td>
42      </tr>     
43      <span tal:define="f_id sc/faculty;
44        d_id sc/department;
45        c_id sc/study_course;
46        f_title context/academics/?f_id/LongTitle|string:Faculty not yet in Prospectus;
47        d_title context/academics/?f_id/?d_id/LongTitle|string:Department not yet in Prospectus;
48        c_title context/academics/?f_id/?d_id/certificates/?c_id/Title|string:Department not yet in Prospectus"
49        >
50      <tr>
51        <td width="220px">Certificate:</td>
52        <td tal:content="c_title" />
53      </tr>
54      <tr>
55        <td>Certificate Id:</td>
56        <td><span tal:content="sc/study_course" /></td>
57      </tr>
58          <tr>
59            <td>Faculty:</td>
60            <td tal:content="f_title" />
61          </tr>
62          <tr>
63            <td>Department:</td>
64            <td><span tal:content="d_title" /></td>
65          </tr>
66        </span>
67      </table>       
68   
69    <form action="" method="post" class="group" onsubmit="return submit_once()"
70          tal:attributes="action info/action"
71          tal:define="rows python: info['items'];"
72          >
73      <span tal:condition="rows">
74     
75      <table  class="contentListing" width="100%" summary="content layout" id="folder_content">     
76        <tr tal:repeat="row rows"
77          tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
78          <td align="left" valign="middle" style="width: 5px;"
79              tal:condition="python:is_so">
80            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
81                   tal:condition="is_so"
82                   tal:define="id row/id"
83                   tal:attributes="value id;
84                   id python:'cb_' + id;
85                   checked python:id in info['choosen_ids'];"
86                   />
87          </td>
88          <td><a href="view"
89                 tal:attributes="href string:${row/url}">
90            <strong tal:content="row/title" /></a>
91          </td>
92        </tr>
93      </table>
94      </span>
95      <table width="100%" cellspacing="0" cellpadding="2"
96             summary="contents of the folder"
97             class="folderButtons">
98        <tr tal:condition="python: is_so and info['items']">
99          <td align="left" valign="top" rowspan="3"></td>
100          <td align="left" valign="top">
101            <input type="button" value="button_select_all" class="context"
102                     onclick="someJavaScriptFunctionThatWillBeReplaced"
103                     i18n:attributes="value"
104                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
105                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
106                     />
107            <input type="submit" name="level_delete:method" value="button_delete"
108                   class="destructive" i18n:attributes="value"
109                   tal:attributes="onclick python:'return window.confirm(\'%s\')' %
110                   (cpsmcat('description_confirm_delete'), )"
111                   />
112          </td>
113        </tr>
114      </table>
115    </form>
116    <form action="" method="post" class="group" onsubmit="return submit_once()"
117          tal:attributes="action string:${context/absolute_url}/create_level"
118          tal:define="rows python: info['items'];"
119          tal:condition="create_level"
120          >
121      <table width="100%" cellspacing="0" cellpadding="2"
122             summary="contents of the folder"
123             class="folderButtons">
124        <tr>
125          <td align="left" valign="top" rowspan="3"></td>
126          <td align="left" valign="top">
127            <input type="submit" name="create_level"
128                     class="destructive"
129                     tal:attributes="value string: Register Courses for ${info/create_level_str}"
130                     />
131          </td>
132        </tr>
133      </table>
134    </form> 
135
136    <form action="" method="post" class="group" onsubmit="return submit_once()"
137          tal:attributes="action string:${context/absolute_url}/create_level_101"
138          tal:define="rows python: info['items'];"
139          tal:condition="info/may_register_101"
140          >
141      <table width="100%" cellspacing="0" cellpadding="2"
142             summary="contents of the folder"
143             class="folderButtons">
144        <tr>
145          <td align="left" valign="top" rowspan="3"></td>
146          <td align="left" valign="top">
147            <input type="submit" name="create_level"
148                     class="destructive"
149                     tal:attributes="value string: Register 100L Carryover Courses"
150                     />
151          </td>
152        </tr>
153      </table>
154    </form>
155   
156    <div tal:condition="info/missing_data">
157       <font color='red'>
158          Your faculty has not yet provided the results and verdict of the previous session.
159       </font>
160    </div>
161
162  </span>
163  </span>
164  </metal:main>
165</metal:body>
166
Note: See TracBrowser for help on using the repository browser.