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