size="40",
            i18n_domain='EEAContentTypes',
            maxValues=5,
        ),
        i18n_domain="plone",
        searchable=True,
        validators=('maxWords',)
    ),

    public.TextField(
        name='imageNote',
        index="ZCTextIndex|TextIndex:brains",
        widget=public.TextAreaWidget(
            label="Image Note",
            description="Enter a note about this image.",
            label_msgid='EEAContentTypes_label_imageNote',
            description_msgid='EEAContentTypes_help_imageNote',
            i18n_domain='EEAContentTypes',
        )
    ),

    public.StringField(
        name='imageSource',
        index="FieldIndex:brains",
        widget=public.StringWidget(
            label="Image Source",
            description="Enter the source of this image.",
            label_msgid='EEAContentTypes_label_imageSource',
            description_msgid='EEAContentTypes_help_imageSource',
            i18n_domain='EEAContentTypes',
        )
         description=_(
             u"Select which field of the form has the citizen's email"),
     ),
 ),
 atapi.TextField(
     'message_top_description_spanish',
     languageIndependent=True,
     schemata='messages',
     searchable=0,
     required=0,
     allowable_content_types='text/plain',
     default_output_type='text/plain',
     default_content_type='text/plain',
     widget=atapi.TextAreaWidget(
         label=_(u'Override the value of the payment title in spanish'),
         description=
         _(u"Write here the spanish text that will override the default name of the payment coming from the payment service configuration"
           ),
     ),
 ),
 atapi.TextField(
     'message_top_description_basque',
     languageIndependent=True,
     schemata='messages',
     searchable=0,
     required=0,
     allowable_content_types='text/plain',
     default_output_type='text/plain',
     default_content_type='text/plain',
     widget=atapi.TextAreaWidget(
         label=_(u'Override the value of the payment title in basque'),
         description=
Exemple #3
0
 atapi.StringField(
     name='title',
     widget=atapi.StringWidget(
         label=_(u'Poi_label_tracker_title', default=u"Tracker name"),
         description=_(
             u'Poi_help_tracker_title',
             default=u"Enter a descriptive name for this tracker"),
     ),
     required=True,
     accessor="Title",
     searchable=True),
 atapi.TextField(
     name='description',
     widget=atapi.TextAreaWidget(
         label=_(u'Poi_label_tracker_description',
                 default=u"Tracker description"),
         description=_(u'Poi_help_tracker_description',
                       default=u"Describe the purpose of this tracker"),
     ),
     use_portal_factory="1",
     accessor="Description",
     searchable=True,
     allowable_content_types=('text/plain'),
 ),
 atapi.TextField(
     name='helpText',
     allowable_content_types=('text/plain', 'text/structured', 'text/html',
                              'application/msword'),
     widget=atapi.RichWidget(
         label=_(u'Poi_label_helpText', default=u"Help text"),
         description=_(
             u'Poi_help_helpText',
Exemple #4
0

htmlblock_schema = ATContentTypeSchema.copy() + \
    textblock.default_schema.copy()

htmlblock_schema['title'].required = False
htmlblock_schema['description'].widget.visible = {
    'view': 'invisible',
    'edit': 'invisible'
}

htmlblock_schema['text'].validators = ()
htmlblock_schema['text'].default_output_type = 'text/html'
htmlblock_schema['text'].widget = atapi.TextAreaWidget(label=_(
    u'label_html', default=u'HTML'),
                                                       description='',
                                                       rows=32,
                                                       cols=70)

finalize(htmlblock_schema)


class HTMLBlock(textblock.TextBlock):
    """HTML block for books.
    """

    security = ClassSecurityInfo()
    implements(IHTMLBlock)
    schema = htmlblock_schema

    atapi.StringField(
        name='title',
        searchable=True,
        widget=atapi.StringWidget(
            label='Title',
            label_msgid='label_title',
            i18n_domain='plone',
        )
    ),

    atapi.TextField(
        name='description',
        searchable=True,
        widget=atapi.TextAreaWidget(
            label='Description',
            label_msgid='label_description',
            i18n_domain='plone',
        )
    ),
    atapi.BooleanField(
        'show_title',
        accessor='getShowTitle',
        widget=atapi.BooleanWidget(
            label=_(u'label_show_title', default=u"Show title"),
            description=_(
                u'help_show_title',
                default=u"Show title in page composition."
            )
        ),
        default=1,
        languageIndependent=True,