mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
22 lines
1.0 KiB
HTML
22 lines
1.0 KiB
HTML
|
{% load render_table from django_tables2 %}
|
||
|
{% if perms.circuits.change_circuit or perms.circuits.delete_circuit %}
|
||
|
<form method="post" class="form form-horizontal">
|
||
|
{% csrf_token %}
|
||
|
{% render_table table table_template|default:'table.html' %}
|
||
|
{% if perms.circuits.change_circuit %}
|
||
|
<button type="submit" name="_edit" formaction="{% url 'circuits:circuit_bulk_edit' %}" class="btn btn-warning btn-sm">
|
||
|
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
|
||
|
Edit Selected
|
||
|
</button>
|
||
|
{% endif %}
|
||
|
{% if perms.circuits.delete_circuit %}
|
||
|
<button type="submit" name="_delete" formaction="{% url 'circuits:circuit_bulk_delete' %}" class="btn btn-danger btn-sm">
|
||
|
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
|
||
|
Delete Selected
|
||
|
</button>
|
||
|
{% endif %}
|
||
|
</form>
|
||
|
{% else %}
|
||
|
{% render_table table table_template|default:'table.html' %}
|
||
|
{% endif %}
|