source: WAeUP_SRP/trunk/skins/waeup_academics/academics_index_view.pt @ 611

Last change on this file since 611 was 603, checked in by Henrik Bettermann, 18 years ago

batch of fixes to open the frontend for the first time

File size: 3.6 KB
Line 
1<metal:html tal:define="info context/getFacultiesInfo;
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="" 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    </metal:block>
15    <metal:main fill-slot="main">
16      <form action="" method="post" class="group"
17            tal:attributes="action info/action"
18            tal:define="rows python: info['items'];"
19            >
20        <span tal:condition="python: 0" tal:content="structure rows" />
21        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
22          <tr tal:repeat="row rows"
23            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
24            <td align="left" valign="middle" style="width: 5px;"
25                tal:condition="is_manager">
26              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
27                     tal:condition="is_manager"
28                     tal:define="id row/id"
29                     tal:attributes="value id;
30                     id python:'cb_' + id;
31                     checked python:id in info['choosen_ids'];"
32                     />
33            </td>
34            <td><a href="view" tal:attributes="href string:${row/url}">
35              <strong tal:content="row/title" /></a> </td>
36            <td tal:content="row/id"> </td>
37           
38            <td>
39            <a tal:condition="row/is_editable"
40                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
41                target="edit"
42                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')">
43                [edit]
44                </a>
45            </td>
46           
47          </tr>
48        </table>
49        <table width="100%" cellspacing="0" cellpadding="2"
50               summary="contents of the folder"
51               class="folderButtons">
52          <tr>
53            <td align="left" valign="top" rowspan="3"></td>
54            <td align="left" valign="top">
55              <span tal:condition="is_manager">
56                <input type="button" value="button_select_all" class="context"
57                       onclick="someJavaScriptFunctionThatWillBeReplaced"
58                       i18n:attributes="value"
59                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
60                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
61                       />
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.