# HG changeset patch # User Damien Correia # Date 1542723568 -3600 # Node ID df8da54d790ab5584bc9d379a1f0c763ec64d65e # Parent df13285543de4031fb574d15adc1b8f3a371df26 Updated contact paragraph renderer diff -r df13285543de -r df8da54d790a src/pyams_default_theme/component/paragraph/contact.py --- 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): diff -r df13285543de -r df8da54d790a src/pyams_default_theme/component/paragraph/interfaces/contact.py --- 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)