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 | Study Course |
---|
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 | </span> |
---|
63 | </table> |
---|
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 | <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 faculty 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 | |
---|