add api urls and signals interface for detail route buttons

This commit is contained in:
John Anderson
2020-03-01 03:24:17 -05:00
parent a17c22746d
commit 71a8a13644
8 changed files with 87 additions and 9 deletions

View File

@@ -3,6 +3,7 @@
{% load static %}
{% load helpers %}
{% load custom_links %}
{% load plugins %}
{% block title %}{{ device }}{% endblock %}
@@ -36,6 +37,7 @@
</div>
</div>
<div class="pull-right noprint">
{% plugin_buttons device %}
{% if show_graphs %}
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#graphs_modal" data-obj="{{ device.name }}" data-url="{% url 'dcim-api:device-graphs' pk=device.pk %}" title="Show graphs">
<i class="fa fa-signal" aria-hidden="true"></i>