@@ -65,6 +65,7 @@ class Panel:
'object': context.get('object'),
'title': self.title,
'actions': self.actions,
+ 'panel_class': self.__class__.__name__,
}
def render(self, context):
@@ -1,3 +1,4 @@
+<!-- begin {{ panel_class|default:"panel" }} -->
<div class="card">
<h2 class="card-header">
{{ title }}
@@ -11,3 +12,4 @@
</h2>
{% block panel_content %}{% endblock %}
</div>
+<!-- end {{ panel_class|default:"panel" }} -->