mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 21:18:16 -06:00
Restore missing edit button for script modules
This commit is contained in:
parent
6422049d13
commit
1ea0b6d83f
@ -26,11 +26,18 @@
|
|||||||
<div>
|
<div>
|
||||||
<i class="mdi mdi-file-document-outline"></i> {{ module }}
|
<i class="mdi mdi-file-document-outline"></i> {{ module }}
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
{% if perms.extras.edit_scriptmodule %}
|
||||||
|
<a href="{% url 'extras:scriptmodule_edit' pk=module.pk %}" class="btn btn-warning btn-sm">
|
||||||
|
<i class="mdi mdi-pencil" aria-hidden="true"></i> {% trans "Edit" %}
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
{% if perms.extras.delete_scriptmodule %}
|
{% if perms.extras.delete_scriptmodule %}
|
||||||
<a href="{% url 'extras:scriptmodule_delete' pk=module.pk %}" class="btn btn-danger btn-sm">
|
<a href="{% url 'extras:scriptmodule_delete' pk=module.pk %}" class="btn btn-danger btn-sm">
|
||||||
<i class="mdi mdi-trash-can-outline" aria-hidden="true"></i> {% trans "Delete" %}
|
<i class="mdi mdi-trash-can-outline" aria-hidden="true"></i> {% trans "Delete" %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
</h5>
|
</h5>
|
||||||
{% if module.scripts %}
|
{% if module.scripts %}
|
||||||
<table class="table table-hover scripts">
|
<table class="table table-hover scripts">
|
||||||
|
Loading…
Reference in New Issue
Block a user