Changeset 3985 for WAeUP_SRP


Ignore:
Timestamp:
27 Feb 2009, 20:22:29 (16 years ago)
Author:
Henrik Bettermann
Message:

getAccommodationInfo.py: deactivate histel booking fro graduates
srp_anonymous_view.pt: Use portal title for headline
portlet_student_workflow_display.pt: show state graduated

Location:
WAeUP_SRP/trunk/skins
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_accommodation/getAccommodationInfo.py

    r3962 r3985  
    103103    logger.info('%s has invalid session %s' % (student_id,student_record.session))
    104104
    105 if level is None or end_level is None or student_record.review_state == 'deactivated':
     105if level is None or end_level is None or student_record.review_state in ('deactivated','graduated'):
    106106    pass
    107107elif arrived:
     
    109109        booking_allowed = student_record.review_state in new_states
    110110    else:
    111         booking_allowed = not (level % 100)
     111        booking_allowed = not (level % 100) 
    112112elif previous:
    113113    booking_allowed = student_record.verdict in ('A','B',)
  • WAeUP_SRP/trunk/skins/waeup_default/srp_anonymous_view.pt

    r3607 r3985  
    1111
    1212      <h2>Welcome to the     
    13       <br />New Student Registration Portal of the <span tal:replace="here/portal_properties/institution_title" /></h2>
     13      <br /><span tal:replace="here/portal_properties/title" /> of the <span tal:replace="here/portal_properties/institution_title" /></h2>
    1414             
    1515      <strong>This is the default frontpage of the Student Registration Portal (SRP) which is part
  • WAeUP_SRP/trunk/skins/waeup_default/srp_view.pt

    r3611 r3985  
    1313     
    1414        <h2>Welcome to the     
    15           <br />Student Registration Portal of the <span tal:replace="here/portal_properties/institution_title" /></h2>
     15          <br /><span tal:replace="here/portal_properties/title" /> of the <span tal:replace="here/portal_properties/institution_title" /></h2>
    1616          <br />
    1717          You are logged in and viewing the portal's root folder. Please go to one of the sections above.   
  • WAeUP_SRP/trunk/skins/waeup_layout/portlet_student_workflow_display.pt

    r3769 r3985  
    7777  <span tal:condition="python:info['review_state']=='returning'">
    7878  <tr><td class="active">
    79    
    8079    Returning
    81 
    8280  </td></tr>
    8381  </span>
     82  <span tal:condition="python:info['review_state']!='returning'">
     83  <tr><td>
     84    Returning
     85  </td></tr>
     86  </span> 
    8487  <span tal:condition="python:info['review_state']=='school_fee_paid'">
    8588  <tr><td class="active">
     
    109112  <tr><td class="active">
    110113    <a href="" tal:attributes="href string:${info/url}/student_view">
    111     Courses vaildated
     114    Courses validated
    112115    </a>
    113116  </td></tr>
     
    115118  <span tal:condition="python:info['review_state']!='courses_validated'">
    116119  <tr><td>
    117     Courses vaildated
     120    Courses validated
    118121  </td></tr>
    119122  </span>     
     123  <span tal:condition="python:info['review_state']=='graduated'">
     124  <tr><td class="active">
     125    <a href="" tal:attributes="href string:${info/url}/student_view">
     126    Graduated
     127    </a>
     128  </td></tr>
     129  </span> 
     130  <span tal:condition="python:info['review_state']!='graduated'">
     131  <tr><td>
     132    Graduated
     133  </td></tr>
     134  </span>   
    120135</table>
    121136
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentWorkflowInfo.py

    r1874 r3985  
    3232                                           'courses_registered',
    3333                                           'courses_validated',
     34                                           'graduated',
    3435                                           )
    3536info['tr'] = review_state in  ('returning',)
Note: See TracChangeset for help on using the changeset viewer.