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 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 | </span> |
---|
99 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
100 | summary="contents of the folder" |
---|
101 | class="folderButtons"> |
---|
102 | <tr tal:condition="python: is_so and info['items']"> |
---|
103 | <td align="left" valign="top" rowspan="3"></td> |
---|
104 | <td align="left" valign="top"> |
---|
105 | <input type="button" value="button_select_all" class="context" |
---|
106 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
107 | i18n:attributes="value" |
---|
108 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
109 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
110 | /> |
---|
111 | <input type="submit" name="level_delete:method" value="button_delete" |
---|
112 | class="destructive" i18n:attributes="value" |
---|
113 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
114 | (cpsmcat('description_confirm_delete'), )" |
---|
115 | /> |
---|
116 | </td> |
---|
117 | </tr> |
---|
118 | </table> |
---|
119 | </form> |
---|
120 | <form action="" method="post" class="group" onsubmit="return submit_once()" |
---|
121 | tal:attributes="action string:${context/absolute_url}/create_level" |
---|
122 | tal:define="rows python: info['items'];" |
---|
123 | tal:condition="create_level" |
---|
124 | > |
---|
125 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
126 | summary="contents of the folder" |
---|
127 | class="folderButtons"> |
---|
128 | <tr> |
---|
129 | <td align="left" valign="top" rowspan="3"></td> |
---|
130 | <td align="left" valign="top"> |
---|
131 | <input type="submit" name="create_level" |
---|
132 | class="destructive" |
---|
133 | tal:attributes="value string: Register Courses for ${info/create_level_str}" |
---|
134 | /> |
---|
135 | </td> |
---|
136 | </tr> |
---|
137 | </table> |
---|
138 | </form> |
---|
139 | |
---|
140 | <div tal:condition="info/missing_data"> |
---|
141 | <font color='red'> |
---|
142 | Your faculty has not yet provided the results and verdict of the previous session. |
---|
143 | </font> |
---|
144 | </div> |
---|
145 | |
---|
146 | </span> |
---|
147 | </span> |
---|
148 | </metal:main> |
---|
149 | </metal:body> |
---|
150 | |
---|