Skip to content

Commit

Permalink
Merge pull request #2782 from stveit/portadmin/fix-save-button-shift-poe
Browse files Browse the repository at this point in the history
Fix save button moving for ports without PoE support
  • Loading branch information
lunkwill42 authored Dec 14, 2023
2 parents 4ac4d8f + a9aa56c commit 7d6a7a9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions python/nav/web/templates/portadmin/portlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,20 +169,19 @@

{# POE STATE #}
{% if supports_poe %}
{% if interface.supports_poe %}
<div class="medium-1 small-4 column">
<form class="custom">
<select class="poelist" name="{{ interface.ifname }}">
{% for poe_option in poe_options %}
{% if interface.supports_poe %}
<form class="custom">
<select class="poelist" name="{{ interface.ifname }}">
{% for poe_option in poe_options %}
<option value="{{ poe_option.name }}" label="{{ poe_option.name }}"
{% if interface.poe_state.name == poe_option.name %}selected="selected"
data-orig="{{ poe_option.name }}"{% endif %}>
{{ vlan }}
{% endfor %}
</select>
</form>
{% endfor %}
</select>
</form>
{% endif %}
</div>
{% endif %}
{% endif %}

{# Button for saving #}
Expand Down

0 comments on commit 7d6a7a9

Please sign in to comment.