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

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

make register courses work

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