source: WAeUP_SRP/base/skins/waeup_student/study_course_view.pt @ 2508

Last change on this file since 2508 was 2490, checked in by Henrik Bettermann, 17 years ago

add warning: Accessing the course list may take longer. Please be patient, don't click the level link twice!

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