aggregate_list.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. {% extends '_base.html' %}
  2. {% load humanize %}
  3. {% load helpers %}
  4. {% block title %}Aggregates{% endblock %}
  5. {% block content %}
  6. <div class="pull-right">
  7. {% if perms.ipam.add_aggregate %}
  8. <a href="{% url 'ipam:aggregate_add' %}" class="btn btn-primary">
  9. <span class="fa fa-plus" aria-hidden="true"></span>
  10. Add an aggregate
  11. </a>
  12. <a href="{% url 'ipam:aggregate_import' %}" class="btn btn-info">
  13. <span class="fa fa-download" aria-hidden="true"></span>
  14. Import aggregates
  15. </a>
  16. {% endif %}
  17. {% include 'inc/export_button.html' with obj_type='aggregates' %}
  18. </div>
  19. <h1>Aggregates</h1>
  20. <div class="row">
  21. <div class="col-md-9">
  22. {% include 'utilities/obj_table.html' with bulk_edit_url='ipam:aggregate_bulk_edit' bulk_delete_url='ipam:aggregate_bulk_delete' %}
  23. <p class="text-right">IPv4 total: <strong>{{ ipv4_total|intcomma }} /32s</strong></p>
  24. <p class="text-right">IPv6 total: <strong>{{ ipv6_total|intcomma }} /64s</strong></p>
  25. </div>
  26. <div class="col-md-3">
  27. {% include 'inc/search_panel.html' %}
  28. </div>
  29. </div>
  30. {% endblock %}