Ignore:
Timestamp:
22 May 2013, 19:07:23 (11 years ago)
Author:
Henrik Bettermann
Message:

Omit custom 2 fields on certificate pages and change field names via localization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.futminna/trunk/src/waeup/futminna/browser/pages.py

    r8619 r10205  
    1818import grok
    1919from waeup.kofa.browser.pages import (
    20     SessionConfigurationAddFormPage, SessionConfigurationManageFormPage)
     20    SessionConfigurationAddFormPage, SessionConfigurationManageFormPage,
     21    CertificatePage, CertificateManageFormPage)
     22from waeup.kofa.university.interfaces import ICertificate
    2123from waeup.futminna.interfaces import (
    2224    ICustomSessionConfiguration, ICustomSessionConfigurationAdd)
     
    3133    """
    3234    form_fields = grok.AutoFields(ICustomSessionConfiguration)
     35
     36class CustomCertificatePage(CertificatePage):
     37    """Index page for certificates.
     38    """
     39    form_fields = grok.AutoFields(ICertificate).omit(
     40        'ratio', 'custom_textline_2', 'custom_float_2')
     41
     42class CustomCertificateManageFormPage(CertificateManageFormPage):
     43    """Manage the properties of a `Certificate` instance.
     44    """
     45    form_fields = grok.AutoFields(ICertificate).omit(
     46        'ratio', 'custom_textline_2','custom_float_2')
Note: See TracChangeset for help on using the changeset viewer.