source: WAeUP_SRP/base/skins/waeup_accommodation/acco_folder_view.pt @ 2855

Last change on this file since 2855 was 2845, checked in by joachim, 17 years ago

add sort_id, additional fields in payment

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