source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_student/study_course_view.pt @ 17952

Last change on this file since 17952 was 1783, checked in by Henrik Bettermann, 17 years ago
  • assertViewable removed and page templates adjusted, so that no traceback occurs.
  • 'Previous Session' action added
  • waeup_content_master.pt removed
  • and more
  • Property svn:keywords set to Id
File size: 5.6 KB
Line 
1<metal:body use-macro="here/main_template/macros/master">
2  <metal:main fill-slot="main"
3              tal:define="global info context/getStudyCourseInfo;">
4
5    <span tal:condition="not: info">
6      <span tal:content="here/illegal_view" />
7    </span>
8    <span tal:condition="info">
9    <span tal:define="create_level info/create_level|nothing;
10                      is_so info/is_so;">               
11    <a href=""
12       tal:attributes="href string:${here/academicsParent}">
13      <img tal:attributes="src string:${here/portal_url}/arrow_up.gif"/>
14      Up one level
15    </a>
16    <h3>
17       <span tal:condition="python:is_so and info">
18         <span tal:content="info/student/name" />:
19       </span>
20      <span tal:content="here/title_or_id" />
21    </h3>
22    <br /> 
23
24    <table tal:define="sc python: info['course_doc']">
25      <tr>
26        <td width="220px">Certificate Code:</td>
27        <td><span tal:content="info/doc/study_course" /></td>
28      </tr>
29      <tr>
30        <td width="220px">Current Session:</td>
31        <td><span tal:content="python:context.portal_vocabularies.sessions.get(info['doc'].current_session)" /></td>
32      </tr>
33      <tr>
34        <td width="220px">Current Study Level:</td>
35        <td><span tal:content="python:context.portal_vocabularies.courselevel.get(info['doc'].current_level)" /></td>
36      </tr>
37      <tr>
38        <td width="220px">Current Study Mode:</td>
39        <td><span tal:content="python:context.portal_vocabularies.entry_modes.get(info['doc'].current_mode)" /></td>
40      </tr>       
41      <tr>
42        <td width="220px">Current Verdict:</td>
43        <td><span tal:content="info/verdict" /></td>
44      </tr>
45      <tr>
46        <td width="220px">Certificate:</td>
47        <td><span tal:content="sc/title" /></td>
48      </tr>
49      <tr>
50        <td>Certificate Id:</td>
51        <td tal:content="sc/study_course" />
52      </tr>
53        <span tal:define="f_id sc/faculty;
54        d_id sc/department;
55        f_title context/academics/?f_id/Title|string:Faculty not yet in Prospectus;
56        d_title context/academics/?f_id/?d_id/Title|string:Department not yet in Prospectus"
57        >
58          <tr>
59            <td>Faculty:</td>
60            <td tal:content="f_title" />
61          </tr>
62          <tr>
63            <td>Department:</td>
64            <td><span tal:content="d_title" /></td>
65          </tr>
66        </span>
67      </table>       
68   
69    <form action="" method="post" class="group" onsubmit="return submit_once()"
70          tal:attributes="action info/action"
71          tal:define="rows python: info['items'];"
72          >
73      <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
74        <tr tal:repeat="row rows"
75          tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
76          <td align="left" valign="middle" style="width: 5px;"
77              tal:condition="python:is_so">
78            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
79                   tal:condition="is_so"
80                   tal:define="id row/id"
81                   tal:attributes="value id;
82                   id python:'cb_' + id;
83                   checked python:id in info['choosen_ids'];"
84                   />
85          </td>
86          <td><a href="view"
87                 tal:attributes="href string:${row/url}">
88            <strong tal:content="row/title" /></a>
89          </td>
90        </tr>
91      </table>
92      <table width="100%" cellspacing="0" cellpadding="2"
93             summary="contents of the folder"
94             class="folderButtons">
95        <tr tal:condition="python: is_so and info['items']">
96          <td align="left" valign="top" rowspan="3"></td>
97          <td align="left" valign="top">
98            <input type="button" value="button_select_all" class="context"
99                     onclick="someJavaScriptFunctionThatWillBeReplaced"
100                     i18n:attributes="value"
101                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
102                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
103                     />
104            <input type="submit" name="folder_delete:method" value="button_delete"
105                   class="destructive" i18n:attributes="value"
106                   tal:attributes="onclick python:'return window.confirm(\'%s\')' %
107                   (cpsmcat('description_confirm_delete'), )"
108                   />
109          </td>
110        </tr>
111      </table>
112    </form>
113    <form action="" method="post" class="group" onsubmit="return submit_once()"
114          tal:attributes="action string:${context/absolute_url}/create_level"
115          tal:define="rows python: info['items'];"
116          tal:condition="create_level"
117          >
118      <table width="100%" cellspacing="0" cellpadding="2"
119             summary="contents of the folder"
120             class="folderButtons">
121        <tr>
122          <td align="left" valign="top" rowspan="3"></td>
123          <td align="left" valign="top">
124            <input type="submit" name="create_level"
125                     class="destructive"
126                     tal:attributes="onclick python:'return window.confirm(\'Do you really want to register for Level %s?\')' % create_level;
127                     value string: Register Courses for Level ${create_level}"
128                     />
129            <font color="red">
130            <br /><br />
131            Creating the course list may take several minutes. Please be patient, don't click twice!
132            </font>                       
133          </td>
134        </tr>
135      </table>
136    </form>         
137
138  </span>
139  </span>
140  </metal:main>
141</metal:body>
142
Note: See TracBrowser for help on using the repository browser.