--- a/src/pyams_default_theme/component/paragraph/contact.py Tue Nov 20 15:18:10 2018 +0100
+++ b/src/pyams_default_theme/component/paragraph/contact.py Tue Nov 20 15:19:28 2018 +0100
@@ -43,6 +43,7 @@
photo_position = FieldProperty(IContactParagraphDefaultRendererSettings['photo_position'])
display_map = FieldProperty(IContactParagraphDefaultRendererSettings['display_map'])
map_position = FieldProperty(IContactParagraphDefaultRendererSettings['map_position'])
+ button_label = FieldProperty(IContactParagraphDefaultRendererSettings['button_label'])
@property
def can_display_photo(self):
--- a/src/pyams_default_theme/component/paragraph/interfaces/contact.py Tue Nov 20 15:18:10 2018 +0100
+++ b/src/pyams_default_theme/component/paragraph/interfaces/contact.py Tue Nov 20 15:19:28 2018 +0100
@@ -22,6 +22,7 @@
from zope.schema import Bool, Choice
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
+from pyams_i18n.schema import I18nTextLineField
from pyams_default_theme import _
@@ -60,3 +61,8 @@
default='right')
can_display_map = Attribute("Check if location map can be displayed")
+
+ button_label = I18nTextLineField(title=_("Button label"),
+ description=_("Label of the navigation button displayed by "
+ "front-office template"),
+ required=False)