|
@@ -42,9 +42,15 @@
|
|
|
{% if pp.cable %}
|
|
{% if pp.cable %}
|
|
|
{% include 'dcim/inc/cable_toggle_buttons.html' with cable=pp.cable %}
|
|
{% include 'dcim/inc/cable_toggle_buttons.html' with cable=pp.cable %}
|
|
|
{% elif perms.dcim.add_cable %}
|
|
{% elif perms.dcim.add_cable %}
|
|
|
- <a href="{% url 'dcim:powerport_connect' termination_a_id=pp.pk %}?return_url={{ device.get_absolute_url }}" title="Connect" class="btn btn-success btn-xs">
|
|
|
|
|
- <i class="glyphicon glyphicon-resize-small" aria-hidden="true"></i>
|
|
|
|
|
- </a>
|
|
|
|
|
|
|
+ <span class="dropdown">
|
|
|
|
|
+ <button type="button" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
|
+ <span class="glyphicon glyphicon-resize-small" aria-hidden="true"></span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <ul class="dropdown-menu dropdown-menu-right">
|
|
|
|
|
+ <li><a href="{% url 'dcim:powerport_connect' termination_a_id=pp.pk %}?return_url={{ device.get_absolute_url }}">Power Outlet</a></li>
|
|
|
|
|
+ <li><a href="{% url 'dcim:powerport_connect' termination_a_id=pp.pk %}?type=powerfeed&return_url={{ device.get_absolute_url }}">Power Feed</a></li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </span>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
{% if perms.dcim.change_powerport %}
|
|
{% if perms.dcim.change_powerport %}
|
|
|
<a href="{% url 'dcim:powerport_edit' pk=pp.pk %}" title="Edit port" class="btn btn-info btn-xs">
|
|
<a href="{% url 'dcim:powerport_edit' pk=pp.pk %}" title="Edit port" class="btn btn-info btn-xs">
|