Changeset 849


Ignore:
Timestamp:
12 Nov 2006, 07:27:27 (18 years ago)
Author:
Henrik Bettermann
Message:

accommodation_pin_form renamed
student action 'Book Hostel' moved to student_navigation 'My Accommodation'
StudentAccommodation? object always invisible for student in in student_view

Location:
WAeUP_SRP/trunk
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/actionicons.xml

    r824 r849  
    229229              action_id="registration" title="My Study"
    230230              priority="1" icon_expr="blank.gif"/>
     231 <action-icon category="student_navigation"
     232              action_id="reserve_accommodation"
     233              title="My Accommodation" priority="2"
     234              icon_expr="blank.gif"/>
    231235 <action-icon category="student_navigation"
    232236              action_id="prospectus" title="Prospectus"
    233               priority="2" icon_expr="blank.gif"/>
    234  <action-icon category="student_navigation" 
    235               action_id="contact_student" title="Contact"
    236               priority="3" icon_expr="blank.gif"/>             
     237              priority="3" icon_expr="blank.gif"/>
     238 <action-icon category="student_navigation"
     239              action_id="contact_student" title="Support"
     240              priority="4" icon_expr="blank.gif"/>
    237241 <action-icon category="student_object" action_id="slip"
    238242              title="Acknowledegement Slip" priority="1"
     
    250254              title="Check if admitted" priority="3"
    251255              icon_expr="bell.png"/>
    252  <action-icon category="student" action_id="reserve_accommodation"
    253               title="Book Hostel" priority="3"
    254               icon_expr="bell.png"/>
    255256 <action-icon category="student" action_id="register_courses"
    256257              title="Register Courses" priority="4"
  • WAeUP_SRP/trunk/profiles/default/actions.xml

    r831 r849  
    161161  </action>
    162162
    163   <action title="Book Hostel" action_id="reserve_accommodation"
    164      category="student" condition_expr="member"
     163  <action title="My Accommodation" action_id="reserve_accommodation"
     164     category="student_navigation" condition_expr="member"
    165165     url_expr="string:${portal_url}/reserve_accommodation" visible="True"/>
    166166   <permission>View</permission>
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r845 r849  
    124124        row['s_edit_link'] = "%s/%s" % (soo.absolute_url(),se_link)
    125125    row['review_state'] = so.review_state
    126     row['display'] = so.review_state in ('opened','closed','public','bed_reserved',) #or\
    127                      #so.portal_type in ("StudentAccommodation","StudentStudyCourse")
     126    row['display'] = so.review_state in ('opened','closed',)
    128127    items.append(row)
    129128info['items'] = items
  • WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py

    r835 r849  
    4747                      )
    4848if psm == 'invalid':
    49     return context.accommodation_pin_form(rendered = res,
     49    return context.accommodation_pin_edit_form(rendered = res,
    5050                                 psm = "Please correct your input.",
    5151                                 #psm = "%s, %s" % (psm,ds),
     
    5454                                 )
    5555elif psm == '':
    56     return context.accommodation_pin_form(rendered = res,
     56    return context.accommodation_pin_edit_form(rendered = res,
    5757                                 psm = None,
    5858                                 mode = mode,
     
    6666        code,bed = pa.searchAndReserveBed(s_id,"%s_%s" % (info['sex'],ds.get('student_status')))
    6767        if code < 0:
    68             return context.accommodation_pin_form(rendered = res,
     68            return context.accommodation_pin__edit_form(rendered = res,
    6969                                 psm = bed,
    7070                                 mode = mode,
Note: See TracChangeset for help on using the changeset viewer.