source: WAeUP_SRP/branches/joachim-event-branch/skins/waeup_academics/department_view.pt @ 9819

Last change on this file since 9819 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.5 KB
Line 
1<metal:html tal:define="info context/getCoursesCertificatesInfo;
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="nothing" 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="certs python: info['certificates'];"
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 class="even ajaxtd">
26            <th colspan="4"><a href="view" tal:attributes="href string:${context/absolute_url}/courses">
27              Courses</a> </th>
28          </tr>
29          <tr class="even ajaxtd">
30            <th colspan="4"><a href="view" tal:attributes="href string:${context/absolute_url}/certificates">
31             Certificates </a> </th>
32          </tr>
33          <tr tal:repeat="row certs"
34            tal:attributes="class python:test(repeat['row'].odd(), 'even ajaxtd', 'odd ajaxtd')">
35            <td  align="left" valign="middle" style="width: 5px;">
36            </td>
37            <td><a href="view" tal:attributes="href string:${row/url}">
38              <span tal:content="row/title" /></a> </td>
39            <td tal:content="row/id"> </td>
40          </tr>
41        </table>
42        <table tal:condition="nothing" width="100%" cellspacing="0" cellpadding="2"
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="approve_checked:method"
55                       class="context" value="Approve" />
56                <input type="submit" name="retract_checked:method"
57                       class="context" value="Retract" />
58                <input type="submit" name="folder_delete:method" value="button_delete"
59                       class="destructive" i18n:attributes="value"
60                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
61                       (cpsmcat('description_confirm_delete'), )"
62                       />
63                <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"
64                       type="submit" name="id_rename_form:method"
65                       class="context" value="Change Object ID" i18n:attributes="value"
66                       />
67              </span>
68            </td>
69          </tr>
70        </table>
71      </form>
72    </metal:main>
73   
74    <metal:sub fill-slot="sub"/>
75  </metal:body>
76</metal:html>
Note: See TracBrowser for help on using the repository browser.