mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* Move ASN to a separate module * Move ASNField from dcim to ipam * Introduce ASNRange model * Add relationship from ASN to ASNRange * Add an available-asns API endpoint * Add RIR assignment for ASNRange * Add standard tests * Move child ASNs to a tabbed view * Remove FK on ASN to ASNRange * Add tests for provisioning available ASNs * Add docs for ASNRange
37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
HTML
{% extends 'ipam/asnrange/base.html' %}
|
|
{% load helpers %}
|
|
|
|
{% block content %}
|
|
{% include 'inc/table_controls_htmx.html' with table_modal="ASNTable_config" %}
|
|
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
|
|
<div class="card">
|
|
<div class="card-body htmx-container table-responsive" id="object_list">
|
|
{% include 'htmx/table.html' %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="noprint bulk-buttons">
|
|
<div class="bulk-button-group">
|
|
{% if 'bulk_edit' in actions %}
|
|
<button type="submit" name="_edit" formaction="{% url 'ipam:asn_bulk_edit' %}?return_url={% url 'ipam:asnrange_asns' pk=object.pk %}" class="btn btn-warning btn-sm">
|
|
<i class="mdi mdi-pencil" aria-hidden="true"></i> Edit
|
|
</button>
|
|
{% endif %}
|
|
{% if 'bulk_delete' in actions %}
|
|
<button type="submit" name="_delete" formaction="{% url 'ipam:asn_bulk_delete' %}?return_url={% url 'ipam:asnrange_asns' 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>
|
|
{% endblock %}
|
|
|
|
{% block modals %}
|
|
{{ block.super }}
|
|
{% table_config_form table %}
|
|
{% endblock modals %}
|