mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-14 12:29:35 -06:00
Annotate begin & end of panels in HTML
This commit is contained in:
parent
7b0e8c1a0d
commit
3e43226901
@ -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" }} -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user