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

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

is_* keys removed from get* functions

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