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

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

redirect to illegal_view.py

  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1<metal:html tal:define="is_so context/isSectionOfficer;
2                        s_info context/getStudentInfo;"
3                        >
4  <span tal:condition="not: s_info">
5    <span tal:content="here/illegal_view" />
6  </span>
7  <metal:block tal:condition="s_info">             
8  <span tal:define="info context/getStudyCourseInfo">
9  <metal:body use-macro="here/waeup_content_master/macros/master">
10    <metal:block fill-slot="header">
11      <a href=""
12         tal:attributes="href string:${here/academicsParent}">
13        <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
14        Up one level
15      </a>
16      <h3>
17         <span tal:condition="python:is_so and s_info">
18           <span tal:content="s_info/student/Title" />:
19         </span>
20        <span tal:content="here/title_or_id" />
21      </h3>
22      <br />
23    </metal:block>
24    <metal:main fill-slot="main">
25      <span tal:omit-tag="" tal:condition="nothing"
26            tal:content="structure python: info['doc'].render(layout_mode='view')" />
27      <table tal:define="sc python: s_info['course_doc']">
28        <tr>
29          <td width="180px">Certificate:</td>
30          <td><span tal:content="sc/title" /></td>
31        </tr>
32        <tr>
33          <td>Certificate ID:</td>
34          <td tal:content="sc/study_course" />
35        </tr>
36          <span tal:define="f_id sc/faculty;
37          d_id sc/department;
38          f_title context/academics/?f_id/Title|string:Faculty not yet in Prospectus;
39          d_title context/academics/?f_id/?d_id/Title|string:Department not yet in Prospectus"
40          >
41            <tr>
42              <td>Faculty:</td>
43              <td tal:content="f_title" />
44            </tr>
45            <tr>
46              <td>Department:</td>
47              <td><span tal:content="d_title" /></td>
48            </tr>
49          </span>
50        </table>       
51     
52      <form action="" method="post" class="group"
53            tal:attributes="action info/action"
54            tal:define="rows python: info['items'];"
55            >
56        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
57          <tr tal:repeat="row rows"
58            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
59            <td align="left" valign="middle" style="width: 5px;"
60                tal:condition="python: 0 and is_so">
61              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
62                     tal:condition="is_so"
63                     tal:define="id row/id"
64                     tal:attributes="value id;
65                     id python:'cb_' + id;
66                     checked python:id in info['choosen_ids'];"
67                     />
68            </td>
69            <td><a href="view" tal:attributes="href string:${row/url}">
70              <strong tal:content="row/title" /></a> </td>
71          </tr>
72        </table>
73        <table width="100%" cellspacing="0" cellpadding="2"
74               summary="contents of the folder"
75               class="folderButtons">
76          <tr>
77            <td align="left" valign="top" rowspan="3"></td>
78            <td align="left" valign="top">
79              <span tal:condition="python:0 and is_so">
80                <input type="button" value="button_select_all" class="context"
81                       onclick="someJavaScriptFunctionThatWillBeReplaced"
82                       i18n:attributes="value"
83                       tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
84                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
85                       />
86                <input type="submit" name="folder_delete:method" value="button_delete"
87                       class="destructive" i18n:attributes="value"
88                       tal:attributes="onclick python:'return window.confirm(\'%s\')' %
89                       (cpsmcat('description_confirm_delete'), )"
90                       />
91              </span>
92            </td>
93          </tr>
94        </table>
95      </form>
96    </metal:main>
97 
98  </metal:body>
99  </span> 
100  </metal:block>
101</metal:html>
Note: See TracBrowser for help on using the repository browser.