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

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

buttons changed

  • Property svn:keywords set to Id
File size: 5.2 KB
RevLine 
[1380]1<metal:html>
[723]2  <metal:body use-macro="here/waeup_content_master/macros/master">
[1380]3    <metal:block fill-slot="header" 
4                 tal:define="global info context/getStudyCourseInfo;
[1492]5                 global create_level info/create_level|nothing;
[1380]6                 global is_so info/is_so;
7                 "
8                 >
[723]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>
[740]14      <h3>
[1380]15         <span tal:condition="python:is_so and info">
[1403]16           <span tal:content="info/student/name" />:
[740]17         </span>
18        <span tal:content="here/title_or_id" />
19      </h3>
[772]20      <br />
[723]21    </metal:block>
22    <metal:main fill-slot="main">
[1380]23      <table tal:define="sc python: info['course_doc']">
[1025]24        <tr>
[1497]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>
[1504]34          <td><span tal:content="info/verdict" /></td>
[1497]35        </tr>
36        <tr>
[1409]37          <td width="220px">Certificate:</td>
[1025]38          <td><span tal:content="sc/title" /></td>
39        </tr>
40        <tr>
[1493]41          <td>Certificate Id:</td>
[1025]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>       
[723]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;"
[911]68                tal:condition="python: 0 and is_so">
[723]69              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
[911]70                     tal:condition="is_so"
[723]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>
[1505]77            <td><a href="view"
[1482]78                   tal:attributes="href string:${row/url}">
79              <strong tal:content="row/title" /></a>
80            </td>
[723]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">
[911]89              <span tal:condition="python:0 and is_so">
[723]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>
[1492]106      <form action="" method="post" class="group"
107            tal:attributes="action string:${context/absolute_url}/create_level"
108            tal:define="rows python: info['items'];"
[1494]109            tal:condition="create_level"
[1492]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">
[1494]117              <input type="submit" name="create_level"
[1492]118                       class="destructive"
[1501]119                       tal:attributes="onclick python:'return window.confirm(\'Do you really want to register for Level %s?\')' % create_level;
[1518]120                       value string: Register Courses for Level ${create_level}"
[1492]121                       />
122            </td>
123          </tr>
124        </table>
125      </form>         
[723]126    </metal:main>
[1096]127 
[723]128  </metal:body>
129</metal:html>
Note: See TracBrowser for help on using the repository browser.