source: WAeUP_SRP/trunk/skins/waeup_academics/faculty_contents.pt @ 347

Last change on this file since 347 was 306, checked in by joachim, 18 years ago

=fixed missing pts

File size: 5.9 KB
RevLine 
[306]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  <h1 tal:content="here/title_or_id">
13    Page Title
14  </h1>
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="folder_rename_form:method"
105              class="context" value="button_rename" i18n:attributes="value" />
106            <input type="submit" name="folder_delete:method" value="button_delete"
107              class="destructive" i18n:attributes="value"
108              tal:attributes="onclick python:'return window.confirm(\'%s\')' %
109              (cpsmcat('description_confirm_delete'), )" />
110          </span>
111        </td>
112      </tr>
113      <tr tal:define="isWsManager python:checkPerm('Change subobjects order',
114                                                   here);"
115          tal:condition="python:False and isWsManager and sort_by is None">
116        <td>
117          <input type="submit" value="button_move_up" class="context moveUp"
118                 i18n:attributes="value" name="moveItemsUp:method" />
119          <input type="submit" value="button_move_down" class="context moveDown"
120                 i18n:attributes="value" name="moveItemsDown:method" />
121          <input type="submit" value="button_move_top" class="context moveTop"
122                 i18n:attributes="value" name="moveItemsTop:method" />
123          <input type="submit" value="button_move_bottom"
124                 class="context moveBottom"
125                 i18n:attributes="value" name="moveItemsBottom:method" />
126        </td>
127      </tr>
128    </table>
129  </form>
130</metal:main>
131
132<metal:sub fill-slot="sub"/>
133
134</metal:body>
135</metal:html>
Note: See TracBrowser for help on using the repository browser.