Changeset 942 for WAeUP_SRP/trunk


Ignore:
Timestamp:
25 Nov 2006, 21:09:18 (18 years ago)
Author:
Henrik Bettermann
Message:

reserve_accommodation only allowed for cleared_and_validated
several bugs fixed

Location:
WAeUP_SRP/trunk
Files:
1 added
7 edited

Legend:

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

    r941 r942  
    131131   <permission>View</permission>
    132132  </action>
    133   <action title="Support" action_id="support" category="student_navigation"
     133  <action title="Enquiries" action_id="support" category="student_navigation"
    134134     condition_expr="member" url_expr="string:${portal_url}/support_form"
    135135     visible="True">
  • WAeUP_SRP/trunk/profiles/default/types/University.xml

    r873 r942  
    6161 </action>
    6262 <action title="Delegate" action_id="localroles" category="object"
    63     condition_expr="" url_expr="string:${object_url}/folder_localrole_form"
     63    condition_expr="here/isSectionOfficer" url_expr="string:${object_url}/folder_localrole_form"
    6464    visible="True">
    6565  <permission value="Modify portal content"/>
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r902 r942  
    4848    if cpsdocument_edit_button:
    4949        psm = "Content changed!"
     50        if context.isStudent():
     51           action = "/clearance_edit_form"       
    5052    elif cpsdocument_edit_and_view_button:
    5153        if acknowledge:
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_lib.pt

    r937 r942  
    44<metal:block define-macro="header">
    55  <!--  Administration -->
    6   <tal:block condition="python: not(is_staff or is_sm or is_student)">
     6  <tal:block condition="python: not(is_staff or is_so or is_student)">
    77    <metal:block use-macro="here/error_not_found/macros/not_found" />
    88  </tal:block>
  • WAeUP_SRP/trunk/skins/waeup_student/contact_student_form.pt

    r911 r942  
    1111      <h3>Contact Student</h3>
    1212      <br />
    13       <span tal:condition="info/app_doc/app_email">
    1413      <span tal:condition="not:info/app_doc/app_email">
    1514      Sorry, the student did not provide an email address.
    1615      </span>
     16      <span tal:condition="info/app_doc/app_email">
    1717      <form id="form1" name="form1" method="post" action="mail2student">
    1818
  • WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py

    r892 r942  
    2121student = info['student']
    2222mode = 'create'
     23
     24if info['review_state'] != 'cleared_and_validated':
     25    return context.REQUEST.RESPONSE.redirect("%s/no_booking_allowed" % info['student'].absolute_url())
     26
    2327if info.has_key('acco') and info['acco']:
    2428    validate = REQUEST.has_key("cpsdocument_edit_button")
  • WAeUP_SRP/trunk/skins/waeup_student/support_form.pt

    r911 r942  
    33  <metal:body use-macro="here/main_template/macros/master">
    44    <metal:main fill-slot="main">
    5       <h3>Support Form</h3>
     5      <h3>Support/Enquiries Form</h3>
    66      <br />If you are having problems using the system please fill the form below with your correct details.<br /> <br />
    77      <form id="form1" name="form1" method="post" action="mail2admin">
Note: See TracChangeset for help on using the changeset viewer.