tpotce/collector/CollectorWEB/templates/report_adv.html
nu11secur1ty cf05cd6abd Upload-collector
Upload-collector
2024-06-05 10:52:53 +03:00

66 lines
No EOL
2.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends 'base.html' %}
{% block title %}Създаване на доклади{% endblock %}
{% load static %}
{% block content %}
<div class="container">
<div class="row justify-content-md-center">
<div class="col-md-12">
<H1>Създаване на репорти</H1>
<p>Можете да използвате предоставените връзки за да генерирате различни репорти. За удобство може да избирате между CSV и JSON.</p>
</div>
</div>
<div class="row justify-content-md-center">
<div class="col-md-12">
<form action="/reports_adv" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit">
</form>
</div>
</div>
<div class="row justify-content-md-center">
<div class="col-md-12 center">
<h1>Генерирани доклади</h1>
<table class="table table-type-per-server-24H" id="table-type-per-server-24H">
<thead>
<tr>
<th>Начална дата</th>
<th>Крайна дата</th>
<th>Хъни потове</th>
<th>Държава</th>
<th></th>
</tr>
</thead>
<tbody>
{% for report in reports %}
<tr>
<td>{{ report.from_date }}</td>
<td>{{ report.to_date }}</td>
<td>
{% for honey in report.affected_honeys %}
{{ honey }} <br/>
{% endfor %}
</td>
<td>
{% for country in report.countries %}
{{ country }}
{% endfor %}
</td>
<td>
{% url 'reports_adv' as the_url %}
<a href="{{ the_url }}?r={{ report.id }}">CSV</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}
{% block javascript %}
{% endblock %}