source: WAeUP_SRP/trunk/skins/waeup_accommodation/acco_folder_view.pt @ 1135

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

is_* keys removed from get* functions

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