[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> |
---|
| 19 | <span tal:content="here/title_or_id" /> |
---|
| 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> |
---|
[1989] | 33 | <td><span tal:content="python:context.portal_vocabularies.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> |
---|
| 44 | <td width="220px">Certificate:</td> |
---|
| 45 | <td><span tal:content="sc/title" /></td> |
---|
| 46 | </tr> |
---|
| 47 | <tr> |
---|
| 48 | <td>Certificate Id:</td> |
---|
| 49 | <td tal:content="sc/study_course" /> |
---|
| 50 | </tr> |
---|
| 51 | <span tal:define="f_id sc/faculty; |
---|
| 52 | d_id sc/department; |
---|
| 53 | f_title context/academics/?f_id/Title|string:Faculty not yet in Prospectus; |
---|
| 54 | d_title context/academics/?f_id/?d_id/Title|string:Department not yet in Prospectus" |
---|
| 55 | > |
---|
| 56 | <tr> |
---|
| 57 | <td>Faculty:</td> |
---|
| 58 | <td tal:content="f_title" /> |
---|
| 59 | </tr> |
---|
| 60 | <tr> |
---|
| 61 | <td>Department:</td> |
---|
| 62 | <td><span tal:content="d_title" /></td> |
---|
| 63 | </tr> |
---|
| 64 | </span> |
---|
| 65 | </table> |
---|
| 66 | |
---|
| 67 | <form action="" method="post" class="group" onsubmit="return submit_once()" |
---|
| 68 | tal:attributes="action info/action" |
---|
| 69 | tal:define="rows python: info['items'];" |
---|
| 70 | > |
---|
| 71 | <table tal:condition="python: 1" 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> |
---|
[1497] | 88 | </tr> |
---|
[1783] | 89 | </table> |
---|
| 90 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
| 91 | summary="contents of the folder" |
---|
| 92 | class="folderButtons"> |
---|
| 93 | <tr tal:condition="python: is_so and info['items']"> |
---|
| 94 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 95 | <td align="left" valign="top"> |
---|
| 96 | <input type="button" value="button_select_all" class="context" |
---|
| 97 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
| 98 | i18n:attributes="value" |
---|
| 99 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
| 100 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
| 101 | /> |
---|
[2138] | 102 | <input type="submit" name="level_delete:method" value="button_delete" |
---|
[1783] | 103 | class="destructive" i18n:attributes="value" |
---|
| 104 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 105 | (cpsmcat('description_confirm_delete'), )" |
---|
| 106 | /> |
---|
| 107 | </td> |
---|
[1756] | 108 | </tr> |
---|
[1783] | 109 | </table> |
---|
| 110 | </form> |
---|
| 111 | <form action="" method="post" class="group" onsubmit="return submit_once()" |
---|
| 112 | tal:attributes="action string:${context/absolute_url}/create_level" |
---|
| 113 | tal:define="rows python: info['items'];" |
---|
| 114 | tal:condition="create_level" |
---|
| 115 | > |
---|
| 116 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
| 117 | summary="contents of the folder" |
---|
| 118 | class="folderButtons"> |
---|
[1756] | 119 | <tr> |
---|
[1783] | 120 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 121 | <td align="left" valign="top"> |
---|
| 122 | <input type="submit" name="create_level" |
---|
| 123 | class="destructive" |
---|
| 124 | tal:attributes="onclick python:'return window.confirm(\'Do you really want to register for Level %s?\')' % create_level; |
---|
| 125 | value string: Register Courses for Level ${create_level}" |
---|
| 126 | /> |
---|
| 127 | <font color="red"> |
---|
| 128 | <br /><br /> |
---|
| 129 | Creating the course list may take several minutes. Please be patient, don't click twice! |
---|
| 130 | </font> |
---|
| 131 | </td> |
---|
[1497] | 132 | </tr> |
---|
[1783] | 133 | </table> |
---|
| 134 | </form> |
---|
| 135 | |
---|
| 136 | </span> |
---|
| 137 | </span> |
---|
| 138 | </metal:main> |
---|
| 139 | </metal:body> |
---|
| 140 | |
---|