source: WAeUP_SRP/trunk/skins/waeup_academics/level_view.pt @ 5060

Last change on this file since 5060 was 3474, checked in by joachim, 17 years ago

introduce breadcrumbs for the academic-section, use them instead of up one
level.

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