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

Last change on this file since 8794 was 5209, checked in by Henrik Bettermann, 14 years ago

fix spelling error (and traceback)

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