mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-01 13:26:25 -06:00
Cleanup for #9505
This commit is contained in:
parent
104e1f2a8c
commit
d59c98b578
@ -144,16 +144,15 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
{% if object.prefix.version == 4 %}
|
{% if object.prefix.version == 4 %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="float-end">
|
||||||
<a class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#prefix-modal">
|
<a class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#prefix-modal">
|
||||||
<i class="mdi mdi-details" aria-hidden="true"></i>
|
<i class="mdi mdi-information-outline" aria-hidden="true"></i> Addressing Details
|
||||||
Details
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% include 'inc/panels/custom_fields.html' %}
|
{% include 'inc/panels/custom_fields.html' %}
|
||||||
{% include 'inc/panels/tags.html' %}
|
{% include 'inc/panels/tags.html' %}
|
||||||
{% plugin_right_page object %}
|
{% plugin_right_page object %}
|
||||||
@ -168,54 +167,40 @@
|
|||||||
{% plugin_full_width_page object %}
|
{% plugin_full_width_page object %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if object.prefix.version == 4 %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block modals %}
|
||||||
|
{{ block.super }}
|
||||||
|
{% if object.prefix.version == 4 %}
|
||||||
<div class="modal fade" id="prefix-modal" tabindex="-1" aria-hidden="true">
|
<div class="modal fade" id="prefix-modal" tabindex="-1" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-dialog-centered">
|
<div class="modal-dialog modal-dialog-centered">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h5 class="modal-title">Prefix Details</h5>
|
<h5 class="modal-title">Prefix Details</h5>
|
||||||
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>Network Address</td>
|
||||||
Network Mask
|
<td>{{ object.prefix.network }}</td>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ object.prefix.netmask }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>Network Mask</td>
|
||||||
Wildcard Mask
|
<td>{{ object.prefix.netmask }}</td>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ object.prefix.hostmask }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>Wildcard Mask</td>
|
||||||
Network Address
|
<td>{{ object.prefix.hostmask }}</td>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ object.prefix.network }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>Broadcast Address</td>
|
||||||
Broadcast Address
|
<td>{{ object.prefix.broadcast }}</td>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ object.prefix.broadcast }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Close</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user