Annotate begin & end of panels in HTML
Some checks failed
CI / build (20.x, 3.12) (push) Has been cancelled
CI / build (20.x, 3.13) (push) Has been cancelled

This commit is contained in:
Jeremy Stretch 2025-11-07 16:31:25 -05:00
parent 7b0e8c1a0d
commit 3e43226901
2 changed files with 3 additions and 0 deletions

View File

@ -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):

View File

@ -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" }} -->