Renamed PowerPort.power_outlet to connected_endpoint

This commit is contained in:
Jeremy Stretch
2018-10-24 11:00:13 -04:00
parent 1595a5ecd7
commit 2ec8dc8319
18 changed files with 158 additions and 125 deletions

View File

@@ -631,7 +631,7 @@
</form>
{% endif %}
{% endif %}
{% if power_outlets or device.device_type.is_pdu %}
{% if poweroutlets or device.device_type.is_pdu %}
{% if perms.dcim.delete_poweroutlet %}
<form method="post">
{% csrf_token %}
@@ -652,7 +652,7 @@
</tr>
</thead>
<tbody>
{% for po in power_outlets %}
{% for po in poweroutlets %}
{% include 'dcim/inc/poweroutlet.html' %}
{% empty %}
<tr>
@@ -662,7 +662,7 @@
</tbody>
</table>
<div class="panel-footer">
{% if power_outlets and perms.dcim.change_powerport %}
{% if poweroutlets and perms.dcim.change_powerport %}
<button type="submit" name="_rename" formaction="{% url 'dcim:poweroutlet_bulk_rename' %}?return_url={{ device.get_absolute_url }}" class="btn btn-warning btn-xs">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Rename
</button>
@@ -670,7 +670,7 @@
<span class="glyphicon glyphicon-resize-full" aria-hidden="true"></span> Disconnect
</button>
{% endif %}
{% if power_outlets and perms.dcim.delete_poweroutlet %}
{% if poweroutlets and perms.dcim.delete_poweroutlet %}
<button type="submit" formaction="{% url 'dcim:poweroutlet_bulk_delete' pk=device.pk %}?return_url={{ device.get_absolute_url }}" class="btn btn-danger btn-xs">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> Delete
</button>