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

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

add course registration.
The Link to the study_level is disabled in study_course_view.pt,
but can be invoked manually. On first invocation the courses are created.

  • Property svn:keywords set to Id
File size: 4.0 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:condition="python: 0"
67                   tal:attributes="href string:${row/url}">
68              <strong tal:content="row/title" /></a>
69              <strong tal:condition="python: 1" tal:content="row/title" />
70            </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</metal:html>
Note: See TracBrowser for help on using the repository browser.