コード例 #1
0
 StringField(
     'Phone',
     widget=StringWidget(label=_("Phone"), ),
 ),
 StringField(
     'Fax',
     widget=StringWidget(label=_("Fax"), ),
 ),
 StringField('EmailAddress',
             schemata='Address',
             widget=StringWidget(label=_("Email Address"), ),
             validators=('isEmail', )),
 AddressField(
     'PhysicalAddress',
     schemata='Address',
     widget=AddressWidget(label=_("Physical address"), ),
 ),
 AddressField(
     'PostalAddress',
     schemata='Address',
     widget=AddressWidget(label=_("Postal address"), ),
 ),
 AddressField(
     'BillingAddress',
     schemata='Address',
     widget=AddressWidget(label=_("Billing address"), ),
 ),
 StringField(
     'AccountType',
     schemata='Bank details',
     widget=StringWidget(label=_("Account Type"), ),
コード例 #2
0
ファイル: add.py プロジェクト: xispa/senaite.health
 def __init__(self, context, request):
     AnalysisRequestAddViewLIMS.__init__(self, context, request)
     self.templatename = self.request.get('tpl', '')
     self.w = AddressWidget()
コード例 #3
0
ファイル: patient.py プロジェクト: mstroehle/senaite.health
     'AgeSplitted',
     required=1,
     widget=SplittedDateWidget(label=_('Age'), ),
 ),
 ComputedField(
     'AgeSplittedStr',
     expression="context.getAgeSplittedStr()",
     widget=ComputedWidget(visible=False),
 ),
 AddressField(
     'CountryState',
     widget=AddressWidget(
         searchable=True,
         label=_("Country and state"),
         showLegend=True,
         showDistrict=True,
         showCopyFrom=False,
         showCity=False,
         showPostalCode=False,
         showAddress=False,
     ),
 ),
 RecordsField(
     'PatientIdentifiers',
     type='patientidentifiers',
     subfields=('IdentifierType', 'Identifier'),
     subfield_labels={
         'IdentifierType': _('Identifier Type'),
         'Identifier': _('Identifier')
     },
     subfield_sizes={
         'Identifier': 15,
コード例 #4
0
ファイル: patient.py プロジェクト: MichelZuniga/bika.health
     'BirthDateEstimated',
     default=False,
     widget=BooleanWidget(label=_('Birth date is estimated'), ),
 ),
 RecordsField(
     'AgeSplitted',
     required=1,
     widget=SplittedDateWidget(label=_('Age'), ),
 ),
 AddressField(
     'CountryState',
     widget=AddressWidget(
         label=_("Country and state"),
         showLegend=True,
         showDistrict=False,
         showCopyFrom=False,
         showCity=False,
         showPostalCode=False,
         showAddress=False,
     ),
 ),
 RecordsField(
     'PatientIdentifiers',
     type='patientidentifiers',
     subfields=('IdentifierType', 'Identifier'),
     subfield_labels={
         'IdentifierType': _('Identifier Type'),
         'Identifier': _('Identifier')
     },
     subfield_sizes={
         'Identifier': 15,