source: WAeUP_SRP/trunk/skins/waeup_accommodation/accommodation_view.pt @ 628

Last change on this file since 628 was 626, checked in by joachim, 18 years ago

several overviews for AccoFolder?,

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