mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
Hide related elements in print
Rationale is that related elements make sense to link together, but are not relevant on printouts. Issue: #2435 Signed-off-by: Bernhard Bock <bernhard@bock.nu> (github: bbock)
This commit is contained in:
parent
7d7368a52f
commit
52c1e795a1
@ -462,6 +462,9 @@ textarea {
|
|||||||
.sub-header {
|
.sub-header {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
#related {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
#panel-search {
|
#panel-search {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -415,7 +415,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default" id="related">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<strong>Related Devices</strong>
|
<strong>Related Devices</strong>
|
||||||
</div>
|
</div>
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
{% include 'panel_table.html' with table=related_changes_table heading='Related Changes' %}
|
{% include 'panel_table.html' with table=related_changes_table heading='Related Changes' panel_id='related' %}
|
||||||
{% if related_changes_count > related_changes_table.rows|length %}
|
{% if related_changes_count > related_changes_table.rows|length %}
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<a href="{% url 'extras:objectchange_list' %}?request_id={{ objectchange.request_id }}" class="btn btn-primary">See all {{ related_changes_count|add:"1" }} changes</a>
|
<a href="{% url 'extras:objectchange_list' %}?request_id={{ objectchange.request_id }}" class="btn btn-primary">See all {{ related_changes_count|add:"1" }} changes</a>
|
||||||
|
@ -156,7 +156,7 @@
|
|||||||
{% if duplicate_ips_table.rows %}
|
{% if duplicate_ips_table.rows %}
|
||||||
{% include 'panel_table.html' with table=duplicate_ips_table heading='Duplicate IP Addresses' panel_class='danger' %}
|
{% include 'panel_table.html' with table=duplicate_ips_table heading='Duplicate IP Addresses' panel_class='danger' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'panel_table.html' with table=related_ips_table heading='Related IP Addresses' panel_class='default' %}
|
{% include 'panel_table.html' with table=related_ips_table heading='Related IP Addresses' panel_class='default' panel_id='related' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{% load render_table from django_tables2 %}
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
<div class="panel panel-{{ panel_class|default:'default' }}">
|
<div class="panel panel-{{ panel_class|default:'default' }}" {% if panel_id %}id="{{ panel_id }}"{% endif %}">
|
||||||
{% if heading %}
|
{% if heading %}
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<strong>{{ heading }}</strong>
|
<strong>{{ heading }}</strong>
|
||||||
|
Loading…
Reference in New Issue
Block a user