Changeset 3611 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
6 Aug 2008, 14:25:17 (16 years ago)
Author:
Henrik Bettermann
Message:

implement lecturer module (for demo purposes only)

Location:
WAeUP_SRP/base/skins
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_default/srp_view.pt

    r3607 r3611  
    88      </span>     
    99   
    10       <span tal:condition="python: not getattr(context.campus.documents,'srp_home_doc',None)">
     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            >
    1113     
    1214        <h2>Welcome to the     
     
    1618          <br /><br />
    1719         
    18           <span tal:define="ca_view python: 'CourseAdvisers' in context.portal_membership.getAuthenticatedMember().getGroups()"
    19                 tal:condition="ca_view">The first-time access to the students section (Students tab above) my take some time. Your local roles are being determined.</span> 
     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">
    2026         
     27                You are registered lecturer of the following courses: <br /><br />
     28               
     29
     30          <table>
     31            <tr>
     32            <th align='center'>Code</th>
     33            <th align='center'>Title</th>
     34            <th align='center'>Semester</th>
     35            <th 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 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 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>
    2149       </span>
    2250       
  • WAeUP_SRP/base/skins/waeup_design/index_html.py

    r1785 r3611  
    1919if pm.isAnonymousUser():
    2020    return redirect("%s/srp_anonymous_view" % request.get('URL1'))
     21#    return redirect("http://uniben.edu/index.php")
     22
    2123elif context.isStudent():
    2224    return redirect("%s/srp_anonymous_view" % context.absolute_url())
    2325else:
    24         return redirect("%s/srp_view" % context.absolute_url())
     26    return redirect("%s/srp_view" % context.absolute_url())
    2527
     28
Note: See TracChangeset for help on using the changeset viewer.