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:
		@@ -4,6 +4,7 @@
 | 
			
		||||
    <td>
 | 
			
		||||
        <i class="fa fa-fw fa-keyboard-o"></i> {{ cp }}
 | 
			
		||||
    </td>
 | 
			
		||||
    <td></td>
 | 
			
		||||
 | 
			
		||||
    {# Description #}
 | 
			
		||||
    <td>
 | 
			
		||||
 
 | 
			
		||||
@@ -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 }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user