Convert IPAM list views to extend standard template

This commit is contained in:
Jeremy Stretch
2020-02-13 17:22:17 -05:00
parent 8df9bb6fb4
commit 8212c8f6fc
4 changed files with 23 additions and 69 deletions

View File

@@ -1,26 +1,9 @@
{% extends '_base.html' %}
{% load buttons %}
{% extends 'utilities/obj_list.html' %}
{% load helpers %}
{% block content %}
<div class="pull-right noprint">
{% block buttons %}
<div class="btn-group" role="group">
<a href="{% url 'ipam:prefix_list' %}{% querystring request expand=None page=1 %}" class="btn btn-default{% if not request.GET.expand %} active{% endif %}">Collapse</a>
<a href="{% url 'ipam:prefix_list' %}{% querystring request expand='on' page=1 %}" class="btn btn-default{% if request.GET.expand %} active{% endif %}">Expand</a>
</div>
{% if perms.ipam.add_prefix %}
{% add_button 'ipam:prefix_add' %}
{% import_button 'ipam:prefix_import' %}
{% endif %}
{% export_button content_type %}
</div>
<h1>{% block title %}Prefixes{% endblock %}</h1>
<div class="row">
<div class="col-md-9">
{% include 'utilities/obj_table.html' with bulk_edit_url='ipam:prefix_bulk_edit' bulk_delete_url='ipam:prefix_bulk_delete' %}
</div>
<div class="col-md-3 noprint">
{% include 'inc/search_panel.html' %}
</div>
</div>
{% endblock %}