Fixes #5041: Fix form tabs when assigning an IP to a VM interface

This commit is contained in:
Jeremy Stretch
2020-08-24 10:56:23 -04:00
parent 36128e3fb3
commit fe4a3849a7
2 changed files with 2 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
<li role="presentation"{% if active_tab == 'add' %} class="active"{% endif %}>
<a href="{% url 'ipam:ipaddress_add' %}{% querystring request %}">New IP</a>
</li>
{% if 'interface' in request.GET %}
{% if 'interface' in request.GET or 'vminterface' in request.GET %}
<li role="presentation"{% if active_tab == 'assign' %} class="active"{% endif %}>
<a href="{% url 'ipam:ipaddress_assign' %}{% querystring request %}">Assign IP</a>
</li>