Added views for DeviceRoles

This commit is contained in:
Jeremy Stretch
2016-05-12 14:38:34 -04:00
parent 1fb2cc4b31
commit 21b3fbd50f
10 changed files with 157 additions and 20 deletions

View File

@@ -0,0 +1,21 @@
{% extends '_base.html' %}
{% load helpers %}
{% block title %}Device Roles{% endblock %}
{% block content %}
<div class="pull-right">
{% if perms.dcim.add_devicerole %}
<a href="{% url 'dcim:devicerole_add' %}" class="btn btn-primary">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Add a device role
</a>
{% endif %}
</div>
<h1>Device Roles</h1>
<div class="row">
<div class="col-md-12">
{% include 'dcim/inc/devicerole_table.html' %}
</div>
</div>
{% endblock %}