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:
5
netbox/utilities/templates/buttons/bulk_delete.html
Normal file
5
netbox/utilities/templates/buttons/bulk_delete.html
Normal 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 %}
|
5
netbox/utilities/templates/buttons/bulk_edit.html
Normal file
5
netbox/utilities/templates/buttons/bulk_edit.html
Normal 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 %}
|
Reference in New Issue
Block a user