equal
deleted
inserted
replaced
10 # FOR A PARTICULAR PURPOSE. |
10 # FOR A PARTICULAR PURPOSE. |
11 # |
11 # |
12 |
12 |
13 __docformat__ = 'restructuredtext' |
13 __docformat__ = 'restructuredtext' |
14 |
14 |
|
15 from zope.interface import Attribute, Interface |
|
16 from zope.schema import Bool, Choice |
|
17 from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary |
15 |
18 |
16 # import standard library |
19 from pyams_i18n.schema import I18nTextLineField |
17 |
|
18 # import interfaces |
|
19 |
|
20 # import packages |
|
21 from zope.interface import Interface, Attribute |
|
22 from zope.schema import Bool, Choice |
|
23 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm |
|
24 |
20 |
25 from pyams_default_theme import _ |
21 from pyams_default_theme import _ |
26 |
22 |
27 |
23 |
28 CONTENT_POSITIONS = ( |
24 CONTENT_POSITIONS = ( |
58 required=False, |
54 required=False, |
59 vocabulary=CONTENT_POSITIONS_VOCABULARY, |
55 vocabulary=CONTENT_POSITIONS_VOCABULARY, |
60 default='right') |
56 default='right') |
61 |
57 |
62 can_display_map = Attribute("Check if location map can be displayed") |
58 can_display_map = Attribute("Check if location map can be displayed") |
|
59 |
|
60 button_label = I18nTextLineField(title=_("Contact button label"), |
|
61 description=_("Custom label of the contact button displayed by " |
|
62 "front-office template"), |
|
63 required=False) |