Added inner attribute to handle legend
authorThierry Florac <thierry.florac@onf.fr>
Mon, 11 Jun 2018 17:27:57 +0200
changeset 98 c2bd8816b93d
parent 97 926d36ad8b8c
child 99 29e2004100b3
Added inner attribute to handle legend
src/pyams_portal/zmi/page.py
--- a/src/pyams_portal/zmi/page.py	Mon Jun 11 15:31:15 2018 +0200
+++ b/src/pyams_portal/zmi/page.py	Mon Jun 11 17:27:57 2018 +0200
@@ -122,6 +122,7 @@
         return self.context.title
 
     legend = _("Edit template configuration")
+    override_legend = _("Override parent template")
 
     @property
     def fields(self):
@@ -142,7 +143,7 @@
         if self.getContent().can_inherit:
             group = NamedWidgetsGroup(self, 'template_properties', self.widgets,
                                       ('override_parent',),
-                                      legend=_("Override parent template"),
+                                      legend=self.override_legend,
                                       css_class='inner',
                                       switch=True,
                                       checkbox_switch=True,