[649] | 1 | <metal:html tal:define="info context/getAccoFolderInfo; |
---|
[913] | 2 | is_so context/isSectionOfficer; |
---|
| 3 | beds_generated options/beds_generated|nothing;" |
---|
[622] | 4 | > |
---|
[1783] | 5 | <metal:body use-macro="here/main_template/macros/master"> |
---|
[622] | 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> |
---|
[1438] | 12 | |
---|
| 13 | <a href="statistics_bed_view"><strong>Bed Statistics</strong></a> |
---|
| 14 | |
---|
[622] | 15 | <h3 tal:content="here/title_or_id"> |
---|
| 16 | Page Title |
---|
| 17 | </h3> |
---|
[772] | 18 | <br /> |
---|
[626] | 19 | <table tal:condition="beds_generated"> |
---|
| 20 | <tr> |
---|
[630] | 21 | <th width="200px">Hall Name</th> |
---|
| 22 | <th>New Beds Generated</th> |
---|
[626] | 23 | </tr> |
---|
| 24 | <tr tal:repeat="hall beds_generated"> |
---|
| 25 | <td tal:content="hall/name"></td> |
---|
[630] | 26 | <td tal:content="hall/count"></td> |
---|
[626] | 27 | </tr> |
---|
| 28 | </table> |
---|
[1438] | 29 | |
---|
[622] | 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;" |
---|
[911] | 41 | tal:condition="is_so"> |
---|
[622] | 42 | <input type="checkbox" name="ids:list" value="" id="" class="noborder" |
---|
[911] | 43 | tal:condition="is_so" |
---|
[622] | 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> |
---|
[1447] | 50 | <td><a href="view" tal:attributes="href row/url"> |
---|
[622] | 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" |
---|
[1441] | 56 | href="edit" tal:attributes="href string:/${row/url}/external_edit_form" |
---|
[622] | 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"> |
---|
[911] | 71 | <span tal:condition="is_so"> |
---|
[622] | 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 | /> |
---|
[635] | 78 | <input type="submit" name="hall_delete:method" value="button_delete" |
---|
[622] | 79 | class="destructive" i18n:attributes="value" |
---|
| 80 | tal:attributes="onclick python:'return window.confirm(\'%s\')' % |
---|
| 81 | (cpsmcat('description_confirm_delete'), )" |
---|
| 82 | /> |
---|
[635] | 83 | <input tal:condition="python: 0 and context.portal_type not in ('Semester','Certificate')" |
---|
[622] | 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> |
---|