[723] | 1 | <metal:html tal:define="info context/getStudyCourseInfo; |
---|
[913] | 2 | is_so context/isSectionOfficer; |
---|
[740] | 3 | s_info context/getStudentInfo;" |
---|
[723] | 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> |
---|
[740] | 12 | <h3> |
---|
[911] | 13 | <span tal:condition="python:is_so and s_info"> |
---|
[740] | 14 | <span tal:content="s_info/student/Title" />: |
---|
| 15 | </span> |
---|
| 16 | <span tal:content="here/title_or_id" /> |
---|
| 17 | </h3> |
---|
[772] | 18 | <br /> |
---|
[723] | 19 | </metal:block> |
---|
| 20 | <metal:main fill-slot="main"> |
---|
| 21 | <span tal:omit-tag="" |
---|
| 22 | tal:content="structure python: info['doc'].render(layout_mode='view')" /> |
---|
| 23 | |
---|
| 24 | <form action="" method="post" class="group" |
---|
| 25 | tal:attributes="action info/action" |
---|
| 26 | tal:define="rows python: info['items'];" |
---|
| 27 | > |
---|
| 28 | <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
| 29 | <tr tal:repeat="row rows" |
---|
| 30 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
| 31 | <td align="left" valign="middle" style="width: 5px;" |
---|
[911] | 32 | tal:condition="python: 0 and is_so"> |
---|
[723] | 33 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
[911] | 34 | tal:condition="is_so" |
---|
[723] | 35 | tal:define="id row/id" |
---|
| 36 | tal:attributes="value id; |
---|
| 37 | id python:'cb_' + id; |
---|
| 38 | checked python:id in info['choosen_ids'];" |
---|
| 39 | /> |
---|
| 40 | </td> |
---|
| 41 | <td><a href="view" tal:attributes="href string:${row/url}"> |
---|
| 42 | <strong tal:content="row/title" /></a> </td> |
---|
| 43 | </tr> |
---|
| 44 | </table> |
---|
| 45 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
| 46 | summary="contents of the folder" |
---|
| 47 | class="folderButtons"> |
---|
| 48 | <tr> |
---|
| 49 | <td align="left" valign="top" rowspan="3"></td> |
---|
| 50 | <td align="left" valign="top"> |
---|
[911] | 51 | <span tal:condition="python:0 and is_so"> |
---|
[723] | 52 | <input type="button" value="button_select_all" class="context" |
---|
| 53 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
| 54 | i18n:attributes="value" |
---|
| 55 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
| 56 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
| 57 | /> |
---|
| 58 | <input type="submit" name="folder_delete:method" value="button_delete" |
---|
| 59 | class="destructive" i18n:attributes="value" |
---|
| 60 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 61 | (cpsmcat('description_confirm_delete'), )" |
---|
| 62 | /> |
---|
| 63 | </span> |
---|
| 64 | </td> |
---|
| 65 | </tr> |
---|
| 66 | </table> |
---|
| 67 | </form> |
---|
| 68 | </metal:main> |
---|
| 69 | |
---|
| 70 | <metal:sub fill-slot="sub"/> |
---|
| 71 | </metal:body> |
---|
| 72 | </metal:html> |
---|