Added widget template for hidden mode
authorThierry Florac <thierry.florac@onf.fr>
Thu, 08 Oct 2015 09:30:56 +0200
changeset 53 68678e37a77a
parent 52 229a501edd44
child 54 59683c264d94
Added widget template for hidden mode
src/pyams_security/widget/__init__.py
--- a/src/pyams_security/widget/__init__.py	Thu Oct 08 09:30:25 2015 +0200
+++ b/src/pyams_security/widget/__init__.py	Thu Oct 08 09:30:56 2015 +0200
@@ -204,6 +204,7 @@
 
 @widgettemplate_config(mode='input', template='templates/principal-input.pt', layer=IFormLayer)
 @widgettemplate_config(mode='display', template='templates/principal-display.pt', layer=IFormLayer)
+@widgettemplate_config(mode='hidden', template='templates/principal-hidden.pt', layer=IFormLayer)
 @implementer_only(IPrincipalWidget)
 class PrincipalWidget(HTMLInputWidget, Widget):
     """Principal widget"""