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

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

moves current_verdict to cprevious_verdict after session change
fix06Verdict: moves current_verdict to cprevious_verdict for all students in session 06

  • Property svn:keywords set to Id
File size: 5.7 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      <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
76        <tr tal:repeat="row rows"
77          tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
78          <td align="left" valign="middle" style="width: 5px;"
79              tal:condition="python:is_so">
80            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
81                   tal:condition="is_so"
82                   tal:define="id row/id"
83                   tal:attributes="value id;
84                   id python:'cb_' + id;
85                   checked python:id in info['choosen_ids'];"
86                   />
87          </td>
88          <td><a href="view"
89                 tal:attributes="href string:${row/url}">
90            <strong tal:content="row/title" /></a>
91          </td>
92        </tr>
93      </table>
94      <table width="100%" cellspacing="0" cellpadding="2"
95             summary="contents of the folder"
96             class="folderButtons">
97        <tr tal:condition="python: is_so and info['items']">
98          <td align="left" valign="top" rowspan="3"></td>
99          <td align="left" valign="top">
100            <input type="button" value="button_select_all" class="context"
101                     onclick="someJavaScriptFunctionThatWillBeReplaced"
102                     i18n:attributes="value"
103                     tal:attributes="onclick python:'toggleSelect(this, \'%s\', \'%s\')'
104                     % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
105                     />
106            <input type="submit" name="level_delete:method" value="button_delete"
107                   class="destructive" i18n:attributes="value"
108                   tal:attributes="onclick python:'return window.confirm(\'%s\')' %
109                   (cpsmcat('description_confirm_delete'), )"
110                   />
111          </td>
112        </tr>
113      </table>
114    </form>
115    <form action="" method="post" class="group" onsubmit="return submit_once()"
116          tal:attributes="action string:${context/absolute_url}/create_level"
117          tal:define="rows python: info['items'];"
118          tal:condition="create_level"
119          >
120      <table width="100%" cellspacing="0" cellpadding="2"
121             summary="contents of the folder"
122             class="folderButtons">
123        <tr>
124          <td align="left" valign="top" rowspan="3"></td>
125          <td align="left" valign="top">
126            <input type="submit" name="create_level"
127                     class="destructive"
128                     tal:attributes="onclick python:'return window.confirm(\'Do you really want to register for Level %s?\')' % create_level;
129                     value string: Register Courses for Level ${create_level}"
130                     />
131            <font color="red">
132            <br /><br />
133            Creating the course list may take several minutes. Please be patient, don't click twice!
134            </font>                       
135          </td>
136        </tr>
137      </table>
138    </form>         
139
140  </span>
141  </span>
142  </metal:main>
143</metal:body>
144
Note: See TracBrowser for help on using the repository browser.