source: WAeUP_SRP/trunk/skins/waeup_academics/academics_contents.pt @ 331

Last change on this file since 331 was 329, checked in by joachim, 18 years ago

=level_view

File size: 4.0 KB
Line 
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="not: display_buttons"
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            <input type="button" value="button_select_all" class="context"
73                   onclick="someJavaScriptFunctionThatWillBeReplaced"
74                   i18n:attributes="value"
75                   tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
76                                   % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))" />
77          <span tal:condition="can_del">
78            <input type="submit" name="approve_checked:method"
79              class="context" value="Approve" />
80            <input type="submit" name="retract_checked:method"
81              class="context" value="Retract" />
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          </span>
87          </span>
88        </td>
89      </tr>
90    </table>
91  </form>
92</metal:main>
93
94<metal:sub fill-slot="sub"/>
95
96</metal:body>
97</metal:html>
Note: See TracBrowser for help on using the repository browser.