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

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

New form import
added portal status message to main_template

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