1 | <metal:html tal:define="display_change request/change_display|nothing; |
---|
2 | params here/getDisplayParams; |
---|
3 | sort_by params/sort_by; |
---|
4 | direction params/direction; |
---|
5 | format string:detail_tab; |
---|
6 | displayed python:request.get('displayed', None); |
---|
7 | display_buttons context/academics_contents_display_buttons; |
---|
8 | "> |
---|
9 | |
---|
10 | <metal:body use-macro="here/content_lib_master/macros/master"> |
---|
11 | |
---|
12 | <metal:header metal:fill-slot="header"> |
---|
13 | <h3 tal:content="here/LongTitle|here/title_or_id"> |
---|
14 | Page Title |
---|
15 | </h3> |
---|
16 | <div tal:condition="nothing" id="bylineFolder" |
---|
17 | class="ddefault"> |
---|
18 | <small> |
---|
19 | <span metal:use-macro="here/content_lib_byline/macros/byline">By Me</span> |
---|
20 | </small> |
---|
21 | </div> |
---|
22 | <a href="" accesskey="V" |
---|
23 | style="display:none" |
---|
24 | tal:attributes="href string:${context_url}/"></a> |
---|
25 | <a href="" accesskey="N" |
---|
26 | style="display:none" |
---|
27 | tal:attributes="href string:${context_url}/folder_factories"></a> |
---|
28 | </metal:header> |
---|
29 | |
---|
30 | <metal:main fill-slot="javascript_head_slot"> |
---|
31 | <tal:block tal:replace="nothing"> |
---|
32 | XXX Deactivated for CPS 3.4.0, will be re-enabled for 3.4.1 |
---|
33 | <script type="text/javascript" src="prototype.js" |
---|
34 | tal:attributes="src string:${base_url}prototype.js"></script> |
---|
35 | <script type="text/javascript" src="effects.js" |
---|
36 | tal:attributes="src string:${base_url}effects.js"></script> |
---|
37 | <script type="text/javascript" src="dragdrop.js" |
---|
38 | tal:attributes="src string:${base_url}dragdrop.js"></script> |
---|
39 | <script type="text/javascript" src="cpsdefault.js" |
---|
40 | tal:attributes="src string:${base_url}cpsdefault.js"></script> |
---|
41 | </tal:block> |
---|
42 | </metal:main> |
---|
43 | |
---|
44 | <metal:main fill-slot="main" |
---|
45 | tal:define="list_here python:checkPerm('List folder contents', here);"> |
---|
46 | <div tal:condition="not: list_here" |
---|
47 | tal:define="response request/RESPONSE;url here_url;"> |
---|
48 | <span tal:define="redirect python: response.redirect(url)"></span> |
---|
49 | </div> |
---|
50 | <span tal:omit-tag="" tal:condition="python:display_buttons or (context.portal_type in ('Certificate',))" |
---|
51 | tal:content="structure doc/render" /> |
---|
52 | |
---|
53 | <form action="" method="post" class="group" |
---|
54 | tal:attributes="action here_url" |
---|
55 | tal:define="no_form python:not checkPerm('Modify portal content', here); |
---|
56 | |
---|
57 | nav_action string:folder_contents; |
---|
58 | items python:here.getFolderContents(displayed=displayed);"> |
---|
59 | |
---|
60 | <metal:block use-macro="here/academics_content_lib_display_contents/macros/display_contents" /> |
---|
61 | |
---|
62 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
63 | summary="contents of the folder" |
---|
64 | class="folderButtons" |
---|
65 | tal:define="can_add python:checkPerm('Add portal content', here); |
---|
66 | can_del python:checkPerm('Delete objects', here); |
---|
67 | "> |
---|
68 | <tr> |
---|
69 | <td align="left" valign="top" rowspan="3"></td> |
---|
70 | <td align="left" valign="top"> |
---|
71 | <span tal:condition="display_buttons"> |
---|
72 | <span tal:condition="can_del"> |
---|
73 | <input type="button" value="button_select_all" class="context" |
---|
74 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
75 | i18n:attributes="value" |
---|
76 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
77 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" /> |
---|
78 | <span tal:omit-tag="" tal:condition="python: context.portal_type != 'Certificate'"> |
---|
79 | <input type="submit" name="approve_checked:method" |
---|
80 | class="context" value="Approve" /> |
---|
81 | <input type="submit" name="retract_checked:method" |
---|
82 | class="context" value="Retract" /> |
---|
83 | </span> |
---|
84 | <input type="submit" name="folder_delete:method" value="button_delete" |
---|
85 | class="destructive" i18n:attributes="value" |
---|
86 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
87 | (cpsmcat('description_confirm_delete'), )" /> |
---|
88 | <input tal:condition="python: context.portal_type not in ('Semester',)" |
---|
89 | type="submit" name="id_rename_form:method" |
---|
90 | class="context" value="Change Object ID" i18n:attributes="value" /> |
---|
91 | </span> |
---|
92 | </span> |
---|
93 | </td> |
---|
94 | </tr> |
---|
95 | </table> |
---|
96 | </form> |
---|
97 | </metal:main> |
---|
98 | |
---|
99 | <metal:sub fill-slot="sub"/> |
---|
100 | |
---|
101 | </metal:body> |
---|
102 | </metal:html> |
---|