Changeset 5616


Ignore:
Timestamp:
27 Dec 2010, 10:18:18 (14 years ago)
Author:
Henrik Bettermann
Message:

Implement second part of new accommodation allocation module. This part contains the new scripts and page templates needed. See ReadMe?.txt for further instructions.

Location:
WAeUP_SRP/trunk
Files:
11 added
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/uniben/actions.xml

    r4558 r5616  
    3131   <permission>View</permission>
    3232  </action>     
     33  <action title="My Accommodation" action_id="reserve_accommodation"
     34     category="student_navigation" condition_expr="member"
     35     url_expr="string:${portal_url}/campus/students/${member}/accommodations" visible="True"/>
    3336 </action-provider>
    3437</object>
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentFolderInfo.py

    r5161 r5616  
    8282    row = {}
    8383    row['id'] = subobject.getId()
     84    #if subobject.portal_type == 'StudentAccommodation': #and member_id != 'admin':
     85    #    continue
    8486    if subobject.portal_type == 'StudentAccommodation':
    8587        row['title'] = s_view_titles.get(subobject.portal_type,'') +' for Session %s' %\
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r4305 r5616  
    6161        <br />
    6262        <table tal:condition="is_staff" class="contentListing" width="100%" summary="content layout" id="folder_content">     
     63          <tr tal:condition="python:False" class='even ajaxtd'>
     64            <td><a href="view" tal:attributes="href string:${context/absolute_url}/accommodations">
     65                <strong>Accommodation Data</strong></a> </td>
     66            <td>
     67          <td />
     68          </tr>
    6369          <span tal:repeat="row rows">
    64             <tr tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     70            <tr tal:attributes="class python:test(repeat['row'].even(), 'odd ajaxtd','even ajaxtd')">
    6571              <td><a href="view" tal:attributes="href string:${row/url}">
    6672                  <strong tal:content="row/title" /></a> </td>
Note: See TracChangeset for help on using the changeset viewer.