1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add max/allocated current draw fields to PowerPort

This commit is contained in:
Jeremy Stretch
2019-04-09 17:32:04 -04:00
parent c1127148e2
commit 8230ea1c83
6 changed files with 65 additions and 10 deletions

View File

@@ -4,6 +4,7 @@
<td>
<i class="fa fa-fw fa-keyboard-o"></i> {{ cp }}
</td>
<td></td>
{# Description #}
<td>

View File

@@ -5,6 +5,15 @@
<i class="fa fa-fw fa-bolt"></i> {{ pp }}
</td>
{# Current draw #}
<td>
{% if pp.allocated_draw %}
{{ pp.allocated_draw }}W{% if pp.maximum_draw %} ({{ pp.maximum_draw }}W max){% endif %}
{% elif pp.maximum_draw %}
{{ pp.maximum_draw }}W
{% endif %}
</td>
{# Description #}
<td>
{{ pp.description }}