Skip to content

Commit

Permalink
Merge pull request #2083 from Grokzen/add_rack_role_export
Browse files Browse the repository at this point in the history
Add missing export button to rack roles list view.
  • Loading branch information
jeremystretch authored May 22, 2018
2 parents 0d267d9 + fc0e8e2 commit afba80b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions netbox/templates/dcim/rackrole_list.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
{% extends '_base.html' %}
{% load helpers %}
{% load buttons %}

{% block content %}
<div class="pull-right">
{% if perms.dcim.add_rackrole %}
<a href="{% url 'dcim:rackrole_add' %}" class="btn btn-primary">
<span class="fa fa-plus" aria-hidden="true"></span>
Add a rack role
</a>
<a href="{% url 'dcim:rackrole_import' %}" class="btn btn-info">
<span class="fa fa-download" aria-hidden="true"></span>
Import rack roles
</a>
{% add_button 'dcim:rackrole_add' %}
{% import_button 'dcim:rackrole_import' %}
{% endif %}
{% export_button content_type %}
</div>
<h1>{% block title %}Rack Roles{% endblock %}</h1>
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
{% include 'utilities/obj_table.html' with bulk_delete_url='dcim:rackrole_bulk_delete' %}
</div>
</div>
Expand Down

0 comments on commit afba80b

Please sign in to comment.