src/pyams_portal/interfaces.py
changeset 289 fca4100c1733
parent 263 87994557fc51
--- a/src/pyams_portal/interfaces.py	Fri Mar 26 16:32:52 2021 +0100
+++ b/src/pyams_portal/interfaces.py	Thu Aug 05 09:27:48 2021 +0200
@@ -228,9 +228,13 @@
                    required=True,
                    default=True)
 
+    container_css_class = TextLine(title=_("Container CSS class"),
+                                   description=_("CSS class applied to this slot container"),
+                                   required=False)
+
     xs_width = Int(title=_("Extra small device width"),
-                   description=_("Slot width, in columns count, on extra small devices (phones...); "
-                                 "set to 0 to hide the portlet"),
+                   description=_("Slot width, in columns count, on extra small devices "
+                                 "(phones...); set to 0 to hide the portlet"),
                    required=False,
                    min=0,
                    max=12)
@@ -243,15 +247,15 @@
                    max=12)
 
     md_width = Int(title=_("Medium devices width"),
-                   description=_("Slot width, in columns count, on medium desktop devices (>= 992 pixels); "
-                                 "set to 0 to hide the portlet"),
+                   description=_("Slot width, in columns count, on medium desktop devices "
+                                 "(>= 992 pixels); set to 0 to hide the portlet"),
                    required=False,
                    min=0,
                    max=12)
 
     lg_width = Int(title=_("Large devices width"),
-                   description=_("Slot width, in columns count, on large desktop devices (>= 1200 pixels); "
-                                 "set to 0 to hide the portlet"),
+                   description=_("Slot width, in columns count, on large desktop devices "
+                                 "(>= 1200 pixels); set to 0 to hide the portlet"),
                    required=False,
                    min=0,
                    max=12)
@@ -374,6 +378,11 @@
                     description=_("Two registered templates can't share the same name..."),
                     required=True)
 
+    css_class = TextLine(title=_("CSS class"),
+                         description=_("This CSS class can be included into main presentation "
+                                       "layout..."),
+                         required=False)
+
 
 class IPortalTemplateContainer(IContainer, IAttributeAnnotatable):
     """Portal template container interface"""