mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 16:18:16 -06:00
17301 update buttons
This commit is contained in:
parent
6322893af8
commit
38d8043c6b
@ -34,12 +34,14 @@
|
|||||||
<div class="col col-md-2 d-print-none">
|
<div class="col col-md-2 d-print-none">
|
||||||
<div class="btn-list justify-content-end mb-2">
|
<div class="btn-list justify-content-end mb-2">
|
||||||
{% if perms.extras.edit_scriptmodule %}
|
{% if perms.extras.edit_scriptmodule %}
|
||||||
{% url 'extras:scriptmodule_edit' pk=module.pk as edit_url %}
|
<a href="{% url 'extras:scriptmodule_edit' pk=module.pk %}" class="btn btn-yellow" role="button">
|
||||||
{% include 'buttons/edit.html' with url=edit_url %}
|
<i class="mdi mdi-pencil" aria-hidden="true"></i> {% trans "Edit" %}
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.extras.delete_scriptmodule %}
|
{% if perms.extras.delete_scriptmodule %}
|
||||||
{% url 'extras:scriptmodule_delete' pk=module.pk as delete_url %}
|
<a href={% url 'extras:scriptmodule_delete' pk=module.pk %} class="btn btn-red" role="button">
|
||||||
{% include 'buttons/delete.html' with url=delete_url %}
|
<i class="mdi mdi-trash-can-outline" aria-hidden="true"></i> {% trans "Delete" %}
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user