mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-10 22:02:17 -06:00
Converted IPAM VRF, Aggregate add/edit/delete views to CBVs
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
{% extends 'utilities/confirmation_form.html' %}
|
||||
{% load form_helpers %}
|
||||
|
||||
{% block title %}Delete VRF {{ vrf }}?{% endblock %}
|
||||
{% block title %}Delete VRF {{ obj }}?{% endblock %}
|
||||
|
||||
{% block message %}
|
||||
<p>
|
||||
Are you sure you want to delete this VRF?
|
||||
{% if vrf.prefix_set.count %}
|
||||
{% if obj.prefix_set.count %}
|
||||
The following prefixes will also be deleted:
|
||||
{% else %}
|
||||
(There are no prefixes associated with this VRF.)
|
||||
{% endif %}
|
||||
</p>
|
||||
{% if vrf.prefix_set.count %}
|
||||
{% if obj.prefix_set.count %}
|
||||
<ul>
|
||||
{% for p in vrf.prefix_set.all %}
|
||||
{% for p in obj.prefix_set.all %}
|
||||
<li><a href="{% url 'ipam:prefix' pk=p.pk %}">{{ p }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user