Ignore:
Timestamp:
14 Oct 2014, 09:06:20 (10 years ago)
Author:
Henrik Bettermann
Message:

Customize academics section.

Location:
main/kofacustom.pcn/trunk/src/kofacustom/pcn/browser
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.pcn/trunk/src/kofacustom/pcn/browser/pages.py

    r11836 r11839  
    2020    SessionConfigurationAddFormPage, SessionConfigurationManageFormPage,
    2121    LoginPage, CertificatePage, CertificateManageFormPage, DepartmentPage,
    22     DepartmentManageFormPage)
    23 from waeup.kofa.university.interfaces import ICertificate
     22    DepartmentManageFormPage, CertificateAddFormPage, DepartmentAddFormPage)
     23from waeup.kofa.university.interfaces import IDepartment, ICertificate
    2424from kofacustom.pcn.interfaces import (
    2525    ICustomSessionConfiguration, ICustomSessionConfigurationAdd)
     
    4545    """
    4646    grok.template('departmentmanagepage')
     47    form_fields = grok.AutoFields(IDepartment).omit(
     48        'code', 'score_editing_disabled')
     49
     50class DepartmentAddFormPage(DepartmentAddFormPage):
     51    """Department index page.
     52    """
     53    form_fields = grok.AutoFields(IDepartment).omit('score_editing_disabled')
     54
     55class CertificatePage(CertificatePage):
     56    """Index page for certificates.
     57    """
     58    grok.template('certificatepage')
     59
     60    form_fields = grok.AutoFields(ICertificate).omit(
     61        'study_mode', 'start_level', 'end_level', 'school_fee_2',
     62        'school_fee_3', 'school_fee_4', 'ratio')
     63
     64class CertificateManageFormPage(CertificateManageFormPage):
     65    """Manage the properties of a `Certificate` instance.
     66    """
     67    grok.template('certificatemanagepage')
     68
     69    form_fields = grok.AutoFields(ICertificate).omit(
     70        'code', 'study_mode', 'start_level', 'end_level', 'school_fee_2',
     71        'school_fee_3', 'school_fee_4', 'ratio')
     72
     73class CertificateAddFormPage(CertificateAddFormPage):
     74    """Add-form to add certificate to a department.
     75    """
     76    form_fields = grok.AutoFields(ICertificate).omit(
     77        'study_mode', 'start_level', 'end_level', 'school_fee_2',
     78        'school_fee_3', 'school_fee_4', 'ratio')
Note: See TracChangeset for help on using the changeset viewer.