From fc0e8e2aaebcc5aa5b776a92a623745dffb7f5c0 Mon Sep 17 00:00:00 2001 From: Grokzen Date: Tue, 8 May 2018 16:06:53 +0200 Subject: [PATCH] Add export button to rack roles list view. --- netbox/templates/dcim/rackrole_list.html | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/netbox/templates/dcim/rackrole_list.html b/netbox/templates/dcim/rackrole_list.html index e18bf79414..51cb197817 100644 --- a/netbox/templates/dcim/rackrole_list.html +++ b/netbox/templates/dcim/rackrole_list.html @@ -1,22 +1,17 @@ {% extends '_base.html' %} -{% load helpers %} +{% load buttons %} {% block content %}
{% if perms.dcim.add_rackrole %} - - - Add a rack role - - - - Import rack roles - + {% add_button 'dcim:rackrole_add' %} + {% import_button 'dcim:rackrole_import' %} {% endif %} + {% export_button content_type %}

{% block title %}Rack Roles{% endblock %}

-
+
{% include 'utilities/obj_table.html' with bulk_delete_url='dcim:rackrole_bulk_delete' %}