mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
ensure 'Create & Assign IP Address' button is only shown when the component_type is 'interface'
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
<div class="col-md-8 text-end">
|
||||
{% block buttons %}
|
||||
<a class="btn btn-outline-danger" href="{{ return_url }}">Cancel</a>
|
||||
{% if perms.ipam.add_ipaddress %}
|
||||
{% if component_type == 'interface' and perms.ipam.add_ipaddress %}
|
||||
<button type="submit" name="_assignip" class="btn btn-outline-success">
|
||||
Create & Assign IP Address
|
||||
</button>
|
||||
|
Reference in New Issue
Block a user