mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
{% extends 'ipam/prefix/base.html' %}
|
|
{% load helpers %}
|
|
|
|
{% block content %}
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
{% include 'inc/table_controls_htmx.html' with table_modal="IPRangeTable_config" %}
|
|
|
|
<div class="card">
|
|
<div class="card-body" id="object_list">
|
|
{% include 'htmx/table.html' %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="noprint bulk-buttons">
|
|
<div class="bulk-button-group">
|
|
{% if perms.ipam.change_iprange %}
|
|
<button type="submit" name="_edit" formaction="{% url 'ipam:iprange_bulk_edit' %}?return_url={% url 'ipam:prefix_ipranges' pk=object.pk %}" class="btn btn-warning btn-sm">
|
|
<i class="mdi mdi-pencil" aria-hidden="true"></i> Edit
|
|
</button>
|
|
{% endif %}
|
|
{% if perms.ipam.delete_iprange %}
|
|
<button type="submit" name="_delete" formaction="{% url 'ipam:iprange_bulk_delete' %}?return_url={% url 'ipam:prefix_ipranges' pk=object.pk %}" class="btn btn-danger btn-sm">
|
|
<i class="mdi mdi-trash-can-outline" aria-hidden="true"></i> Delete
|
|
</button>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{% table_config_form table %}
|
|
{% endblock %}
|