Ignore:
Timestamp:
27 Sep 2016, 08:33:19 (8 years ago)
Author:
Henrik Bettermann
Message:

More fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/customers/interfaces.py

    r14190 r14191  
    1919from zope import schema
    2020from waeup.ikoba.interfaces import IIkobaObject
     21from waeup.ikoba.schema import FormattedDate
    2122from waeup.ikoba.customers.interfaces import (
    2223    ICustomer, ICustomerDocument, ICustomerPDFDocument, IContract)
    2324from waeup.ikoba.customers.vocabularies import (
    24     ConCatProductSource, CustomerDocumentSource)
     25    ConCatProductSource, CustomerDocumentSource, nats_vocab)
    2526from waeup.ikoba.products.productoptions import ProductOptionField
    2627from ikobacustom.uniben.interfaces import MessageFactory as _
     
    5152
    5253    """
     54
     55    title_rank = schema.TextLine(
     56        title = _(u'Title/Rank'),
     57        required = False,
     58        )
     59
     60    department = schema.TextLine(
     61        title = _(u'Department/Faculty/Institute'),
     62        required = False,
     63        )
     64
     65    date_of_birth = FormattedDate(
     66        title = _(u'Date of Birth'),
     67        required = False,
     68        show_year = True,
     69        )
     70
     71    nationality = schema.Choice(
     72        vocabulary = nats_vocab,
     73        title = _(u'Current Nationality'),
     74        required = False,
     75        )
     76
     77    address = schema.Text(
     78        title = _(u'Affiliation/Address'),
     79        required = False,
     80        )
     81
     82    app_dates = schema.Text(
     83        title = _(u'Date of Appointment as Uniben staff'),
     84        description = u'State periods nominee had a break in service from '
     85                       'UNIBEN service (including leave of absence), '
     86                       'but excluding training/study/sabbatical leave',
     87        required = False,
     88        )
    5389
    5490    bib_cit = schema.Text(
     
    173209    """
    174210
     211    title_rank = schema.TextLine(
     212        title = _(u'Title/Rank'),
     213        required = True,
     214        )
     215
     216    department = schema.TextLine(
     217        title = _(u'Department/Faculty/Institute'),
     218        required = True,
     219        )
     220
     221    date_of_birth = FormattedDate(
     222        title = _(u'Date of Birth'),
     223        required = True,
     224        show_year = True,
     225        )
     226
     227    nationality = schema.Choice(
     228        vocabulary = nats_vocab,
     229        title = _(u'Current Nationality'),
     230        required = True,
     231        )
     232
     233    address = schema.Text(
     234        title = _(u'Affiliation/Address'),
     235        required = True,
     236        )
     237
     238    app_dates = schema.Text(
     239        title = _(u'Date of Appointment as Uniben staff'),
     240        description = u'State periods nominee had a break in service from '
     241                       'UNIBEN service (including leave of absence), '
     242                       'but excluding training/study/sabbatical leave',
     243        required = True,
     244        )
     245
    175246    bib_cit = schema.Text(
    176247        title = _(u'Biographical Citation'),
Note: See TracChangeset for help on using the changeset viewer.