Updated contact, added phone_number and company fields dev-dc
authorDamien Correia
Tue, 13 Nov 2018 14:50:38 +0100
branchdev-dc
changeset 218 549c215da6ce
parent 217 58c9992cb4dc
child 219 b82dc95dff03
child 237 df13285543de
Updated contact, added phone_number and company fields
src/pyams_default_theme/component/paragraph/contact.py
--- a/src/pyams_default_theme/component/paragraph/contact.py	Tue Nov 13 14:48:49 2018 +0100
+++ b/src/pyams_default_theme/component/paragraph/contact.py	Tue Nov 13 14:50:38 2018 +0100
@@ -82,7 +82,7 @@
     settings_interface = IContactParagraphDefaultRendererSettings
 
     if have_gis:
-        context_attrs = ('name', 'photo', 'gps_location', 'address', 'contact_email')
+        context_attrs = ('name', 'photo', 'company', 'gps_location', 'address', 'phone_number', 'contact_email')
     else:
-        context_attrs = ('name', 'photo', 'address', 'contact_email')
-    i18n_context_attrs = ('title', 'charge', )
+        context_attrs = ('name', 'photo', 'company', 'address', 'phone_number', 'contact_email')
+    i18n_context_attrs = ('title', 'charge',)