source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_academics/academics_view.pt @ 6023

Last change on this file since 6023 was 1783, checked in by Henrik Bettermann, 18 years ago
  • assertViewable removed and page templates adjusted, so that no traceback occurs.
  • 'Previous Session' action added
  • waeup_content_master.pt removed
  • and more
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1<metal:html tal:define="info context/getFacultiesInfo;
2            is_so context/isSectionOfficer;"
3            >
4  <metal:body use-macro="here/main_template/macros/master">
5    <metal:block fill-slot="header">
6      <a href="" tal:condition="nothing"
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        Page Title
13      </h3>
14      <br />
15    </metal:block>
16    <metal:main fill-slot="main">
17      <form action="" method="post" class="group"
18            tal:attributes="action info/action"
19            tal:define="rows python: info['items'];"
20            >
21        <span tal:condition="python: 0" tal:content="structure rows" />
22        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
23          <tr tal:repeat="row rows"
24            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
25            <td align="left" valign="middle" style="width: 5px;"
26                tal:condition="is_so">
27              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
28                     tal:condition="is_so"
29                     tal:define="id row/id"
30                     tal:attributes="value id;
31                     id python:'cb_' + id;
32                     checked python:id in info['choosen_ids'];"
33                     />
34            </td>
35            <td><a href="view" tal:attributes="href string:${row/url}">
36              <strong tal:content="row/title" /></a> </td>
37            <td tal:content="row/id"> </td>
38           
39            <td>
40            <a tal:condition="row/is_editable"
41                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
42                target="edit"
43                onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
44                [edit]
45                </a>
46            </td>
47           
48          </tr>
49        </table>
50        <table width="100%" cellspacing="0" cellpadding="2"
51               summary="contents of the folder"
52               class="folderButtons">
53          <tr>
54            <td align="left" valign="top" rowspan="3"></td>
55            <td align="left" valign="top">
56              <span tal:condition="is_so">
57                <input type="button" value="button_select_all" class="context"
58                       onclick="someJavaScriptFunctionThatWillBeReplaced"
59                       i18n:attributes="value"
60                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
61                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
62                       />
63                <input type="submit" name="folder_delete:method" value="button_delete"
64                       class="destructive" i18n:attributes="value"
65                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
66                       (cpsmcat('description_confirm_delete'), )"
67                       />
68                <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"
69                       type="submit" name="id_rename_form:method"
70                       class="context" value="Change Object ID" i18n:attributes="value"
71                       />
72              </span>
73            </td>
74          </tr>
75        </table>
76      </form>
77    </metal:main>
78   
79    <metal:sub fill-slot="sub"/>
80  </metal:body>
81</metal:html>
Note: See TracBrowser for help on using the repository browser.