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

Last change on this file since 408 was 387, checked in by Henrik Bettermann, 18 years ago

arrow_up.gif included

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