source: WAeUP_SRP/trunk/skins/waeup_academics/certificates_view.pt @ 16827

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

use getFolderObjectsInfo

  • Property svn:keywords set to Id
File size: 3.3 KB
RevLine 
[3478]1<metal:html tal:define="info context/getFolderObjectsInfo;
[913]2            is_so context/isSectionOfficer;"
[687]3            >
[1783]4  <metal:body use-macro="here/main_template/macros/master">
[687]5    <metal:block fill-slot="header">
[3474]6      <a tal:condition="nothing" href=""
[687]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>
[3474]11      <div class=""><span tal:repeat="crumb context/getBreadCrumbs"><a href="crumb"
12                                                tal:attributes="href crumb/url"
13                                                tal:content="crumb/title"></a>
14          <span tal:condition="not: repeat/crumb/end">&gt;</span>
15        </span>
16      </div>
[687]17      <h3 tal:content="here/title_or_id" />
18      <div tal:condition="python:0" tal:content="info/container_path"/>
19    </metal:block>
20    <metal:main fill-slot="main">
21      <span tal:omit-tag="" 
22            tal:content="structure python: info['doc'].render(layout_mode='view')" />
23     
24      <form action="" method="post" class="group"
25            tal:attributes="action info/action"
26            tal:define="rows python: info['items'];"
27            >
28        <span tal:condition="python: 0" tal:content="structure rows" />
29        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
30          <tr tal:repeat="row rows"
31            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
32            <td align="left" valign="middle" style="width: 5px;"
[911]33                tal:condition="is_so">
[687]34              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
[911]35                     tal:condition="is_so"
[687]36                     tal:define="id row/id"
37                     tal:attributes="value id;
38                     id python:'cb_' + id;
39                     checked python:id in info['choosen_ids'];"
40                     />
41            </td>
42            <td><a href="view" tal:attributes="href string:${row/url}">
43              <strong tal:content="row/title" /></a> </td>
44          </tr>
45        </table>
46        <table width="100%" cellspacing="0" cellpadding="2"
47               summary="contents of the folder"
48               class="folderButtons">
49          <tr>
50            <td align="left" valign="top" rowspan="3"></td>
51            <td align="left" valign="top">
[911]52              <span tal:condition="is_so">
[687]53                <input type="button" value="button_select_all" class="context"
54                       onclick="someJavaScriptFunctionThatWillBeReplaced"
55                       i18n:attributes="value"
56                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
57                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
58                       />
59                <input type="submit" name="folder_delete:method" value="button_delete"
60                       class="destructive" i18n:attributes="value"
61                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
62                       (cpsmcat('description_confirm_delete'), )"
63                       />
64              </span>
65            </td>
66          </tr>
67        </table>
68      </form>
69    </metal:main>
70   
71    <metal:sub fill-slot="sub"/>
72  </metal:body>
73</metal:html>
Note: See TracBrowser for help on using the repository browser.