mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
23 lines
1.1 KiB
HTML
23 lines
1.1 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 %}
|
|
<input type="hidden" name="redirect_url" value="{{ request.path }}{% if request.GET %}?{{ request.GET.urlencode }}{% endif %}" />
|
|
{% 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 %}
|