Changeset 10788


Ignore:
Timestamp:
22 Nov 2013, 07:12:48 (11 years ago)
Author:
Henrik Bettermann
Message:

More translations.

Hide some fields in applicant forms.

Location:
main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/browser.py

    r10770 r10788  
    2121from waeup.kofa.applicants.browser import (
    2222    ApplicantRegistrationPage, ApplicantsContainerPage)
     23from waeup.kofa.applicants.interfaces import IApplicant, IApplicantEdit
    2324from kofacustom.nigeria.applicants.browser import (
    2425    NigeriaApplicantDisplayFormPage,
    25     NigeriaPDFApplicationSlip)
     26    NigeriaPDFApplicationSlip,
     27    ApplicantDisplayFormPage,
     28    ApplicantManageFormPage,
     29    ApplicantEditFormPage)
    2630
    2731from kofacustom.ekodisco.interfaces import MessageFactory as _
    2832
     33class CustomApplicantDisplayFormPage(ApplicantDisplayFormPage):
     34    """A display view for applicant data.
     35    """
     36    grok.template('applicantdisplaypage')
     37
     38    form_fields = grok.AutoFields(IApplicant).omit(
     39        'locked', 'course_admitted', 'password', 'suspended',
     40        'course2', 'notice', 'student_id')
     41
     42class CustomApplicantManageFormPage(ApplicantManageFormPage):
     43    """A full edit view for applicant data.
     44    """
     45    grok.template('applicanteditpage')
     46
     47    form_fields = grok.AutoFields(IApplicant).omit('course2', 'notice', 'student_id')
     48    form_fields['applicant_id'].for_display = True
     49
     50class CustomApplicantEditFormPage(ApplicantEditFormPage):
     51    """An applicant-centered edit view for applicant data.
     52    """
     53    grok.template('applicanteditpage')
     54
     55    form_fields = grok.AutoFields(IApplicantEdit).omit(
     56        'locked', 'course_admitted', 'student_id',
     57        'suspended', 'course2', 'notice'
     58        )
     59    form_fields['applicant_id'].for_display = True
     60    form_fields['reg_number'].for_display = True
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/applicants/utils.py

    r10783 r10788  
    3535      'fossil': ['Fossil Energy', 'FS'],
    3636      }
     37
     38    SEPARATORS_DICT = {
     39      }
  • main/kofacustom.ekodisco/trunk/src/kofacustom/ekodisco/locales/en/LC_MESSAGES/waeup.kofa.po

    r10784 r10788  
    175175msgstr "Assigned Contract:"
    176176
     177msgid "Admitted Course of Study"
     178msgstr "Assigned Contract"
     179
    177180msgid "1st Choice Course of Study"
    178181msgstr "Desired Contract"
Note: See TracChangeset for help on using the changeset viewer.