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

Last change on this file since 1760 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
Line 
1<metal:html>
2  <metal:body use-macro="here/waeup_content_master/macros/master">
3    <metal:block fill-slot="header" 
4                 tal:define="global info context/getStudyCourseInfo;
5                 global create_level info/create_level|nothing;
6                 global is_so info/is_so;
7                 "
8                 >
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>
14      <h3>
15         <span tal:condition="python:is_so and info">
16           <span tal:content="info/student/name" />:
17         </span>
18        <span tal:content="here/title_or_id" />
19      </h3>
20      <br />
21    </metal:block>
22    <metal:main fill-slot="main">
23      <table tal:define="sc python: info['course_doc']">
24        <tr>
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 Session:</td>
30          <td><span tal:content="python:context.portal_vocabularies.sessions.get(info['doc'].current_session)" /></td>
31        </tr>
32        <tr>
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>
37          <td width="220px">Current Study Mode:</td>
38          <td><span tal:content="python:context.portal_vocabularies.entry_modes.get(info['doc'].current_mode)" /></td>
39        </tr>       
40        <tr>
41          <td width="220px">Current Verdict:</td>
42          <td><span tal:content="info/verdict" /></td>
43        </tr>
44        <tr>
45          <td width="220px">Certificate:</td>
46          <td><span tal:content="sc/title" /></td>
47        </tr>
48        <tr>
49          <td>Certificate Id:</td>
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>       
67     
68      <form action="" method="post" class="group" onsubmit="return submit_once()"
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;"
76                tal:condition="python:is_so">
77              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
78                     tal:condition="is_so"
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>
85            <td><a href="view"
86                   tal:attributes="href string:${row/url}">
87              <strong tal:content="row/title" /></a>
88            </td>
89          </tr>
90        </table>
91        <table width="100%" cellspacing="0" cellpadding="2"
92               summary="contents of the folder"
93               class="folderButtons">
94          <tr tal:condition="python: is_so and info['items']">
95            <td align="left" valign="top" rowspan="3"></td>
96            <td align="left" valign="top">
97              <input type="button" value="button_select_all" class="context"
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                       />
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                     />
108            </td>
109          </tr>
110        </table>
111      </form>
112      <form action="" method="post" class="group" onsubmit="return submit_once()"
113            tal:attributes="action string:${context/absolute_url}/create_level"
114            tal:define="rows python: info['items'];"
115            tal:condition="create_level"
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">
123              <input type="submit" name="create_level"
124                       class="destructive"
125                       tal:attributes="onclick python:'return window.confirm(\'Do you really want to register for Level %s?\')' % create_level;
126                       value string: Register Courses for Level ${create_level}"
127                       />
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>                       
132            </td>
133          </tr>
134        </table>
135      </form>         
136    </metal:main>
137 
138  </metal:body>
139</metal:html>
Note: See TracBrowser for help on using the repository browser.