source: WAeUP_SRP/base/skins/waeup_academics/level_view.pt @ 3011

Last change on this file since 3011 was 2614, checked in by Henrik Bettermann, 17 years ago

display semesters seperately: first, second and combined

  • Property svn:keywords set to Id
File size: 6.9 KB
Line 
1<metal:html tal:define="info context/getLevelInfo;
2            is_so context/isSectionOfficer;"
3            >
4  <metal:body use-macro="here/main_template/macros/master">
5    <metal:block fill-slot="header">
6      <a href=""
7         tal:attributes="href string:${here/academicsParent}">
8        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
9        Up one level
10      </a>
11      <h3 tal:content="here/title_or_id" />
12      <div tal:condition="python:0" tal:content="info/container_path"/>
13      <div tal:condition="python:0" tal:content="info/dep_id"/>
14      <div tal:condition="python:0" tal:content="info/cert_id"/>
15    </metal:block>
16    <metal:main fill-slot="main" tal:condition="python:1">
17      <span tal:omit-tag="" 
18            tal:content="structure python: info['doc'].render(layout_mode='view')" />
19     
20      <form action="" method="post" class="group"
21            tal:attributes="action info/action"
22            >
23        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
24          <span tal:repeat="sem python:('first','second')">
25            <tr><th colspan="3" tal:content="python: test(sem == 'first','First Semester', 'Second Semester')" /></tr>
26            <tr tal:repeat="row python: info[sem]"
27                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
28              <td align="left" valign="middle" style="width: 5px;"
29                  tal:condition="is_so">
30                <input type="checkbox" name="ids:list" value="" id="" class="noborder"
31                       tal:condition="is_so"
32                       tal:define="id row/id"
33                       tal:attributes="value id;
34                       id python:'cb_' + id;
35                       checked python:id in info['choosen_ids'];"
36                       />
37                </td>
38                <td><a href="view" tal:attributes="href string:${row/url}">
39                    <strong tal:content="row/title" /></a> </td>
40                <td tal:content="row/id"></td>
41                <td tal:content="python: test(row['core'],'core','elective')"></td>
42                <td tal:condition="row/is_editable" tal:content="row/review_state"> </td>
43                <td>
44                <a tal:condition="row/is_editable"
45                    href="edit" tal:attributes="href string:${row/url}/external_edit_form"
46                    target="edit"
47                    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')">
48                    [edit]
49                    </a>
50                <a tal:condition="row/real_course_path|nothing"
51                   href="edit" tal:attributes="href string:${row/real_course_path}/external_edit_form"
52                   target="edit"
53                   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')">
54                   [edit course]
55                    </a>
56                </td>
57            </tr>
58             
59            </span>
60             
61            <tr><th colspan="3" tal:condition="info/combined"> Combined</th></tr>
62            <tr tal:condition="info/combined" tal:repeat="row info/combined"
63                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
64              <td align="left" valign="middle" style="width: 5px;"
65                  tal:condition="is_so">
66                <input type="checkbox" name="ids:list" value="" id="" class="noborder"
67                       tal:condition="is_so"
68                       tal:define="id row/id"
69                       tal:attributes="value id;
70                       id python:'cb_' + id;
71                       checked python:id in info['choosen_ids'];"
72                       />
73                </td>
74                <td><a href="view" tal:attributes="href string:${row/url}">
75                    <strong tal:content="row/title" /></a> </td>
76                <td tal:content="row/id"></td>
77                <td tal:content="python: test(row['core'],'core','elective')"></td>
78                <td tal:condition="row/is_editable" tal:content="row/review_state"> </td>
79                <td>
80                <a tal:condition="row/is_editable"
81                    href="edit" tal:attributes="href string:${row/url}/external_edit_form"
82                    target="edit"
83                    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')">
84                    [edit]
85                    </a>
86                <a tal:condition="row/real_course_path|nothing"
87                   href="edit" tal:attributes="href string:${row/real_course_path}/external_edit_form"
88                   target="edit"
89                   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')">
90                   [edit course]
91                   </a>
92                </td>
93             </tr>
94             
95
96          </table>
97        <table width="100%" cellspacing="0" cellpadding="2"
98               class="folderButtons">
99          <tr>
100            <td align="left" valign="top" rowspan="3"></td>
101            <td align="left" valign="top">
102              <span tal:condition="is_so">
103                <input type="button" value="button_select_all" class="context"
104                       onclick="someJavaScriptFunctionThatWillBeReplaced"
105                       i18n:attributes="value"
106                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
107                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
108                       />
109                <input type="submit" name="approve_checked:method"
110                       class="context" value="Approve" />
111                <input type="submit" name="retract_checked:method"
112                       class="context" value="Retract" />
113                <input type="submit" name="folder_delete:method" value="button_delete"
114                       class="destructive" i18n:attributes="value"
115                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
116                       (cpsmcat('description_confirm_delete'), )"
117                       />
118                <input tal:condition="python: context.portal_type not in ('Semester','Certificate')"
119                       type="submit" name="id_rename_form:method"
120                       class="context" value="Change Object ID" i18n:attributes="value"
121                       />
122              </span>
123            </td>
124          </tr>
125        </table>
126      </form>
127    </metal:main>
128   
129    <metal:sub fill-slot="sub"/>
130  </metal:body>
131</metal:html>
Note: See TracBrowser for help on using the repository browser.