| 1 | <metal:html> |
|---|
| 2 | <metal:body use-macro="here/main_template/macros/master"> |
|---|
| 3 | <metal:main fill-slot="main"> |
|---|
| 4 | |
|---|
| 5 | <span tal:condition="python: getattr(context.campus.documents,'srp_home_doc',None)"> |
|---|
| 6 | <div tal:define="doc python: context.campus.documents.srp_home_doc.getContent()" |
|---|
| 7 | tal:content="structure python:doc.wdrender()" /> |
|---|
| 8 | </span> |
|---|
| 9 | |
|---|
| 10 | <span tal:condition="python: not getattr(context.campus.documents,'srp_home_doc',None)" |
|---|
| 11 | tal:define="groups python: context.portal_membership.getAuthenticatedMember().getGroups()" |
|---|
| 12 | > |
|---|
| 13 | |
|---|
| 14 | <h2>Welcome to the |
|---|
| 15 | <br /><span tal:replace="here/portal_properties/title" /> of the <span tal:replace="here/portal_properties/institution_title" /></h2> |
|---|
| 16 | <br /> |
|---|
| 17 | You are logged in and viewing the portal's root folder. Please go to one of the sections above. |
|---|
| 18 | <br /><br /> |
|---|
| 19 | |
|---|
| 20 | <span tal:condition="python: 'CourseAdvisers' in groups"> |
|---|
| 21 | The first-time access to the students section (Students tab above) my take some time. Your local roles are being determined. |
|---|
| 22 | </span> |
|---|
| 23 | |
|---|
| 24 | <div tal:condition="python: 'Lecturers' in groups" |
|---|
| 25 | tal:define="info context/getLecturerCoursesInfo"> |
|---|
| 26 | |
|---|
| 27 | You are registered lecturer of the following courses: <br /><br /> |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | <table> |
|---|
| 31 | <tr> |
|---|
| 32 | <th style='text-align:center'>Code</th> |
|---|
| 33 | <th style='text-align:center'>Title</th> |
|---|
| 34 | <th style='text-align:center'>Semester</th> |
|---|
| 35 | <th style='text-align:center'></th> |
|---|
| 36 | </tr> |
|---|
| 37 | <tr tal:repeat="row info/courses" |
|---|
| 38 | tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> |
|---|
| 39 | <td style='text-align:center' width="50pt"> <a href="" tal:attributes="href row/course_url"><span tal:content="row/id" /></a></td> |
|---|
| 40 | <td width="400pt" tal:content="row/title"></td> |
|---|
| 41 | <td style='text-align:center' width="20pt"><span tal:content="row/semester" /></td> |
|---|
| 42 | <td> <a href="" tal:attributes="href row/list_url">[list students] </a></td> |
|---|
| 43 | </tr> |
|---|
| 44 | </table> |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | </div> |
|---|
| 49 | </span> |
|---|
| 50 | |
|---|
| 51 | </metal:main> |
|---|
| 52 | </metal:body> |
|---|
| 53 | </metal:html> |
|---|