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 | "> |
---|
8 | |
---|
9 | <metal:body use-macro="here/content_lib_master/macros/master"> |
---|
10 | |
---|
11 | <metal:header metal:fill-slot="header"> |
---|
12 | <h3 tal:content="here/LongTitle|here/title_or_id"> |
---|
13 | Page Title |
---|
14 | </h3> |
---|
15 | <div tal:condition="nothing" id="bylineFolder" |
---|
16 | class="ddefault"> |
---|
17 | <small> |
---|
18 | <span metal:use-macro="here/content_lib_byline/macros/byline">By Me</span> |
---|
19 | </small> |
---|
20 | </div> |
---|
21 | <a href="" accesskey="V" |
---|
22 | style="display:none" |
---|
23 | tal:attributes="href string:${context_url}/"></a> |
---|
24 | <a href="" accesskey="N" |
---|
25 | style="display:none" |
---|
26 | tal:attributes="href string:${context_url}/folder_factories"></a> |
---|
27 | <div style="text-align: right" tal:condition="python: False and (not here.isInWorkspace() or (here.isInWorkspace() and sort_by))"> |
---|
28 | <form action="" method="post" |
---|
29 | tal:attributes="action string:${here_url}/changeDisplayParams"> |
---|
30 | <p> |
---|
31 | <tal:block condition="python:not here.isInWorkspace()"> |
---|
32 | <metal:params use-macro="here/content_lib_display_params_form/macros/display_params_form" /> |
---|
33 | <input type="submit" value="button_apply" class="standalone" |
---|
34 | i18n:attributes="value" /> |
---|
35 | </tal:block> |
---|
36 | <tal:block condition="python:here.isInWorkspace() and sort_by"> |
---|
37 | <input type="hidden" name="display_order" value="None" /> |
---|
38 | <input type="submit" value="label_none" class="standalone" |
---|
39 | i18n:attributes="value" /> |
---|
40 | </tal:block> |
---|
41 | </p> |
---|
42 | </form> |
---|
43 | </div> |
---|
44 | </metal:header> |
---|
45 | |
---|
46 | <metal:main fill-slot="javascript_head_slot"> |
---|
47 | <tal:block tal:replace="nothing"> |
---|
48 | XXX Deactivated for CPS 3.4.0, will be re-enabled for 3.4.1 |
---|
49 | <script type="text/javascript" src="prototype.js" |
---|
50 | tal:attributes="src string:${base_url}prototype.js"></script> |
---|
51 | <script type="text/javascript" src="effects.js" |
---|
52 | tal:attributes="src string:${base_url}effects.js"></script> |
---|
53 | <script type="text/javascript" src="dragdrop.js" |
---|
54 | tal:attributes="src string:${base_url}dragdrop.js"></script> |
---|
55 | <script type="text/javascript" src="cpsdefault.js" |
---|
56 | tal:attributes="src string:${base_url}cpsdefault.js"></script> |
---|
57 | </tal:block> |
---|
58 | </metal:main> |
---|
59 | |
---|
60 | <metal:main fill-slot="main" |
---|
61 | tal:define="list_here python:checkPerm('List folder contents', here);"> |
---|
62 | |
---|
63 | <div tal:condition="not: list_here" |
---|
64 | tal:define="response request/RESPONSE;url here_url;"> |
---|
65 | <span tal:define="redirect python: response.redirect(url)"></span> |
---|
66 | </div> |
---|
67 | |
---|
68 | <form action="" method="post" class="group" |
---|
69 | tal:attributes="action here_url" |
---|
70 | tal:define="no_form python:not checkPerm('Modify portal content', here); |
---|
71 | |
---|
72 | nav_action string:folder_contents; |
---|
73 | items python:here.getFolderContents(displayed=displayed);"> |
---|
74 | |
---|
75 | <metal:block use-macro="here/academics_content_lib_display_contents/macros/display_contents" /> |
---|
76 | |
---|
77 | <table width="100%" cellspacing="0" cellpadding="2" |
---|
78 | summary="contents of the folder" |
---|
79 | class="folderButtons" |
---|
80 | tal:define="can_add python:checkPerm('Add portal content', here); |
---|
81 | can_del python:checkPerm('Delete objects', here);"> |
---|
82 | <tr> |
---|
83 | <td align="left" valign="top" rowspan="3"></td> |
---|
84 | <td align="left" valign="top"> |
---|
85 | <span tal:condition="items"> |
---|
86 | <input type="button" value="button_select_all" class="context" |
---|
87 | onclick="someJavaScriptFunctionThatWillBeReplaced" |
---|
88 | i18n:attributes="value" |
---|
89 | tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')' |
---|
90 | % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" /> |
---|
91 | </span> |
---|
92 | <span tal:condition="python: False and can_add"> |
---|
93 | <input type="submit" name="folder_cut:method" value="button_cut" |
---|
94 | class="context" i18n:attributes="value" |
---|
95 | tal:condition="can_del" /> |
---|
96 | <input type="submit" name="folder_copy:method" value="button_copy" |
---|
97 | class="context" i18n:attributes="value" /> |
---|
98 | </span> |
---|
99 | <span tal:condition="python:False and can_add and here.cb_dataValid()"> |
---|
100 | <input type="submit" name="folder_paste:method" value="button_paste" |
---|
101 | class="context" i18n:attributes="value" /> |
---|
102 | </span> |
---|
103 | <span tal:condition="can_del"> |
---|
104 | <input type="submit" name="approve_checked:method" |
---|
105 | class="context" value="Approve" /> |
---|
106 | <input type="submit" name="retract_checked:method" |
---|
107 | class="context" value="Retract" /> |
---|
108 | <input type="submit" name="folder_delete:method" value="button_delete" |
---|
109 | class="destructive" i18n:attributes="value" |
---|
110 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
111 | (cpsmcat('description_confirm_delete'), )" /> |
---|
112 | </span> |
---|
113 | </td> |
---|
114 | </tr> |
---|
115 | <tr tal:define="isWsManager python:checkPerm('Change subobjects order', |
---|
116 | here);" |
---|
117 | tal:condition="python:False and isWsManager and sort_by is None"> |
---|
118 | <td> |
---|
119 | <input type="submit" value="button_move_up" class="context moveUp" |
---|
120 | i18n:attributes="value" name="moveItemsUp:method" /> |
---|
121 | <input type="submit" value="button_move_down" class="context moveDown" |
---|
122 | i18n:attributes="value" name="moveItemsDown:method" /> |
---|
123 | <input type="submit" value="button_move_top" class="context moveTop" |
---|
124 | i18n:attributes="value" name="moveItemsTop:method" /> |
---|
125 | <input type="submit" value="button_move_bottom" |
---|
126 | class="context moveBottom" |
---|
127 | i18n:attributes="value" name="moveItemsBottom:method" /> |
---|
128 | </td> |
---|
129 | </tr> |
---|
130 | </table> |
---|
131 | </form> |
---|
132 | </metal:main> |
---|
133 | |
---|
134 | <metal:sub fill-slot="sub"/> |
---|
135 | |
---|
136 | </metal:body> |
---|
137 | </metal:html> |
---|