Ignore:
Timestamp:
27 Jun 2024, 07:47:23 (3 months ago)
Author:
Henrik Bettermann
Message:

Implement NYSC request pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py

    r17395 r17822  
    2323from waeup.kofa.students.vocabularies import StudyLevelSource
    2424from kofacustom.nigeria.interfaces import GradingSystemSource
     25from waeup.kofa.schema import FormattedDate
    2526from kofacustom.nigeria.students.interfaces import (
    2627    INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance,
     
    215216        )
    216217
     218class INYSC(IKofaObject):
     219    """Student NYSC data.
     220    """
     221
     222    nysc = schema.Bool(
     223        title = u'NYSC',
     224        default = False,
     225        required = True,
     226        )
     227
     228    nysc_updated = schema.Datetime(
     229        title = _(u'NYSC request data last updated by student'),
     230        )
     231
     232    nysc_date_of_graduation = FormattedDate(
     233        title = _(u'Date of Graduation'),
     234        required = False,
     235        show_year = True,
     236        )
     237
     238    nysc_senate_info = schema.TextLine(
     239        title = _(u'Senate Info'),
     240        required = False,
     241        )
     242
    217243class ITiship(IKofaObject):
    218244    """Student tiship data.
     
    239265        )
    240266
    241     nysc = schema.Bool(
    242         title = _(u'Applying for NYSC'),
    243         default = False,
    244         required = True,
    245         )
    246 
    247267class ICustomStudentPersonalEdit(INigeriaStudentPersonalEdit):
    248268    """Interface for editing personal data by students.
     
    255275        )
    256276
    257     nysc = schema.Bool(
    258         title = _(u'Do you want to apply for NYSC?'),
    259         default = False,
    260         description = u'Ensure that all your school charges are paid up to date to your graduating session before making this nysc application.',
    261         required = True,
    262         )
    263 
    264277class ICustomUGStudentClearance(INigeriaUGStudentClearance):
    265278    """Representation of ug student clearance data.
     
    272285class ICustomStudent(ICustomStudentBase, ICustomUGStudentClearance,
    273286    ICustomPGStudentClearance, ICustomStudentPersonal, IMedicalHistory,
    274     ITiship):
     287    ITiship, INYSC):
    275288    """Representation of a student.
    276289    """
Note: See TracChangeset for help on using the changeset viewer.