mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-14 04:19:36 -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'),
|
'object': context.get('object'),
|
||||||
'title': self.title,
|
'title': self.title,
|
||||||
'actions': self.actions,
|
'actions': self.actions,
|
||||||
|
'panel_class': self.__class__.__name__,
|
||||||
}
|
}
|
||||||
|
|
||||||
def render(self, context):
|
def render(self, context):
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
<!-- begin {{ panel_class|default:"panel" }} -->
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">
|
<h2 class="card-header">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
@ -11,3 +12,4 @@
|
|||||||
</h2>
|
</h2>
|
||||||
{% block panel_content %}{% endblock %}
|
{% block panel_content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
<!-- end {{ panel_class|default:"panel" }} -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user