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