mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
add template vars for icons
This commit is contained in:
parent
2e14294ead
commit
d3babb9c7c
@ -9,6 +9,7 @@
|
||||
<div class="col-md-5">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<i class="fa fa-fw fa-cube"></i>
|
||||
<strong>Prefix</strong>
|
||||
</div>
|
||||
<table class="table table-hover panel-body">
|
||||
@ -93,11 +94,11 @@
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
{% if duplicate_prefix_table.rows %}
|
||||
{% with heading='Duplicate Prefixes' panel_class='danger' %}
|
||||
{% with heading='Duplicate Prefixes' icon='exclamation-triangle' panel_class='danger' %}
|
||||
{% render_table duplicate_prefix_table 'panel_table.html' %}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
{% with heading='Parent Prefixes' %}
|
||||
{% with heading='Parent Prefixes' icon='cube' %}
|
||||
{% render_table parent_prefix_table 'panel_table.html' %}
|
||||
{% endwith %}
|
||||
</div>
|
||||
@ -105,7 +106,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{% if child_prefix_table.rows %}
|
||||
{% include 'utilities/obj_table.html' with table=child_prefix_table table_template='panel_table.html' heading='Child Prefixes' parent=prefix bulk_edit_url='ipam:prefix_bulk_edit' bulk_delete_url='ipam:prefix_bulk_delete' %}
|
||||
{% include 'utilities/obj_table.html' with table=child_prefix_table table_template='panel_table.html' heading='Child Prefixes' icon='cubes' parent=prefix bulk_edit_url='ipam:prefix_bulk_edit' bulk_delete_url='ipam:prefix_bulk_delete' %}
|
||||
{% elif prefix.new_subnet %}
|
||||
<a href="{% url 'ipam:prefix_add' %}?prefix={{ prefix.new_subnet }}{% if prefix.vrf %}&vrf={{ prefix.vrf.pk }}{% endif %}{% if prefix.site %}&site={{ prefix.site.pk }}{% endif %}" class="btn btn-success">
|
||||
<i class="glyphicon glyphicon-plus" aria-hidden="true"></i> Add Child Prefix
|
||||
|
Loading…
Reference in New Issue
Block a user