source: WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_view.pt @ 633

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

added new methods isManager and isStudent, which are now used in all
getXXXInfo Scripts,
searchAcademics Form added - search not working yet.

File size: 3.8 KB
Line 
1<metal:html tal:define="info context/getDepartmentsInfo;
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="python:0" 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="rows python: info['items'];"
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 tal:repeat="row rows"
25            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
26            <td align="left" valign="middle" style="width: 5px;"
27                tal:condition="is_manager">
28              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
29                     tal:condition="is_manager"
30                     tal:define="id row/id"
31                     tal:attributes="value id;
32                     id python:'cb_' + id;
33                     checked python:id in info['choosen_ids'];"
34                     />
35            </td>
36            <td><a href="view" tal:attributes="href string:${row/url}">
37              <strong tal:content="row/title" /></a> </td>
38            <td tal:content="row/id"> </td>
39
40            <td>
41            <a tal:condition="row/is_editable"
42                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
43                target="edit"
44                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')">
45                [edit]
46                </a>
47            </td>
48
49          </tr>
50        </table>
51        <table width="100%" cellspacing="0" cellpadding="2"
52               summary="contents of the folder"
53               class="folderButtons">
54          <tr>
55            <td align="left" valign="top" rowspan="3"></td>
56            <td align="left" valign="top">
57              <span tal:condition="is_manager">
58                <input type="button" value="button_select_all" class="context"
59                       onclick="someJavaScriptFunctionThatWillBeReplaced"
60                       i18n:attributes="value"
61                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
62                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
63                       />
64                <input type="submit" name="folder_delete:method" value="button_delete"
65                       class="destructive" i18n:attributes="value"
66                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
67                       (cpsmcat('description_confirm_delete'), )"
68                       />
69                <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"
70                       type="submit" name="id_rename_form:method"
71                       class="context" value="Change Object ID" i18n:attributes="value"
72                       />
73              </span>
74            </td>
75          </tr>
76        </table>
77      </form>
78    </metal:main>
79   
80    <metal:sub fill-slot="sub"/>
81  </metal:body>
82</metal:html>
Note: See TracBrowser for help on using the repository browser.