Updated form fields order
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 Mar 2015 11:58:56 +0100
changeset 1 c62b53e70d9d
parent 0 9c21b8e2ba46
child 2 a44a73ee12f9
Updated form fields order
src/pyams_i18n/zmi/negotiator.py
--- a/src/pyams_i18n/zmi/negotiator.py	Thu Feb 19 10:55:01 2015 +0100
+++ b/src/pyams_i18n/zmi/negotiator.py	Wed Mar 11 11:58:56 2015 +0100
@@ -33,14 +33,16 @@
 class NegotiatorPropertiesEditForm(AdminDialogEditForm):
     """Negotiator properties edit form"""
 
-    legend = _("Update languages negotiator properties")
-    fields = field.Fields(INegotiator)
-    ajax_handler = 'properties.json'
-
     @property
     def title(self):
         return self.context.__name__
 
+    legend = _("Update languages negotiator properties")
+
+    fields = field.Fields(INegotiator)
+    ajax_handler = 'properties.json'
+    edit_permission = 'system.manage'
+
     def updateWidgets(self, prefix=None):
         super(NegotiatorPropertiesEditForm, self).updateWidgets()
         self.widgets['server_language'].addClass('select2')