source: WAeUP_SRP/trunk/skins/waeup_academics/department_index_view.pt @ 599

Last change on this file since 599 was 556, checked in by joachim, 18 years ago

new views for academic data,

File size: 3.5 KB
Line 
1<metal:html tal:define="info context/getCoursesCertificatesInfo;
2            is_manager info/is_manager|nothing;"
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    </metal:block>
14    <metal:main fill-slot="main">
15      <span tal:omit-tag="" 
16            tal:content="structure python: info['doc'].render(layout_mode='view')" />
17     
18      <form action="" method="post" class="group"
19            tal:attributes="action info/action"
20            tal:define="certs python: info['certificates'];"
21            >
22        <span tal:condition="python: 0" tal:content="structure rows" />
23        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
24          <tr class="even ajaxtd">
25            <th colspan="4"><a href="view" tal:attributes="href string:${context/absolute_url}/courses">
26              Courses</a> </th>
27          </tr>
28          <tr class="even ajaxtd">
29            <th colspan="4"><a href="view" tal:attributes="href string:${context/absolute_url}/certificates">
30             Certificates </a> </th>
31          </tr>
32          <tr tal:repeat="row certs"
33            tal:attributes="class python:test(repeat['row'].odd(), 'even ajaxtd', 'odd ajaxtd')">
34            <td  align="left" valign="middle" style="width: 5px;">
35            </td>
36            <td><a href="view" tal:attributes="href string:${row/url}">
37              <span tal:content="row/title" /></a> </td>
38            <td tal:content="row/id"> </td>
39          </tr>
40        </table>
41        <table tal:condition="nothing" width="100%" cellspacing="0" cellpadding="2"
42               class="folderButtons">
43          <tr>
44            <td align="left" valign="top" rowspan="3"></td>
45            <td align="left" valign="top">
46              <span tal:condition="is_manager">
47                <input type="button" value="button_select_all" class="context"
48                       onclick="someJavaScriptFunctionThatWillBeReplaced"
49                       i18n:attributes="value"
50                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
51                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
52                       />
53                <input type="submit" name="approve_checked:method"
54                       class="context" value="Approve" />
55                <input type="submit" name="retract_checked:method"
56                       class="context" value="Retract" />
57                <input type="submit" name="folder_delete:method" value="button_delete"
58                       class="destructive" i18n:attributes="value"
59                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
60                       (cpsmcat('description_confirm_delete'), )"
61                       />
62                <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"
63                       type="submit" name="id_rename_form:method"
64                       class="context" value="Change Object ID" i18n:attributes="value"
65                       />
66              </span>
67            </td>
68          </tr>
69        </table>
70      </form>
71    </metal:main>
72   
73    <metal:sub fill-slot="sub"/>
74  </metal:body>
75</metal:html>
Note: See TracBrowser for help on using the repository browser.