mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 05:28:16 -06:00
Ensure consistent use of row headings in attribute tables
This commit is contained in:
parent
04dc9a12ad
commit
a16f272535
@ -30,7 +30,7 @@
|
|||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
{% if termination.site %}
|
{% if termination.site %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Site" %}</td>
|
<th scope="row">{% trans "Site" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if termination.site.region %}
|
{% if termination.site.region %}
|
||||||
{{ termination.site.region|linkify }} /
|
{{ termination.site.region|linkify }} /
|
||||||
@ -39,7 +39,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Termination" %}</td>
|
<th scope="row">{% trans "Termination" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if termination.mark_connected %}
|
{% if termination.mark_connected %}
|
||||||
<span class="text-success"><i class="mdi mdi-check-bold"></i></span>
|
<span class="text-success"><i class="mdi mdi-check-bold"></i></span>
|
||||||
@ -86,12 +86,12 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% else %}
|
{% else %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Provider Network" %}</td>
|
<th scope="row">{% trans "Provider Network" %}</th>
|
||||||
<td>{{ termination.provider_network.provider|linkify }} / {{ termination.provider_network|linkify }}</td>
|
<td>{{ termination.provider_network.provider|linkify }} / {{ termination.provider_network|linkify }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Speed" %}</td>
|
<th scope="row">{% trans "Speed" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if termination.port_speed and termination.upstream_speed %}
|
{% if termination.port_speed and termination.upstream_speed %}
|
||||||
<i class="mdi mdi-arrow-down-bold" title="{% trans "Downstream" %}"></i> {{ termination.port_speed|humanize_speed }}
|
<i class="mdi mdi-arrow-down-bold" title="{% trans "Downstream" %}"></i> {{ termination.port_speed|humanize_speed }}
|
||||||
@ -104,19 +104,19 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Cross-Connect" %}</td>
|
<th scope="row">{% trans "Cross-Connect" %}</th>
|
||||||
<td>{{ termination.xconnect_id|placeholder }}</td>
|
<td>{{ termination.xconnect_id|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Patch Panel/Port" %}</td>
|
<th scope="row">{% trans "Patch Panel/Port" %}</th>
|
||||||
<td>{{ termination.pp_info|placeholder }}</td>
|
<td>{{ termination.pp_info|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Description" %}</td>
|
<th scope="row">{% trans "Description" %}</th>
|
||||||
<td>{{ termination.description|placeholder }}</td>
|
<td>{{ termination.description|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Tags" %}</td>
|
<th scope="row">{% trans "Tags" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% for tag in termination.tags.all %}
|
{% for tag in termination.tags.all %}
|
||||||
{% tag tag %}
|
{% tag tag %}
|
||||||
|
@ -14,42 +14,42 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Manufacturer" %}</td>
|
<th scope="row">{% trans "Manufacturer" %}</th>
|
||||||
<td>{{ object.manufacturer|linkify }}</td>
|
<td>{{ object.manufacturer|linkify }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Model Name" %}</td>
|
<th scope="row">{% trans "Model Name" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{{ object.model }}<br/>
|
{{ object.model }}<br/>
|
||||||
<small class="text-muted">{{ object.slug }}</small>
|
<small class="text-muted">{{ object.slug }}</small>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Part Number" %}</td>
|
<th scope="row">{% trans "Part Number" %}</th>
|
||||||
<td>{{ object.part_number|placeholder }}</td>
|
<td>{{ object.part_number|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Default Platform" %}</td>
|
<th scope="row">{% trans "Default Platform" %}</th>
|
||||||
<td>{{ object.default_platform|linkify }}</td>
|
<td>{{ object.default_platform|linkify }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Description" %}</td>
|
<th scope="row">{% trans "Description" %}</th>
|
||||||
<td>{{ object.description|placeholder }}</td>
|
<td>{{ object.description|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Height (U" %})</td>
|
<th scope="row">{% trans "Height (U" %})</th>
|
||||||
<td>{{ object.u_height|floatformat }}</td>
|
<td>{{ object.u_height|floatformat }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Exclude From Utilization" %})</td>
|
<th scope="row">{% trans "Exclude From Utilization" %})</th>
|
||||||
<td>{% checkmark object.exclude_from_utilization %}</td>
|
<td>{% checkmark object.exclude_from_utilization %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Full Depth" %}</td>
|
<th scope="row">{% trans "Full Depth" %}</th>
|
||||||
<td>{% checkmark object.is_full_depth %}</td>
|
<td>{% checkmark object.is_full_depth %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Weight" %}</td>
|
<th scope="row">{% trans "Weight" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.weight %}
|
{% if object.weight %}
|
||||||
{{ object.weight|floatformat }} {{ object.get_weight_unit_display }}
|
{{ object.weight|floatformat }} {{ object.get_weight_unit_display }}
|
||||||
@ -59,19 +59,19 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Parent/Child" %}</td>
|
<th scope="row">{% trans "Parent/Child" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{{ object.get_subdevice_role_display|placeholder }}
|
{{ object.get_subdevice_role_display|placeholder }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Airflow" %}</td>
|
<th scope="row">{% trans "Airflow" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{{ object.get_airflow_display|placeholder }}
|
{{ object.get_airflow_display|placeholder }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Front Image" %}</td>
|
<th scope="row">{% trans "Front Image" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.front_image %}
|
{% if object.front_image %}
|
||||||
<a href="{{ object.front_image.url }}">
|
<a href="{{ object.front_image.url }}">
|
||||||
@ -83,7 +83,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Rear Image" %}</td>
|
<th scope="row">{% trans "Rear Image" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.rear_image %}
|
{% if object.rear_image %}
|
||||||
<a href="{{ object.rear_image.url }}">
|
<a href="{{ object.rear_image.url }}">
|
||||||
|
@ -5,19 +5,19 @@
|
|||||||
{% if terminations.0.device %}
|
{% if terminations.0.device %}
|
||||||
{# Device component #}
|
{# Device component #}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Site" %}</td>
|
<th scope="row">{% trans "Site" %}</th>
|
||||||
<td>{{ terminations.0.device.site|linkify }}</td>
|
<td>{{ terminations.0.device.site|linkify }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Location" %}</td>
|
<th scope="row">{% trans "Location" %}</th>
|
||||||
<td>{{ terminations.0.device.location|linkify|placeholder }}</td>
|
<td>{{ terminations.0.device.location|linkify|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Rack" %}</td>
|
<th scope="row">{% trans "Rack" %}</th>
|
||||||
<td>{{ terminations.0.device.rack|linkify|placeholder }}</td>
|
<td>{{ terminations.0.device.rack|linkify|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ terminations.0|meta:"verbose_name"|capfirst }}</td>
|
<th scope="row">{{ terminations.0|meta:"verbose_name"|capfirst }}</th>
|
||||||
<td>
|
<td>
|
||||||
{% for term in terminations %}
|
{% for term in terminations %}
|
||||||
{{term.device|linkify}}
|
{{term.device|linkify}}
|
||||||
@ -30,15 +30,15 @@
|
|||||||
{% elif terminations.0.power_panel %}
|
{% elif terminations.0.power_panel %}
|
||||||
{# Power feed #}
|
{# Power feed #}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Site" %}</td>
|
<th scope="row">{% trans "Site" %}</th>
|
||||||
<td>{{ terminations.0.power_panel.site|linkify }}</td>
|
<td>{{ terminations.0.power_panel.site|linkify }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Power Panel" %}</td>
|
<th scope="row">{% trans "Power Panel" %}</th>
|
||||||
<td>{{ terminations.0.power_panel|linkify }}</td>
|
<td>{{ terminations.0.power_panel|linkify }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ terminations.0|meta:"verbose_name"|capfirst }}</td>
|
<th scope="row">{{ terminations.0|meta:"verbose_name"|capfirst }}</th>
|
||||||
<td>
|
<td>
|
||||||
{% for term in terminations %}
|
{% for term in terminations %}
|
||||||
{{ term|linkify }}{% if not forloop.last %},{% endif %}
|
{{ term|linkify }}{% if not forloop.last %},{% endif %}
|
||||||
@ -48,11 +48,11 @@
|
|||||||
{% elif terminations.0.circuit %}
|
{% elif terminations.0.circuit %}
|
||||||
{# Circuit termination #}
|
{# Circuit termination #}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Provider" %}</td>
|
<th scope="row">{% trans "Provider" %}</th>
|
||||||
<td>{{ terminations.0.circuit.provider|linkify }}</td>
|
<td>{{ terminations.0.circuit.provider|linkify }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Circuit" %}</td>
|
<th scope="row">{% trans "Circuit" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% for term in terminations %}
|
{% for term in terminations %}
|
||||||
{{ term.circuit|linkify }} ({{ term }}){% if not forloop.last %},{% endif %}
|
{{ term.circuit|linkify }} ({{ term }}){% if not forloop.last %},{% endif %}
|
||||||
|
@ -12,15 +12,15 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Manufacturer" %}</td>
|
<th scope="row">{% trans "Manufacturer" %}</th>
|
||||||
<td>{{ object.manufacturer|linkify }}</td>
|
<td>{{ object.manufacturer|linkify }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Model Name" %}</td>
|
<th scope="row">{% trans "Model Name" %}</th>
|
||||||
<td>{{ object.model }}</td>
|
<td>{{ object.model }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Part Number" %}</td>
|
<th scope="row">{% trans "Part Number" %}</th>
|
||||||
<td>{{ object.part_number|placeholder }}</td>
|
<td>{{ object.part_number|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -28,14 +28,14 @@
|
|||||||
<td>{{ object.description|placeholder }}</td>
|
<td>{{ object.description|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Weight" %}</td>
|
<th scope="row">{% trans "Weight" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.weight %}
|
{% if object.weight %}
|
||||||
{{ object.weight|floatformat }} {{ object.get_weight_unit_display }}
|
{{ object.weight|floatformat }} {{ object.get_weight_unit_display }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ ''|placeholder }}
|
{{ ''|placeholder }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,23 +12,23 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Family" %}</td>
|
<th scope="row">{% trans "Family" %}</th>
|
||||||
<td>IPv{{ object.family }}</td>
|
<td>IPv{{ object.family }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "RIR" %}</td>
|
<th scope="row">{% trans "RIR" %}</th>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url 'ipam:aggregate_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a>
|
<a href="{% url 'ipam:aggregate_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Utilization" %}</td>
|
<th scope="row">{% trans "Utilization" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% utilization_graph object.get_utilization %}
|
{% utilization_graph object.get_utilization %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Tenant" %}</td>
|
<th scope="row">{% trans "Tenant" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.tenant.group %}
|
{% if object.tenant.group %}
|
||||||
{{ object.tenant.group|linkify }} /
|
{{ object.tenant.group|linkify }} /
|
||||||
@ -37,11 +37,11 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Date Added" %}</td>
|
<th scope="row">{% trans "Date Added" %}</th>
|
||||||
<td>{{ object.date_added|annotated_date|placeholder }}</td>
|
<td>{{ object.date_added|annotated_date|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Description" %}</td>
|
<th scope="row">{% trans "Description" %}</th>
|
||||||
<td>{{ object.description|placeholder }}</td>
|
<td>{{ object.description|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -21,17 +21,17 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "AS Number" %}</td>
|
<th scope="row">{% trans "AS Number" %}</th>
|
||||||
<td>{{ object.asn_with_asdot }}</td>
|
<td>{{ object.asn_with_asdot }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "RIR" %}</td>
|
<th scope="row">{% trans "RIR" %}</th>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url 'ipam:asn_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a>
|
<a href="{% url 'ipam:asn_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Tenant" %}</td>
|
<th scope="row">{% trans "Tenant" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.tenant.group %}
|
{% if object.tenant.group %}
|
||||||
{{ object.tenant.group|linkify }} /
|
{{ object.tenant.group|linkify }} /
|
||||||
@ -40,7 +40,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Description" %}</td>
|
<th scope="row">{% trans "Description" %}</th>
|
||||||
<td>{{ object.description|placeholder }}</td>
|
<td>{{ object.description|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -13,21 +13,21 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Name" %}</td>
|
<th scope="row">{% trans "Name" %}</th>
|
||||||
<td>{{ object.name }}</td>
|
<td>{{ object.name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "RIR" %}</td>
|
<th scope="row">{% trans "RIR" %}</th>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url 'ipam:asnrange_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a>
|
<a href="{% url 'ipam:asnrange_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Range" %}</td>
|
<th scope="row">{% trans "Range" %}</th>
|
||||||
<td>{{ object.range_as_string }}</td>
|
<td>{{ object.range_as_string }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Tenant" %}</td>
|
<th scope="row">{% trans "Tenant" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.tenant.group %}
|
{% if object.tenant.group %}
|
||||||
{{ object.tenant.group|linkify }} /
|
{{ object.tenant.group|linkify }} /
|
||||||
@ -36,7 +36,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Description" %}</td>
|
<th scope="row">{% trans "Description" %}</th>
|
||||||
<td>{{ object.description|placeholder }}</td>
|
<td>{{ object.description|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -20,19 +20,19 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Protocol" %}</td>
|
<th scope="row">{% trans "Protocol" %}</th>
|
||||||
<td>{{ object.get_protocol_display }}</td>
|
<td>{{ object.get_protocol_display }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Group ID" %}</td>
|
<th scope="row">{% trans "Group ID" %}</th>
|
||||||
<td>{{ object.group_id }}</td>
|
<td>{{ object.group_id }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Name" %}</td>
|
<th scope="row">{% trans "Name" %}</th>
|
||||||
<td>{{ object.name|placeholder }}</td>
|
<td>{{ object.name|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Description" %}</td>
|
<th scope="row">{% trans "Description" %}</th>
|
||||||
<td>{{ object.description|placeholder }}</td>
|
<td>{{ object.description|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -52,11 +52,11 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Authentication Type" %}</td>
|
<th scope="row">{% trans "Authentication Type" %}</th>
|
||||||
<td>{{ object.get_auth_type_display|placeholder }}</td>
|
<td>{{ object.get_auth_type_display|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Authentication Key" %}</td>
|
<th scope="row">{% trans "Authentication Key" %}</th>
|
||||||
<td>{{ object.auth_key|placeholder }}</td>
|
<td>{{ object.auth_key|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -98,11 +98,11 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Primary IP</td>
|
<th scope="row">Primary IP</th>
|
||||||
<td>{% checkmark object.is_primary_ip %}</td>
|
<td>{% checkmark object.is_primary_ip %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>OOB IP</td>
|
<th scope="row">OOB IP</th>
|
||||||
<td>{% checkmark object.is_oob_ip %}</td>
|
<td>{% checkmark object.is_oob_ip %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "First available IP" %}</td>
|
<th scope="row">{% trans "First available IP" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% with first_available_ip=object.get_first_available_ip %}
|
{% with first_available_ip=object.get_first_available_ip %}
|
||||||
{% if first_available_ip %}
|
{% if first_available_ip %}
|
||||||
@ -184,19 +184,19 @@
|
|||||||
<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>{% trans "Network Address" %}</td>
|
<th scope="row">{% trans "Network Address" %}</th>
|
||||||
<td>{{ object.prefix.network }}</td>
|
<td>{{ object.prefix.network }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Network Mask" %}</td>
|
<th scope="row">{% trans "Network Mask" %}</th>
|
||||||
<td>{{ object.prefix.netmask }}</td>
|
<td>{{ object.prefix.netmask }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Wildcard Mask" %}</td>
|
<th scope="row">{% trans "Wildcard Mask" %}</th>
|
||||||
<td>{{ object.prefix.hostmask }}</td>
|
<td>{{ object.prefix.hostmask }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Broadcast Address" %}</td>
|
<th scope="row">{% trans "Broadcast Address" %}</th>
|
||||||
<td>{{ object.prefix.broadcast }}</td>
|
<td>{{ object.prefix.broadcast }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -19,19 +19,19 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Group" %}</td>
|
<th scope="row">{% trans "Group" %}</th>
|
||||||
<td>{{ object.group|linkify|placeholder }}</td>
|
<td>{{ object.group|linkify|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Name" %}</td>
|
<th scope="row">{% trans "Name" %}</th>
|
||||||
<td>{{ object.name }}</td>
|
<td>{{ object.name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Title" %}</td>
|
<th scope="row">{% trans "Title" %}</th>
|
||||||
<td>{{ object.title|placeholder }}</td>
|
<td>{{ object.title|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Phone" %}</td>
|
<th scope="row">{% trans "Phone" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.phone %}
|
{% if object.phone %}
|
||||||
<a href="tel:{{ object.phone }}">{{ object.phone }}</a>
|
<a href="tel:{{ object.phone }}">{{ object.phone }}</a>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Email" %}</td>
|
<th scope="row">{% trans "Email" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.email %}
|
{% if object.email %}
|
||||||
<a href="mailto:{{ object.email }}">{{ object.email }}</a>
|
<a href="mailto:{{ object.email }}">{{ object.email }}</a>
|
||||||
@ -51,11 +51,11 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Address" %}</td>
|
<th scope="row">{% trans "Address" %}</th>
|
||||||
<td>{{ object.address|linebreaksbr|placeholder }}</td>
|
<td>{{ object.address|linebreaksbr|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Link" %}</td>
|
<th scope="row">{% trans "Link" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.link %}
|
{% if object.link %}
|
||||||
<a href="{{ object.link }}">{{ object.link }}</a>
|
<a href="{{ object.link }}">{{ object.link }}</a>
|
||||||
|
@ -18,11 +18,11 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Group" %}</td>
|
<th scope="row">{% trans "Group" %}</th>
|
||||||
<td>{{ object.group|linkify|placeholder }}</td>
|
<td>{{ object.group|linkify|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Description" %}</td>
|
<th scope="row">{% trans "Description" %}</th>
|
||||||
<td>{{ object.description|placeholder }}</td>
|
<td>{{ object.description|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -3,27 +3,27 @@
|
|||||||
|
|
||||||
<table class="table table-hover panel-body attr-table">
|
<table class="table table-hover panel-body attr-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Device" %}</td>
|
<th scope="row">{% trans "Device" %}</th>
|
||||||
<td>{{ interface.device|linkify }}</td>
|
<td>{{ interface.device|linkify }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Interface" %}</td>
|
<th scope="row">{% trans "Interface" %}</th>
|
||||||
<td>{{ interface|linkify }}</td>
|
<td>{{ interface|linkify }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Type" %}</td>
|
<th scope="row">{% trans "Type" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{{ interface.get_type_display }}
|
{{ interface.get_type_display }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Role" %}</td>
|
<th scope="row">{% trans "Role" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{{ interface.get_rf_role_display|placeholder }}
|
{{ interface.get_rf_role_display|placeholder }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Channel" %}</td>
|
<th scope="row">{% trans "Channel" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{{ interface.get_rf_channel_display|placeholder }}
|
{{ interface.get_rf_channel_display|placeholder }}
|
||||||
</td>
|
</td>
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
<td>{{ object.ssid }}</td>
|
<td>{{ object.ssid }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Group" %}</td>
|
<th scope="row">{% trans "Group" %}</th>
|
||||||
<td>{{ object.group|linkify|placeholder }}</td>
|
<td>{{ object.group|linkify|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Status" %}</td>
|
<th scope="row">{% trans "Status" %}</th>
|
||||||
<td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
|
<td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user