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

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

display current_study_mode

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