Commits

igoryan committed aaa061b

ButtonPanel fixed.

  • Participants
  • Parent commits f733b1e

Comments (0)

Files changed (1)

thelayouts/layouts_base.py

     def render_container_start(self, **kwargs):
         """Render start of a container."""
         return literal(u'<div %s>') % (
-            html_params(**self.attrs),
+            html_params(**self.get_attrs()),
         )
 
     def render_container_end(self):
 
     def __init__(self, *elements, **attrs):
         super(ButtonPanel, self).__init__(*elements, **attrs)
-        self.element_attrs['class_'] = self.element_attrs.get(
-            'class_', 'submit-buttons'
+        self.attrs['class_'] = self.get_attrs().get(
+            'class_', 'save-buttons'
         )