source: WAeUP_SRP/branches/uli/skins/waeup_accommodation/acco_folder_view.pt @ 15344

Last change on this file since 15344 was 1447, checked in by joachim, 18 years ago

new function fixReservedBeds:
walks through all reserved beds
if the bed is allocated to a student:

if the student has an accommodation object:

if not the same as the reserved bed:

deallocate bed.


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