1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

47 lines
1.6 KiB
HTML
Raw Normal View History

{% extends 'base.html' %}
{% load helpers %}
{% block title %}{{ report.name }}{% endblock %}
2020-08-10 15:56:55 -04:00
{% block header %}
<div class="row noprint">
<div class="col-md-12">
<ol class="breadcrumb">
<li><a href="{% url 'extras:report_list' %}">Reports</a></li>
<li><a href="{% url 'extras:report_list' %}#module.{{ report.module }}">{{ report.module|bettertitle }}</a></li>
<li>{{ report.name }}</li>
</ol>
</div>
</div>
{% if perms.extras.run_report %}
<div class="pull-right noprint">
<form action="{% url 'extras:report' module=report.module name=report.class_name %}" method="post">
{% csrf_token %}
2020-08-10 15:56:55 -04:00
<button type="submit" name="_run" class="btn btn-primary">
{% if report.result %}
<i class="mdi mdi-replay"></i> Run Again
2020-08-10 15:56:55 -04:00
{% else %}
<i class="mdi mdi-play"></i> Run Report
2020-08-10 15:56:55 -04:00
{% endif %}
</button>
</form>
</div>
{% endif %}
<h1>{{ report.name }}</h1>
2020-08-10 15:56:55 -04:00
{% if report.description %}
<p class="lead">{{ report.description }}</p>
{% endif %}
{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-12">
{% if report.result %}
2020-08-10 15:56:55 -04:00
Last run: <a href="{% url 'extras:report_result' job_result_pk=report.result.pk %}">
<strong>{{ report.result.created }}</strong>
2020-08-10 15:56:55 -04:00
</a>
{% endif %}
</div>
</div>
{% endblock %}