src/pyams_content/reference/pictograms/interfaces/__init__.py
changeset 516 a3f26cfd3094
parent 473 482e02c1f3d5
equal deleted inserted replaced
515:a1d5eb955e54 516:a3f26cfd3094
    18 # import interfaces
    18 # import interfaces
    19 from pyams_content.reference.interfaces import IReferenceInfo, IReferenceTable
    19 from pyams_content.reference.interfaces import IReferenceInfo, IReferenceTable
    20 from zope.annotation.interfaces import IAttributeAnnotatable
    20 from zope.annotation.interfaces import IAttributeAnnotatable
    21 
    21 
    22 # import packages
    22 # import packages
    23 from pyams_i18n.schema import I18nImageField
    23 from pyams_i18n.schema import I18nImageField, I18nTextLineField
    24 from zope.container.constraints import containers, contains
    24 from zope.container.constraints import containers, contains
    25 from zope.interface import Interface
    25 from zope.interface import Interface
    26 from zope.schema import List, Choice
    26 from zope.schema import List, Choice
    27 
    27 
    28 from pyams_content import _
    28 from pyams_content import _
    42     containers('.IPictogramTable')
    42     containers('.IPictogramTable')
    43 
    43 
    44     image = I18nImageField(title=_("Image"),
    44     image = I18nImageField(title=_("Image"),
    45                            description=_("Pictogram content"),
    45                            description=_("Pictogram content"),
    46                            required=True)
    46                            required=True)
       
    47 
       
    48     alt_title = I18nTextLineField(title=_("Accessibility title"),
       
    49                                   description=_("Alternate title used to describe image content"),
       
    50                                   required=False)
       
    51 
       
    52     header = I18nTextLineField(title=_('pictogram-header', default="Header"),
       
    53                                description=_("Default header associated with this pictogram"),
       
    54                                required=False)
    47 
    55 
    48 
    56 
    49 class IPictogramTable(IReferenceTable):
    57 class IPictogramTable(IReferenceTable):
    50     """Pictograms table interface"""
    58     """Pictograms table interface"""
    51 
    59