src/pyams_portal/interfaces.py
changeset 289 fca4100c1733
parent 263 87994557fc51
equal deleted inserted replaced
288:390514bce78a 289:fca4100c1733
   226     visible = Bool(title=_("Visible slot?"),
   226     visible = Bool(title=_("Visible slot?"),
   227                    description=_("Select 'no' to hide this slot..."),
   227                    description=_("Select 'no' to hide this slot..."),
   228                    required=True,
   228                    required=True,
   229                    default=True)
   229                    default=True)
   230 
   230 
       
   231     container_css_class = TextLine(title=_("Container CSS class"),
       
   232                                    description=_("CSS class applied to this slot container"),
       
   233                                    required=False)
       
   234 
   231     xs_width = Int(title=_("Extra small device width"),
   235     xs_width = Int(title=_("Extra small device width"),
   232                    description=_("Slot width, in columns count, on extra small devices (phones...); "
   236                    description=_("Slot width, in columns count, on extra small devices "
   233                                  "set to 0 to hide the portlet"),
   237                                  "(phones...); set to 0 to hide the portlet"),
   234                    required=False,
   238                    required=False,
   235                    min=0,
   239                    min=0,
   236                    max=12)
   240                    max=12)
   237 
   241 
   238     sm_width = Int(title=_("Small device width"),
   242     sm_width = Int(title=_("Small device width"),
   241                    required=False,
   245                    required=False,
   242                    min=0,
   246                    min=0,
   243                    max=12)
   247                    max=12)
   244 
   248 
   245     md_width = Int(title=_("Medium devices width"),
   249     md_width = Int(title=_("Medium devices width"),
   246                    description=_("Slot width, in columns count, on medium desktop devices (>= 992 pixels); "
   250                    description=_("Slot width, in columns count, on medium desktop devices "
   247                                  "set to 0 to hide the portlet"),
   251                                  "(>= 992 pixels); set to 0 to hide the portlet"),
   248                    required=False,
   252                    required=False,
   249                    min=0,
   253                    min=0,
   250                    max=12)
   254                    max=12)
   251 
   255 
   252     lg_width = Int(title=_("Large devices width"),
   256     lg_width = Int(title=_("Large devices width"),
   253                    description=_("Slot width, in columns count, on large desktop devices (>= 1200 pixels); "
   257                    description=_("Slot width, in columns count, on large desktop devices "
   254                                  "set to 0 to hide the portlet"),
   258                                  "(>= 1200 pixels); set to 0 to hide the portlet"),
   255                    required=False,
   259                    required=False,
   256                    min=0,
   260                    min=0,
   257                    max=12)
   261                    max=12)
   258 
   262 
   259     css_class = TextLine(title=_("CSS class"),
   263     css_class = TextLine(title=_("CSS class"),
   372 
   376 
   373     name = TextLine(title=_("Template name"),
   377     name = TextLine(title=_("Template name"),
   374                     description=_("Two registered templates can't share the same name..."),
   378                     description=_("Two registered templates can't share the same name..."),
   375                     required=True)
   379                     required=True)
   376 
   380 
       
   381     css_class = TextLine(title=_("CSS class"),
       
   382                          description=_("This CSS class can be included into main presentation "
       
   383                                        "layout..."),
       
   384                          required=False)
       
   385 
   377 
   386 
   378 class IPortalTemplateContainer(IContainer, IAttributeAnnotatable):
   387 class IPortalTemplateContainer(IContainer, IAttributeAnnotatable):
   379     """Portal template container interface"""
   388     """Portal template container interface"""
   380 
   389 
   381     contains(IPortalTemplate)
   390     contains(IPortalTemplate)