Updated fields order
authorThierry Florac <thierry.florac@onf.fr>
Mon, 04 Jun 2018 15:00:16 +0200
changeset 575 e61e7effa80a
parent 574 1c2320ddd9c6
child 576 12171cf62cc4
Updated fields order
src/pyams_content/component/paragraph/contact.py
src/pyams_content/component/paragraph/interfaces/contact.py
--- a/src/pyams_content/component/paragraph/contact.py	Mon Jun 04 14:43:20 2018 +0200
+++ b/src/pyams_content/component/paragraph/contact.py	Mon Jun 04 15:00:16 2018 +0200
@@ -48,14 +48,14 @@
 
     name = FieldProperty(IContactParagraph['name'])
     charge = FieldProperty(IContactParagraph['charge'])
+    contact_email = FieldProperty(IContactParagraph['contact_email'])
+    contact_form = FieldProperty(IContactParagraph['contact_form'])
     _photo = FileProperty(IContactParagraph['photo'])
 
     if have_gis:
         gps_location = FieldProperty(IContactParagraph['gps_location'])
 
     address = FieldProperty(IContactParagraph['address'])
-    contact_email = FieldProperty(IContactParagraph['contact_email'])
-    contact_form = FieldProperty(IContactParagraph['contact_form'])
     renderer = FieldProperty(IContactParagraph['renderer'])
 
     @property
--- a/src/pyams_content/component/paragraph/interfaces/contact.py	Mon Jun 04 14:43:20 2018 +0200
+++ b/src/pyams_content/component/paragraph/interfaces/contact.py	Mon Jun 04 15:00:16 2018 +0200
@@ -54,6 +54,15 @@
                                description=_("Label of contact function"),
                                required=False)
 
+    contact_email = MailAddressField(title=_("Email address"),
+                                     description=_("Contact email address"),
+                                     required=False)
+
+    contact_form = InternalReference(title=_("Contact form"),
+                                     description=_("Reference of contact form"),
+                                     required=False,
+                                     content_type=FORM_CONTENT_TYPE)
+
     photo = ImageField(title=_("Photo"),
                        description=_("Use 'browse' button to select contact picture"),
                        required=False)
@@ -66,15 +75,6 @@
     address = Text(title=_("Address"),
                    required=False)
 
-    contact_email = MailAddressField(title=_("Email address"),
-                                     description=_("Contact email address"),
-                                     required=False)
-
-    contact_form = InternalReference(title=_("Contact form"),
-                                     description=_("Reference of contact form"),
-                                     required=False,
-                                     content_type=FORM_CONTENT_TYPE)
-
     renderer = Choice(title=_("Contact template"),
                       description=_("Presentation template used for this contact"),
                       vocabulary=CONTACT_PARAGRAPH_RENDERERS,