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

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

blank lines behind all headlines added

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      <br />
19    </metal:block>
20    <metal:main fill-slot="main">
21      <span tal:omit-tag="" 
22            tal:content="structure python: info['doc'].render(layout_mode='view')" />
23     
24      <form action="" method="post" class="group"
25            tal:attributes="action info/action"
26            tal:define="rows python: info['items'];"
27            >
28        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
29          <tr tal:repeat="row rows"
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="python: 0 and is_manager">
33              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
34                     tal:condition="is_manager"
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          </tr>
44        </table>
45        <table width="100%" cellspacing="0" cellpadding="2"
46               summary="contents of the folder"
47               class="folderButtons">
48          <tr>
49            <td align="left" valign="top" rowspan="3"></td>
50            <td align="left" valign="top">
51              <span tal:condition="python:0 and is_manager">
52                <input type="button" value="button_select_all" class="context"
53                       onclick="someJavaScriptFunctionThatWillBeReplaced"
54                       i18n:attributes="value"
55                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
56                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
57                       />
58                <input type="submit" name="folder_delete:method" value="button_delete"
59                       class="destructive" i18n:attributes="value"
60                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
61                       (cpsmcat('description_confirm_delete'), )"
62                       />
63              </span>
64            </td>
65          </tr>
66        </table>
67      </form>
68    </metal:main>
69   
70    <metal:sub fill-slot="sub"/>
71  </metal:body>
72</metal:html>
Note: See TracBrowser for help on using the repository browser.