source: WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt @ 742

Last change on this file since 742 was 740, checked in by Henrik Bettermann, 18 years ago

student's name appears in title if isManager

File size: 5.0 KB
Line 
1<metal:html tal:define="info context/getStudyLevelInfo;
2            is_manager info/is_manager|nothing;
3            s_info context/getStudentInfo;"
4            >
5  <metal:body use-macro="here/waeup_content_master/macros/master">
6    <metal:block fill-slot="header">
7      <a href=""
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>
13         <span tal:condition="python:is_manager and s_info">
14           <span tal:content="s_info/student/Title" />:
15         </span>
16         <span tal:content="here/title_or_id" />
17      </h3>
18      <div tal:condition="python:0" tal:content="info/container_path"/>
19      <div tal:condition="python:0" tal:content="info/cert_id"/>
20      <div tal:condition="python:0" tal:content="info/gpa"/>
21    </metal:block>
22    <metal:main fill-slot="main" tal:condition="python:1">
23      <span tal:omit-tag="" 
24            tal:content="structure python: info['doc'].render(layout_mode='view')" />
25     
26      <form action="" method="post" class="group"
27            tal:attributes="action info/action"
28            >
29        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
30          <span tal:repeat="sem python:('first','second')">
31            <tr><th colspan="3" tal:content="python: test(sem == 'first','First Semester', 'Second Semester')" />
32            <tr tal:repeat="row python: info[sem]"
33                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
34              <td align="left" valign="middle" style="width: 5px;"
35                  tal:condition="python:1 and is_manager">
36                <input type="checkbox" name="ids:list" value="" id="" class="noborder"
37                       tal:condition="is_manager"
38                       tal:define="id row/id"
39                       tal:attributes="value id;
40                       id python:'cb_' + id;
41                       checked python:id in info['choosen_ids'];"
42                       />
43                </td>
44                <td><a href="view" tal:attributes="href string:${row/url}">
45                    <strong tal:content="row/title" /></a> </td>
46                <td tal:content="row/id"></td>
47                <td tal:content="row/semester"></td>
48                <td tal:content="row/credits"></td>
49                <td tal:condition="is_manager" tal:content="row/score"></td>
50                <td tal:content="row/grade"></td>
51                <td tal:content="row/weight"></td>
52                <td tal:condition="python:0" tal:content="row/sum"></td>
53                <td tal:condition="python:0" tal:content="row/count"></td>
54                <td tal:condition="row/is_editable" tal:content="row/review_state"> </td>
55                <td>
56                <a tal:condition="row/is_editable"
57                    href="edit" tal:attributes="href string:${row/url}/external_edit_form"
58                    target="edit"
59                    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')">
60                    [edit]
61                    </a>
62                </td>
63              </tr>
64            </span>
65          </table>
66        <table width="100%" cellspacing="0" cellpadding="2"
67               class="folderButtons">
68          <tr>
69            <td align="left" valign="top" rowspan="3"></td>
70            <td align="left" valign="top">
71              <span tal:condition="python:1 and is_manager">
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                       />
78                <input tal:condition="python:0" type="submit" name="approve_checked:method"
79                       class="context" value="Approve" />
80                <input tal:condition="python:0" type="submit" name="retract_checked:method"
81                       class="context" value="Retract" />
82                <input type="submit" name="folder_delete:method" value="button_delete"
83                       class="destructive" i18n:attributes="value"
84                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
85                       (cpsmcat('description_confirm_delete'), )"
86                       />
87                <input tal:condition="python: 0"
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.