1 | <metal:html tal:define="info context/getFolderObjectsInfo; |
---|
2 | is_so info/is_sectionofficer;" |
---|
3 | > |
---|
4 | <metal:body use-macro="here/main_template/macros/master"> |
---|
5 | <metal:block fill-slot="header"> |
---|
6 | <a tal:condition="nothing" href="" |
---|
7 | tal:attributes="href string:${here/academicsParent}"> |
---|
8 | <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/> |
---|
9 | Up one level |
---|
10 | </a> |
---|
11 | <div class=""><span tal:repeat="crumb context/getBreadCrumbs"><a href="crumb" |
---|
12 | tal:attributes="href crumb/url" |
---|
13 | tal:content="crumb/title"></a> |
---|
14 | <span tal:condition="not: repeat/crumb/end">></span> |
---|
15 | </span> |
---|
16 | </div> |
---|
17 | <h3 tal:content="info/doc/LongTitle|here/title_or_id" /> |
---|
18 | <br /> |
---|
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 | <span tal:condition="python: 0" tal:content="structure rows" /> |
---|
29 | <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> |
---|
30 | <tr tal:repeat="row rows" |
---|
31 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
---|
32 | <td align="left" valign="middle" style="width: 5px;" |
---|
33 | tal:condition="is_so"> |
---|
34 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
35 | tal:condition="is_so" |
---|
36 | tal:define="id row/id" |
---|
37 | tal:attributes="value id; |
---|
38 | id python:'cb_' + id; |
---|
39 | checked python:id in info['choosen_ids'];" |
---|
40 | /> |
---|
41 | </td> |
---|
42 | <td><a href="view" tal:attributes="href string:${row/url}"> |
---|
43 | <strong tal:content="row/title" /></a> </td> |
---|
44 | <td tal:content="row/id"> </td> |
---|
45 | |
---|
46 | <td> |
---|
47 | <a tal:condition="row/is_editable" |
---|
48 | href="edit" tal:attributes="href string:${row/url}/external_edit_form" |
---|
49 | target="edit" |
---|
50 | onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"> |
---|
51 | [edit] |
---|
52 | </a> |
---|
53 | </td> |
---|
54 | |
---|
55 | </tr> |
---|
56 | </table> |
---|
57 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
58 | summary="contents of the folder" |
---|
59 | class="folderButtons"> |
---|
60 | <tr> |
---|
61 | <td align="left" valign="top" rowspan="3"></td> |
---|
62 | <td align="left" valign="top"> |
---|
63 | <span tal:condition="is_so"> |
---|
64 | <input type="button" value="button_select_all" class="context" |
---|
65 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
66 | i18n:attributes="value" |
---|
67 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
68 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" |
---|
69 | /> |
---|
70 | <input type="submit" name="folder_delete:method" value="button_delete" |
---|
71 | class="destructive" i18n:attributes="value" |
---|
72 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
73 | (cpsmcat('description_confirm_delete'), )" |
---|
74 | /> |
---|
75 | <input tal:condition="python: context.portal_type not in ('Semester','Certificate')" |
---|
76 | type="submit" name="id_rename_form:method" |
---|
77 | class="context" value="Change Object ID" i18n:attributes="value" |
---|
78 | /> |
---|
79 | </span> |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | </table> |
---|
83 | </form> |
---|
84 | </metal:main> |
---|
85 | |
---|
86 | <metal:sub fill-slot="sub"/> |
---|
87 | </metal:body> |
---|
88 | </metal:html> |
---|