1 | <metal:html tal:define="info context/getStudyCourseInfo; |
---|
2 | is_so context/isSectionOfficer; |
---|
3 | s_info context/getStudentInfo;" |
---|
4 | > |
---|
5 | <metal:body use-macro="here/waeup_content_master/macros/master"> |
---|
6 | <metal:block fill-slot="header"> |
---|
7 | <a href="" |
---|
8 | tal:attributes="href string:${here/academicsParent}"> |
---|
9 | <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> |
---|
10 | Up one level |
---|
11 | </a> |
---|
12 | <h3> |
---|
13 | <span tal:condition="python:is_so and s_info"> |
---|
14 | <span tal:content="s_info/student/Title" />: |
---|
15 | </span> |
---|
16 | <span tal:content="here/title_or_id" /> |
---|
17 | </h3> |
---|
18 | <br /> |
---|
19 | </metal:block> |
---|
20 | <metal:main fill-slot="main"> |
---|
21 | <span tal:omit-tag="" tal:condition="nothing" |
---|
22 | tal:content="structure python: info['doc'].render(layout_mode='view')" /> |
---|
23 | <table tal:define="sc python: s_info['course_doc']"> |
---|
24 | <tr> |
---|
25 | <td width="180px">Certificate:</td> |
---|
26 | <td><span tal:content="sc/title" /></td> |
---|
27 | </tr> |
---|
28 | <tr> |
---|
29 | <td>Certificate ID:</td> |
---|
30 | <td tal:content="sc/study_course" /> |
---|
31 | </tr> |
---|
32 | <span tal:define="f_id sc/faculty; |
---|
33 | d_id sc/department; |
---|
34 | f_title context/academics/?f_id/Title|string:Faculty not yet in Prospectus; |
---|
35 | d_title context/academics/?f_id/?d_id/Title|string:Department not yet in Prospectus" |
---|
36 | > |
---|
37 | <tr> |
---|
38 | <td>Faculty:</td> |
---|
39 | <td tal:content="f_title" /> |
---|
40 | </tr> |
---|
41 | <tr> |
---|
42 | <td>Department:</td> |
---|
43 | <td><span tal:content="d_title" /></td> |
---|
44 | </tr> |
---|
45 | </span> |
---|
46 | </table> |
---|
47 | |
---|
48 | <form action="" method="post" class="group" |
---|
49 | tal:attributes="action info/action" |
---|
50 | tal:define="rows python: info['items'];" |
---|
51 | > |
---|
52 | <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
53 | <tr tal:repeat="row rows" |
---|
54 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
55 | <td align="left" valign="middle" style="width: 5px;" |
---|
56 | tal:condition="python: 0 and is_so"> |
---|
57 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
58 | tal:condition="is_so" |
---|
59 | tal:define="id row/id" |
---|
60 | tal:attributes="value id; |
---|
61 | id python:'cb_' + id; |
---|
62 | checked python:id in info['choosen_ids'];" |
---|
63 | /> |
---|
64 | </td> |
---|
65 | <td><a href="view" tal:attributes="href string:${row/url}"> |
---|
66 | <strong tal:content="row/title" /></a> </td> |
---|
67 | </tr> |
---|
68 | </table> |
---|
69 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
70 | summary="contents of the folder" |
---|
71 | class="folderButtons"> |
---|
72 | <tr> |
---|
73 | <td align="left" valign="top" rowspan="3"></td> |
---|
74 | <td align="left" valign="top"> |
---|
75 | <span tal:condition="python:0 and is_so"> |
---|
76 | <input type="button" value="button_select_all" class="context" |
---|
77 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
78 | i18n:attributes="value" |
---|
79 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
80 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
81 | /> |
---|
82 | <input type="submit" name="folder_delete:method" value="button_delete" |
---|
83 | class="destructive" i18n:attributes="value" |
---|
84 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
85 | (cpsmcat('description_confirm_delete'), )" |
---|
86 | /> |
---|
87 | </span> |
---|
88 | </td> |
---|
89 | </tr> |
---|
90 | </table> |
---|
91 | </form> |
---|
92 | </metal:main> |
---|
93 | |
---|
94 | <metal:sub fill-slot="sub"/> |
---|
95 | </metal:body> |
---|
96 | </metal:html> |
---|