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

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

220px anstatt 180px

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