source: WAeUP_SRP/branches/srpp_on_branch/skins/waeup_academics/faculty_view.pt @ 3147

Last change on this file since 3147 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.7 KB
Line 
1<metal:html tal:define="info context/getDepartmentsInfo;
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="python:0" 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="rows python: info['items'];"
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 tal:repeat="row rows"
26            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
27            <td align="left" valign="middle" style="width: 5px;"
28                tal:condition="is_so">
29              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
30                     tal:condition="is_so"
31                     tal:define="id row/id"
32                     tal:attributes="value id;
33                     id python:'cb_' + id;
34                     checked python:id in info['choosen_ids'];"
35                     />
36            </td>
37            <td><a href="view" tal:attributes="href string:${row/url}">
38              <strong tal:content="row/title" /></a> </td>
39            <td tal:content="row/id"> </td>
40
41            <td>
42            <a tal:condition="row/is_editable"
43                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
44                target="edit"
45                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')">
46                [edit]
47                </a>
48            </td>
49
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_so">
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="folder_delete:method" value="button_delete"
66                       class="destructive" i18n:attributes="value"
67                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
68                       (cpsmcat('description_confirm_delete'), )"
69                       />
70                <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"
71                       type="submit" name="id_rename_form:method"
72                       class="context" value="Change Object ID" i18n:attributes="value"
73                       />
74              </span>
75            </td>
76          </tr>
77        </table>
78      </form>
79    </metal:main>
80   
81    <metal:sub fill-slot="sub"/>
82  </metal:body>
83</metal:html>
Note: See TracBrowser for help on using the repository browser.