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

Last change on this file since 13808 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
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>
[3043]24          <th>Beds Generated</th>
[5209]25          <th>Beds Modified</th>
[626]26        </tr>
27        <tr tal:repeat="hall beds_generated">
28          <td tal:content="hall/name"></td>
[630]29          <td tal:content="hall/count"></td>
[5209]30          <td tal:content="hall/modified_count"></td>
[626]31        </tr>
32      </table>
[1438]33
[622]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;"
[911]45                tal:condition="is_so">
[622]46              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
[911]47                     tal:condition="is_so"
[622]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>
[1447]54            <td><a href="view" tal:attributes="href row/url">
[622]55              <strong tal:content="row/title" /></a> </td>
56            <td tal:content="row/id"> </td>
[2845]57            <td tal:content="row/sort_id"> </td>
[622]58            <td>
[2845]59              <a tal:condition="row/is_editable"
[2890]60                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
[622]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">
[911]75              <span tal:condition="is_so">
[622]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                       />
[635]82                <input type="submit" name="hall_delete:method" value="button_delete"
[622]83                       class="destructive" i18n:attributes="value"
84                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
85                       (cpsmcat('description_confirm_delete'), )"
86                       />
[635]87                <input tal:condition="python: 0 and context.portal_type not in ('Semester','Certificate')"
[622]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.