source: WAeUP_SRP/trunk/skins/waeup_academics/certificate_view.pt @ 17394

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

use getFolderObjectsInfo

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