source: WAeUP_SRP/base/skins/waeup_accommodation/acco_folder_view.pt @ 3004

Last change on this file since 3004 was 2890, checked in by Henrik Bettermann, 17 years ago

fix [edit] link

allow requery for certain members

  • Property svn:keywords set to Id
File size: 4.2 KB
Line 
1<metal:html tal:define="info context/getAccoFolderInfo;
2            is_so context/isSectionOfficer;
3            beds_generated options/beds_generated|nothing;
4            psm options/psm|nothing;"
5            >
6  <metal:body use-macro="here/main_template/macros/master">
7    <metal:block fill-slot="header">
8      <a href="" tal:condition="nothing"
9         tal:attributes="href string:${here/academicsParent}">
10        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
11        Up one level
12      </a>
13     
14      <a href="statistics_bed_view"><strong>Bed Statistics</strong></a>     
15     
16      <h3 tal:content="here/title_or_id">
17        Page Title
18      </h3>
19      <br />
20      <h3 tal:condition="psm" tal:content="psm"></h3>
21      <table tal:condition="beds_generated">
22        <tr>
23          <th width="200px">Hall Name</th>
24          <th>New Beds Generated</th>
25        </tr>
26        <tr tal:repeat="hall beds_generated">
27          <td tal:content="hall/name"></td>
28          <td tal:content="hall/count"></td>
29        </tr>
30      </table>
31
32    </metal:block>
33    <metal:main fill-slot="main">
34      <form action="" method="post" class="group"
35            tal:attributes="action info/action"
36            tal:define="rows python: info['items'];"
37            >
38        <span tal:condition="python: 0" tal:content="structure rows" />
39        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
40          <tr tal:repeat="row rows"
41            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
42            <td align="left" valign="middle" style="width: 5px;"
43                tal:condition="is_so">
44              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
45                     tal:condition="is_so"
46                     tal:define="id row/id"
47                     tal:attributes="value id;
48                     id python:'cb_' + id;
49                     checked python:id in info['choosen_ids'];"
50                     />
51            </td>
52            <td><a href="view" tal:attributes="href row/url">
53              <strong tal:content="row/title" /></a> </td>
54            <td tal:content="row/id"> </td>
55            <td tal:content="row/sort_id"> </td>
56            <td>
57              <a tal:condition="row/is_editable"
58                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
59                target="edit"
60                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')">
61                [edit]
62                </a>
63            </td>
64           
65          </tr>
66        </table>
67        <table width="100%" cellspacing="0" cellpadding="2"
68               summary="contents of the folder"
69               class="folderButtons">
70          <tr>
71            <td align="left" valign="top" rowspan="3"></td>
72            <td align="left" valign="top">
73              <span tal:condition="is_so">
74                <input type="button" value="button_select_all" class="context"
75                       onclick="someJavaScriptFunctionThatWillBeReplaced"
76                       i18n:attributes="value"
77                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
78                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
79                       />
80                <input type="submit" name="hall_delete:method" value="button_delete"
81                       class="destructive" i18n:attributes="value"
82                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
83                       (cpsmcat('description_confirm_delete'), )"
84                       />
85                <input tal:condition="python: 0 and context.portal_type not in ('Semester','Certificate')"
86                       type="submit" name="id_rename_form:method"
87                       class="context" value="Change Object ID" i18n:attributes="value"
88                       />
89              </span>
90            </td>
91          </tr>
92        </table>
93      </form>
94    </metal:main>
95   
96    <metal:sub fill-slot="sub"/>
97  </metal:body>
98</metal:html>
Note: See TracBrowser for help on using the repository browser.