mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			78 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends 'dcim/device_component.html' %}
 | 
						|
{% load helpers %}
 | 
						|
 | 
						|
{% block content %}
 | 
						|
    <div class="row">
 | 
						|
        <div class="col-md-6">
 | 
						|
            <div class="panel panel-default">
 | 
						|
                <div class="panel-heading">
 | 
						|
                    <strong>Rear Port</strong>
 | 
						|
                </div>
 | 
						|
                <table class="table table-hover panel-body attr-table">
 | 
						|
                    <tr>
 | 
						|
                        <td>Device</td>
 | 
						|
                        <td>
 | 
						|
                            <a href="{{ instance.device.get_absolute_url }}">{{ instance.device }}</a>
 | 
						|
                        </td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <td>Name</td>
 | 
						|
                        <td>{{ instance.name }}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <td>Label</td>
 | 
						|
                        <td>{{ instance.label|placeholder }}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <td>Type</td>
 | 
						|
                        <td>{{ instance.get_type_display }}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <td>Positions</td>
 | 
						|
                        <td>{{ instance.positions }}</td>
 | 
						|
                    </tr>
 | 
						|
                    <tr>
 | 
						|
                        <td>Description</td>
 | 
						|
                        <td>{{ instance.description|placeholder }}</td>
 | 
						|
                    </tr>
 | 
						|
                </table>
 | 
						|
            </div>
 | 
						|
            {% include 'extras/inc/tags_panel.html' with tags=instance.tags.all %}
 | 
						|
        </div>
 | 
						|
        <div class="col-md-6">
 | 
						|
            <div class="panel panel-default">
 | 
						|
                <div class="panel-heading">
 | 
						|
                    <strong>Connection</strong>
 | 
						|
                </div>
 | 
						|
                {% if instance.cable %}
 | 
						|
                    <table class="table table-hover panel-body attr-table">
 | 
						|
                        <tr>
 | 
						|
                            <td>Cable</td>
 | 
						|
                            <td>
 | 
						|
                                <a href="{{ instance.cable.get_absolute_url }}">{{ instance.cable }}</a>
 | 
						|
                                <a href="{% url 'dcim:rearport_trace' pk=instance.pk %}" class="btn btn-primary btn-xs" title="Trace">
 | 
						|
                                    <i class="fa fa-share-alt" aria-hidden="true"></i>
 | 
						|
                                </a>
 | 
						|
                            </td>
 | 
						|
                        </tr>
 | 
						|
                        <tr>
 | 
						|
                            <td>Connection Status</td>
 | 
						|
                            <td>
 | 
						|
                                {% if instance.cable.status %}
 | 
						|
                                    <span class="label label-success">{{ instance.cable.get_status_display }}</span>
 | 
						|
                                {% else %}
 | 
						|
                                    <span class="label label-info">{{ instance.cable.get_status_display }}</span>
 | 
						|
                                {% endif %}
 | 
						|
                            </td>
 | 
						|
                        </tr>
 | 
						|
                    </table>
 | 
						|
                {% else %}
 | 
						|
                    <div class="panel-body text-muted">
 | 
						|
                        Not connected
 | 
						|
                    </div>
 | 
						|
                {% endif %}
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
{% endblock %}
 |