mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Initial push to public repo
This commit is contained in:
21
netbox/templates/ipam/inc/vrf_table.html
Normal file
21
netbox/templates/ipam/inc/vrf_table.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% load render_table from django_tables2 %}
|
||||
{% if perms.ipam.change_vrf or perms.ipam.delete_vrf %}
|
||||
<form method="post" class="form form-horizontal">
|
||||
{% csrf_token %}
|
||||
{% render_table vrf_table 'table.html' %}
|
||||
{% if perms.ipam.change_vrf %}
|
||||
<button type="submit" name="_edit" formaction="{% url 'ipam:vrf_bulk_edit' %}" class="btn btn-warning btn-sm">
|
||||
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
|
||||
Edit Selected
|
||||
</button>
|
||||
{% endif %}
|
||||
{% if perms.ipam.delete_vrf %}
|
||||
<button type="submit" name="_delete" formaction="{% url 'ipam:vrf_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 vrf_table 'table.html' %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user