Changeset 2674 for WAeUP_SRP


Ignore:
Timestamp:
16 Nov 2007, 09:23:11 (17 years ago)
Author:
Henrik Bettermann
Message:

inform students why course registration is disabled

Location:
WAeUP_SRP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getStudyCourseInfo.py

    r2664 r2674  
    8686if review_state != 'content_addable' and student_review_state == 'school_fee_paid': #and context.isStudent():
    8787    wftool.doActionFor(context,'close_for_edit')
    88    
     88
    8989has_paid = student_review_state == 'school_fee_paid'
    9090
     
    9292               current_level not in levels and\
    9393               (previous_verdict in ('A','B','C','F','J','L','M') or\
    94                sbrain.level == '100' or\
    95                (sbrain.mode.startswith('de') and sbrain.level == '200'))
     94               current_level == '100' or\
     95               (sbrain.mode.startswith('de') and current_level == '200'))
     96               
     97missing_data = has_paid and\
     98               current_level not in levels and\
     99               not (previous_verdict or sbrain.level) and\
     100               not (current_level == '100' or\
     101               (sbrain.mode.startswith('de') and current_level == '200'))           
    96102
    97 
     103info['missing_data'] = missing_data
    98104levels.sort()
    99105info['create_level'] = None
    100106student_levels_voc = context.portal_vocabularies.student_levels
    101 if may_register:
     107if not missing_data:
    102108    info['create_level'] = current_level
    103109    info['create_level_str'] = student_levels_voc.get(current_level)
  • WAeUP_SRP/base/skins/waeup_student/study_course_view.pt

    r2648 r2674  
    136136                     value string: Register Courses for ${info/create_level_str}"
    137137                     />
    138             <font color="red">
    139             <br /><br />
    140             Creating the course list may take several minutes. Please be patient, don't click twice!
    141             </font>                       
    142138          </td>
    143139        </tr>
    144140      </table>
    145     </form>         
     141    </form> 
     142   
     143    <div tal:condition="not: create_level">
     144       <font color='red'>
     145          Your faculty has not yet provided the results and verdict of the previous session.
     146       </font>
     147    </div>
    146148
    147149  </span>
  • WAeUP_SRP/uniben/profiles/default/properties.xml

    r2629 r2674  
    44 <property name="enable_password_reset" type="boolean">True</property>
    55 <property name="enable_portal_joining" type="boolean">False</property>
    6  <property name="session" type="string">2006/2007</property>
     6 <property name="session" type="string">2007/2008</property>
    77 <property name="static_dir" type="string">static/</property>
    88</site>
Note: See TracChangeset for help on using the changeset viewer.