예제 #1
0
     "Signature",
     widget=ImageWidget(
         label=_("Signature"),
         description=_("Upload a scanned signature to be used on printed "
                       "analysis results reports. Ideal size is 250 pixels "
                       "wide by 150 high"),
     ),
 ),
 ReferenceField(
     "Departments",
     required=0,
     vocabulary_display_path_bound=sys.maxint,
     allowed_types=("Department", ),
     relationship="LabContactDepartment",
     vocabulary="_departmentsVoc",
     referenceClass=HoldingReference,
     multiValued=1,
     widget=ReferenceWidget(
         checkbox_bound=0,
         label=_("Departments"),
         description=_("The laboratory departments"),
     ),
 ),
 UIDReferenceField(
     "DefaultDepartment",
     required=0,
     vocabulary_display_path_bound=sys.maxint,
     vocabulary="_defaultDepsVoc",
     accessor="getDefaultDepartmentUID",
     widget=SelectionWidget(
         visible=True,
예제 #2
0
    widget=TextAreaWidget(
        description=_(
            "To be displayed below each Analysis Category section on results "
            "reports."),
        label=_("Comments")),
)

Department = ReferenceField(
    "Department",
    required=1,
    allowed_types=("Department",),
    relationship="AnalysisCategoryDepartment",
    referenceClass=HoldingReference,
    widget=ReferenceWidget(
        label=_("Department"),
        description=_("The laboratory department"),
        showOn=True,
        catalog_name=SETUP_CATALOG,
        base_query={
            "is_active": True,
            "sort_on": "sortable_title",
            "sort_order": "ascending"
        },
    )
)

SortKey = FloatField(
    "SortKey",
    validators=("SortKeyValidator",),
    widget=DecimalWidget(
        label=_("Sort Key"),
        description=_(