mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Added front-end UI for RackGroups
This commit is contained in:
13
netbox/templates/dcim/inc/rackgroup_table.html
Normal file
13
netbox/templates/dcim/inc/rackgroup_table.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% load render_table from django_tables2 %}
|
||||
{% if perms.dcim.delete_rackgroup %}
|
||||
<form method="post" class="form form-horizontal">
|
||||
{% csrf_token %}
|
||||
{% render_table table table_template|default:'table.html' %}
|
||||
<button type="submit" name="_delete" formaction="{% url 'dcim:rackgroup_bulk_delete' %}" class="btn btn-danger btn-sm">
|
||||
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
|
||||
Delete Selected
|
||||
</button>
|
||||
</form>
|
||||
{% else %}
|
||||
{% render_table table table_template|default:'table.html' %}
|
||||
{% endif %}
|
Reference in New Issue
Block a user