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

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

Category instead of Type

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