source: WAeUP_SRP/trunk/skins/waeup_documents/documents_view.pt @ 7226

Last change on this file since 7226 was 3478, checked in by Henrik Bettermann, 17 years ago

use getFolderObjectsInfo

File size: 3.7 KB
Line 
1<metal:html tal:define="info context/getFolderObjectsInfo;
2            is_so context/isSectionOfficer;"
3            >
4  <metal:body use-macro="here/main_template/macros/master">
5    <metal:block fill-slot="header">
6      <a href=""
7         tal:attributes="href string:${here/academicsParent}">
8        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
9        Up one level
10      </a>
11      <h3 tal:content="here/title_or_id" />
12      <div tal:condition="python:0" tal:content="info/container_path"/>
13      <br />
14    </metal:block>
15    <metal:main fill-slot="main">
16      <span tal:omit-tag="" 
17            tal:content="structure python: info['doc'].render(layout_mode='view')" />
18     
19      <form action="" method="post" class="group"
20            tal:attributes="action info/action"
21            tal:define="rows python: info['items'];"
22            >
23        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
24          <tr tal:repeat="row rows"
25            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
26            <td align="left" valign="middle" style="width: 5px;"
27                tal:condition="is_so">
28              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
29                     tal:condition="is_so"
30                     tal:define="id row/id"
31                     tal:attributes="value id;
32                     id python:'cb_' + id;
33                     checked python:id in info['choosen_ids'];"
34                     />
35            </td>
36            <td><strong tal:content="row/title" /></td>
37            <td> <a href="view" tal:attributes="href string:${row/url}"> <span tal:content="row/id" /></a>  </td>
38
39            <td>
40            <a tal:condition="row/is_editable"
41                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
42                target="edit"
43                onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
44                [edit]
45                </a>
46            </td>
47
48          </tr>
49        </table>
50        <table width="100%" cellspacing="0" cellpadding="2"
51               summary="contents of the folder"
52               class="folderButtons">
53          <tr>
54            <td align="left" valign="top" rowspan="3"></td>
55            <td align="left" valign="top">
56              <span tal:condition="is_so">
57                <input type="button" value="button_select_all" class="context"
58                       onclick="someJavaScriptFunctionThatWillBeReplaced"
59                       i18n:attributes="value"
60                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
61                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
62                       />
63                <input type="submit" name="folder_delete:method" value="button_delete"
64                       class="destructive" i18n:attributes="value"
65                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
66                       (cpsmcat('description_confirm_delete'), )"
67                       />
68                <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"
69                       type="submit" name="id_rename_form:method"
70                       class="context" value="Change Object ID" i18n:attributes="value"
71                       />
72              </span>
73            </td>
74          </tr>
75        </table>
76      </form>
77    </metal:main>
78   
79    <metal:sub fill-slot="sub"/>
80  </metal:body>
81</metal:html>
Note: See TracBrowser for help on using the repository browser.