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

Last change on this file since 723 was 723, checked in by joachim, 18 years ago

Import and Manager view for full-time students + results

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