source: WAeUP_SRP/trunk/skins/waeup_student/study_course_view.pt @ 767

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

student's name appears in title if isManager

File size: 3.1 KB
Line 
1<metal:html tal:define="info context/getStudyCourseInfo;
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    </metal:block>
19    <metal:main fill-slot="main">
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            tal:define="rows python: info['items'];"
26            >
27        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
28          <tr tal:repeat="row rows"
29            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
30            <td align="left" valign="middle" style="width: 5px;"
31                tal:condition="python: 0 and is_manager">
32              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
33                     tal:condition="is_manager"
34                     tal:define="id row/id"
35                     tal:attributes="value id;
36                     id python:'cb_' + id;
37                     checked python:id in info['choosen_ids'];"
38                     />
39            </td>
40            <td><a href="view" tal:attributes="href string:${row/url}">
41              <strong tal:content="row/title" /></a> </td>
42          </tr>
43        </table>
44        <table width="100%" cellspacing="0" cellpadding="2"
45               summary="contents of the folder"
46               class="folderButtons">
47          <tr>
48            <td align="left" valign="top" rowspan="3"></td>
49            <td align="left" valign="top">
50              <span tal:condition="python:0 and is_manager">
51                <input type="button" value="button_select_all" class="context"
52                       onclick="someJavaScriptFunctionThatWillBeReplaced"
53                       i18n:attributes="value"
54                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
55                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
56                       />
57                <input type="submit" name="folder_delete:method" value="button_delete"
58                       class="destructive" i18n:attributes="value"
59                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
60                       (cpsmcat('description_confirm_delete'), )"
61                       />
62              </span>
63            </td>
64          </tr>
65        </table>
66      </form>
67    </metal:main>
68   
69    <metal:sub fill-slot="sub"/>
70  </metal:body>
71</metal:html>
Note: See TracBrowser for help on using the repository browser.