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

Added CBVs for CircuitTypes

This commit is contained in:
Jeremy Stretch
2016-05-13 12:44:03 -04:00
parent 062e64a34d
commit 558fb60c50
9 changed files with 143 additions and 13 deletions

View File

@@ -0,0 +1,14 @@
{% load render_table from django_tables2 %}
{% if perms.circuits.delete_circuittype %}
<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' %}
<button type="submit" name="_delete" formaction="{% url 'circuits:circuittype_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 %}