|
| 1 | + |
| 2 | +{% extends 'generic/object.html' %} |
| 3 | +{% load render_table from django_tables2 %} |
| 4 | +{% load i18n %} |
| 5 | + |
| 6 | +{% block breadcrumbs %} |
| 7 | + {{ block.super }} |
| 8 | + <li class="breadcrumb-item"><a href="{% url 'plugins:netbox_aci_plugin:acinode_list' %}?aci_fabric_id={{ object.aci_fabric.pk }}">{{ object.aci_fabric }}</a></li> |
| 9 | + <li class="breadcrumb-item"><a href="{% url 'plugins:netbox_aci_plugin:acinode_list' %}?aci_pod_id={{ object.aci_pod.pk }}">{{ object.aci_pod }}</a></li> |
| 10 | +{% endblock breadcrumbs %} |
| 11 | + |
| 12 | +{% block content %} |
| 13 | + <div class="row"> |
| 14 | + <div class="col col-md-6"> |
| 15 | + <div class="card"> |
| 16 | + <h2 class="card-header">{% trans "ACI Node" %}</h2> |
| 17 | + <table class="table table-hover attr-table"> |
| 18 | + <tr> |
| 19 | + <th scope="row">{% trans "ACI Fabric" %}</th> |
| 20 | + <td>{{ object.aci_fabric|linkify }}</td> |
| 21 | + </tr> |
| 22 | + <tr> |
| 23 | + <th scope="row">{% trans "ACI Pod" %}</th> |
| 24 | + <td>{{ object.aci_pod|linkify }}</td> |
| 25 | + </tr> |
| 26 | + <tr> |
| 27 | + <th scope="row">{% trans "Name Alias" %}</th> |
| 28 | + <td>{{ object.name_alias|placeholder }}</td> |
| 29 | + </tr> |
| 30 | + <tr> |
| 31 | + <th scope="row">{% trans "Description" %}</th> |
| 32 | + <td>{{ object.description|placeholder }}</td> |
| 33 | + </tr> |
| 34 | + <tr> |
| 35 | + <th scope="row">{% trans "Node ID" %}</th> |
| 36 | + <td>{{ object.node_id }}</td> |
| 37 | + </tr> |
| 38 | + <tr> |
| 39 | + <th scope="row">{% trans "Node" %}</th> |
| 40 | + <td>{{ object.node_object|linkify }} ({% trans object.node_object_type.name %})</td> |
| 41 | + </tr> |
| 42 | + <tr> |
| 43 | + <th scope="row">{% trans "NetBox Tenant" %}</th> |
| 44 | + <td> |
| 45 | + {% if object.nb_tenant.group %} |
| 46 | + {{ object.nb_tenant.group|linkify }} / |
| 47 | + {% endif %} |
| 48 | + {{ object.nb_tenant|linkify|placeholder }} |
| 49 | + </td> |
| 50 | + </tr> |
| 51 | + </table> |
| 52 | + </div> |
| 53 | + <div class="card"> |
| 54 | + <h2 class="card-header">{% trans "Infrastructure" %}</h2> |
| 55 | + <table class="table table-hover attr-table"> |
| 56 | + <tr> |
| 57 | + <th scope="row">{% trans "Role" %}</th> |
| 58 | + <td>{% badge object.get_role_display bg_color=object.get_role_color %}</td> |
| 59 | + </tr> |
| 60 | + <tr> |
| 61 | + <th scope="row">{% trans "Type" %}</th> |
| 62 | + <td>{% badge object.get_node_type_display bg_color=object.get_node_type_color %}</td> |
| 63 | + </tr> |
| 64 | + <tr> |
| 65 | + <th scope="row">{% trans "TEP IP Address" %}</th> |
| 66 | + <td>{{ object.tep_ip_address|linkify|placeholder }}</td> |
| 67 | + </tr> |
| 68 | + </table> |
| 69 | + </div> |
| 70 | + {% include 'inc/panels/custom_fields.html' %} |
| 71 | + </div> |
| 72 | + <div class="col col-md-6"> |
| 73 | + {% include 'inc/panels/tags.html' %} |
| 74 | + {% include 'inc/panels/comments.html' %} |
| 75 | + </div> |
| 76 | + </div> |
| 77 | +{% endblock content %} |
0 commit comments