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

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

added missing waeup_content_master

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