mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	Renamed ConsolePort.cs_port to connected_endpoint
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
<tr class="consoleserverport{% if csp.connected_console and not csp.connected_console.connection_status %} info{% endif %}">
 | 
			
		||||
<tr class="consoleserverport{% if csp.connected_endpoint %} {%if csp.connected_endpoint.connection_status %}success{% else %}info{% endif %}{% endif %}">
 | 
			
		||||
    {% if perms.dcim.change_consoleserverport or perms.dcim.delete_consoleserverport %}
 | 
			
		||||
        <td class="pk">
 | 
			
		||||
            <input name="pk" type="checkbox" value="{{ csp.pk }}" />
 | 
			
		||||
@@ -7,12 +7,12 @@
 | 
			
		||||
    <td>
 | 
			
		||||
        <i class="fa fa-fw fa-keyboard-o"></i> {{ csp }}
 | 
			
		||||
    </td>
 | 
			
		||||
    {% if csp.connected_console %}
 | 
			
		||||
    {% if csp.connected_endpoint %}
 | 
			
		||||
        <td>
 | 
			
		||||
            <a href="{% url 'dcim:device' pk=csp.connected_console.device.pk %}">{{ csp.connected_console.device }}</a>
 | 
			
		||||
            <a href="{% url 'dcim:device' pk=csp.connected_endpoint.device.pk %}">{{ csp.connected_endpoint.device }}</a>
 | 
			
		||||
        </td>
 | 
			
		||||
        <td>
 | 
			
		||||
            {{ csp.connected_console }}
 | 
			
		||||
            {{ csp.connected_endpoint }}
 | 
			
		||||
        </td>
 | 
			
		||||
    {% else %}
 | 
			
		||||
        <td colspan="2">
 | 
			
		||||
@@ -21,13 +21,13 @@
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    <td class="text-right">
 | 
			
		||||
        {% if perms.dcim.change_consoleserverport %}
 | 
			
		||||
            {% if csp.connected_console %}
 | 
			
		||||
                {% if csp.connected_console.connection_status %}
 | 
			
		||||
                    <a href="#" class="btn btn-warning btn-xs consoleport-toggle connected" title="Mark planned" data="{{ csp.connected_console.pk }}">
 | 
			
		||||
            {% if csp.connected_endpoint %}
 | 
			
		||||
                {% if csp.connected_endpoint.connection_status %}
 | 
			
		||||
                    <a href="#" class="btn btn-warning btn-xs consoleport-toggle connected" title="Mark planned" data="{{ csp.connected_endpoint.pk }}">
 | 
			
		||||
                        <i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i>
 | 
			
		||||
                    </a>
 | 
			
		||||
                {% else %}
 | 
			
		||||
                    <a href="#" class="btn btn-success btn-xs consoleport-toggle" title="Mark installed" data="{{ csp.connected_console.pk }}">
 | 
			
		||||
                    <a href="#" class="btn btn-success btn-xs consoleport-toggle" title="Mark installed" data="{{ csp.connected_endpoint.pk }}">
 | 
			
		||||
                        <i class="fa fa-plug" aria-hidden="true"></i>
 | 
			
		||||
                    </a>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
@@ -44,7 +44,7 @@
 | 
			
		||||
            </a>
 | 
			
		||||
        {% endif %}
 | 
			
		||||
        {% if perms.dcim.delete_consoleserverport %}
 | 
			
		||||
            {% if csp.connected_console %}
 | 
			
		||||
            {% if csp.connected_endpoint %}
 | 
			
		||||
                <button class="btn btn-danger btn-xs" disabled="disabled">
 | 
			
		||||
                    <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
 | 
			
		||||
                </button>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user