1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Move bulk edit/delete buttons to template tags

This commit is contained in:
jeremystretch
2022-03-10 16:27:53 -05:00
parent 5a3e99626d
commit 76445bd19c
4 changed files with 42 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
{% if url %}
<button type="submit" name="_delete" formaction="{{ url }}" class="btn btn-danger btn-sm">
<i class="mdi mdi-trash-can-outline" aria-hidden="true"></i> Delete Selected
</button>
{% endif %}

View File

@@ -0,0 +1,5 @@
{% if url %}
<button type="submit" name="_edit" formaction="{{ url }}" class="btn btn-warning btn-sm">
<i class="mdi mdi-pencil" aria-hidden="true"></i> Edit Selected
</button>
{% endif %}