prefixes.html 1005 B

1234567891011121314151617181920212223
  1. {% extends 'ipam/prefix/base.html' %}
  2. {% load helpers %}
  3. {% load static %}
  4. {% block extra_controls %}
  5. {% include 'ipam/inc/toggle_available.html' %}
  6. {% if perms.ipam.add_prefix and first_available_prefix %}
  7. <a href="{% url 'ipam:prefix_add' %}?prefix={{ first_available_prefix }}&vrf={{ object.vrf.pk }}&site={{ object.site.pk }}&tenant_group={{ object.tenant.group.pk }}&tenant={{ object.tenant.pk }}" class="btn btn-sm btn-success">
  8. <i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add Prefix
  9. </a>
  10. {% endif %}
  11. {{ block.super }}
  12. {% endblock %}
  13. {% block content %}
  14. <div class="row">
  15. <div class="col col-md-12">
  16. {% include 'inc/table_controls.html' with table_modal="PrefixDetailTable_config" %}
  17. {% include 'utilities/obj_table.html' with heading='Child Prefixes' bulk_edit_url='ipam:prefix_bulk_edit' bulk_delete_url='ipam:prefix_bulk_delete' parent=prefix %}
  18. </div>
  19. </div>
  20. {% table_config_form table table_name="PrefixDetailTable" %}
  21. {% endblock %}