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
Files:
3 added
4 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')
  • main/kofacustom.pcn/trunk/src/kofacustom/pcn/locales/en/LC_MESSAGES/waeup.kofa.po

    r11837 r11839  
    280280msgid "WAeUP.Kofa - Student Management System"
    281281msgstr "WAeUP.Kofa - Online Registration System (Demo Version)"
     282
     283msgid "Initial School Fee"
     284msgstr "Registration Fee"
  • main/kofacustom.pcn/trunk/src/kofacustom/pcn/utils/utils.py

    r11687 r11839  
    1818"""Customize general helper utilities for Kofa.
    1919"""
     20from copy import deepcopy
    2021from waeup.kofa.utils.utils import KofaUtils
    2122
     
    2425    """
    2526
     27    INST_TYPES_DICT = {
     28        'none': '',
     29        }
     30
     31    STUDY_MODES_DICT = {
     32        'na': 'not applicable',
     33        }
     34
     35    APP_CATS_DICT = {
     36        'pal': 'Pharmacist Annual License',
     37        'pl': 'Premises License',
     38        'ptap': 'Pharmacy Technician Annual Permit',
     39        'ppmvl': 'Patent and Proprietary Medicine Vendor License',
     40        'pmrp': 'Pharmaceutical and Medical Representative Permit',
     41        'sop': 'Scientific Office Permit',
     42        }
     43
     44    PAYMENT_CATEGORIES = {
     45        'registration': 'Registration Fee',
     46        }
     47
     48    SELECTABLE_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES)
     49
     50    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
     51
     52    BALANCE_PAYMENT_CATEGORIES = {
     53        'registration': 'Registration Fee',
     54        }
     55
     56    MODE_GROUPS = {
     57        'All': ('all',),
     58        }
Note: See TracChangeset for help on using the changeset viewer.