Changeset 2570 for WAeUP_SRP


Ignore:
Timestamp:
7 Nov 2007, 13:11:30 (17 years ago)
Author:
joachim
Message:

allow removal only for deaktivated students

Location:
WAeUP_SRP/base/skins/waeup_student
Files:
2 edited

Legend:

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

    r2417 r2570  
    7676        student['deleted'] = delete and student_id in ids
    7777        if student_id in brains_dict.keys():
    78             student['found'] = True
    79             student['id'] = brains_dict[student_id].id
    80             student['jamb_reg_no'] = brains_dict[student_id].jamb_reg_no
    81             student['name'] = brains_dict[student_id].name
    82             student['matric_no'] = brains_dict[student_id].matric_no
     78            brain = brains_dict[student_id]
     79            student['id'] = brain.id
     80            student['review_state'] = brain.review_state
     81            student['jamb_reg_no'] = brain.jamb_reg_no
     82            student['name'] = brain.name
     83            student['matric_no'] = brain.matric_no
     84            if brain.review_state == "deaktivated":
     85                student['found'] = True
     86            else:
     87                student['found'] = False
    8388        else:
    8489            student['found'] = False
  • WAeUP_SRP/base/skins/waeup_student/remove_students_form.pt

    r2419 r2570  
    9090                      <span tal:content="student/id" tal:condition="not: student/show_checkbox" tal:omit-tag="" />
    9191                    </td>   
     92                    <td><span tal:replace="student/review_state" /></td>   
    9293                    <td>
    9394                      <span tal:replace="student/name" />
Note: See TracChangeset for help on using the changeset viewer.