source: WAeUP_SRP/branches/regebro-noskins/skins/waeup_student/study_course_view.pt @ 4194

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

buttons changed

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