Added form header viewlet
authorThierry Florac <thierry.florac@onf.fr>
Thu, 08 Oct 2015 09:17:56 +0200
changeset 31 725a69f6cd33
parent 30 0adccc351f22
child 32 8c6c68da351a
Added form header viewlet
src/pyams_form/viewlet.py
--- a/src/pyams_form/viewlet.py	Thu Oct 08 09:17:34 2015 +0200
+++ b/src/pyams_form/viewlet.py	Thu Oct 08 09:17:56 2015 +0200
@@ -17,7 +17,7 @@
 
 # import interfaces
 from pyams_form.interfaces.form import IFormViewletsManager, IFormPrefixViewletsManager, IWidgetsPrefixViewletsManager, \
-    IWidgetsSuffixViewletsManager, IFormSuffixViewletsManager, IFormLayer
+    IWidgetsSuffixViewletsManager, IFormSuffixViewletsManager, IFormLayer, IFormHeaderViewletsManager
 
 # import packages
 from pyams_viewlet.manager import WeightOrderedViewletManager, viewletmanager_config
@@ -29,6 +29,12 @@
     """Base form viewlet manager"""
 
 
+@viewletmanager_config(name='form_header', layer=IFormLayer)
+@implementer(IFormHeaderViewletsManager)
+class FormHeaderViewletManager(FormViewletManager):
+    """Form header viewlet manager, display in modal's form dialog header"""
+
+
 @viewletmanager_config(name='form_prefix', layer=IFormLayer)
 @implementer(IFormPrefixViewletsManager)
 class FormPrefixViewletManager(FormViewletManager):