[1783] | 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> |
---|
[3473] | 19 | Study Course |
---|
[1783] | 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> |
---|
[2632] | 33 | <td><span tal:content="python:context.portal_vocabularies.student_levels.get(info['doc'].current_level)" /></td> |
---|
[1783] | 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> |
---|
[2475] | 44 | <td width="220px">Previous Verdict:</td> |
---|
| 45 | <td><span tal:content="info/previous_verdict" /></td> |
---|
| 46 | </tr> |
---|
[2876] | 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 | > |
---|
[2475] | 54 | <tr> |
---|
[1783] | 55 | <td width="220px">Certificate:</td> |
---|
[2876] | 56 | <td tal:content="c_title" /> |
---|
[1783] | 57 | </tr> |
---|
| 58 | <tr> |
---|
| 59 | <td>Certificate Id:</td> |
---|
[2876] | 60 | <td><span tal:content="sc/study_course" /></td> |
---|
[1783] | 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 | > |
---|
[2490] | 77 | <span tal:condition="rows"> |
---|
| 78 | |
---|
| 79 | <table class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
[1783] | 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> |
---|
[1497] | 96 | </tr> |
---|
[1783] | 97 | </table> |
---|
[2490] | 98 | </span> |
---|
[1783] | 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 | /> |
---|
[2138] | 111 | <input type="submit" name="level_delete:method" value="button_delete" |
---|
[1783] | 112 | class="destructive" i18n:attributes="value" |
---|
| 113 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 114 | (cpsmcat('description_confirm_delete'), )" |
---|
| 115 | /> |
---|
| 116 | </td> |
---|
[1756] | 117 | </tr> |
---|
[1783] | 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"> |
---|
[1756] | 128 | <tr> |
---|
[1783] | 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" |
---|
[2989] | 133 | tal:attributes="value string: Register Courses for ${info/create_level_str}" |
---|
[1783] | 134 | /> |
---|
| 135 | </td> |
---|
[1497] | 136 | </tr> |
---|
[1783] | 137 | </table> |
---|
[2674] | 138 | </form> |
---|
| 139 | |
---|
[2678] | 140 | <div tal:condition="info/missing_data"> |
---|
[2674] | 141 | <font color='red'> |
---|
| 142 | Your faculty has not yet provided the results and verdict of the previous session. |
---|
| 143 | </font> |
---|
| 144 | </div> |
---|
[1783] | 145 | |
---|
| 146 | </span> |
---|
| 147 | </span> |
---|
| 148 | </metal:main> |
---|
| 149 | </metal:body> |
---|
| 150 | |
---|