source: WAeUP_SRP/trunk/skins/waeup_academics/department_view.pt @ 15252

Last change on this file since 15252 was 3474, checked in by joachim, 17 years ago

introduce breadcrumbs for the academic-section, use them instead of up one
level.

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