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

44 lines
1.4 KiB
HTML
Raw Normal View History

2021-04-18 16:42:28 -07:00
{% extends 'layout.html' %}
{% load helpers %}
{% block title %}{{ report.name }}{% endblock %}
2021-04-18 16:42:28 -07:00
{% block breadcrumb_main %}
<nav class="breadcrumb-container" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{% url 'extras:report_list' %}">Reports</a></li>
<li class="breadcrumb-item"><a href="{% url 'extras:report_list' %}#module.{{ report.module }}">{{ report.module|bettertitle }}</a></li>
<li class="breadcrumb-item">{{ report.name }}</li>
</ol>
</nav>
2020-08-10 15:56:55 -04:00
{% endblock %}
{% block content %}
2021-04-18 16:42:28 -07:00
{% if report.description %}
<p class="text-muted">{{ report.description }}</p>
{% endif %}
{% if perms.extras.run_report %}
<div class="float-end noprint">
<form action="{% url 'extras:report' module=report.module name=report.class_name %}" method="post">
{% csrf_token %}
<button type="submit" name="_run" class="btn btn-primary">
{% if report.result %}
2021-04-18 16:42:28 -07:00
<i class="mdi mdi-replay"></i> Run Again
{% else %}
<i class="mdi mdi-play"></i> Run Report
{% endif %}
2021-04-18 16:42:28 -07:00
</button>
</form>
</div>
{% endif %}
<div class="row">
<div class="col-md-12">
{% if report.result %}
Last run: <a href="{% url 'extras:report_result' job_result_pk=report.result.pk %}">
<strong>{{ report.result.created }}</strong>
</a>
{% endif %}
</div>
2021-04-18 16:42:28 -07:00
</div>
{% endblock %}