2016-09-30 10:46:05 +00:00
|
|
|
{% extends "site_base.html" %}
|
|
|
|
{% load bootstrap %}
|
|
|
|
{% load registrasion_tags %}
|
|
|
|
|
2019-10-13 12:22:15 +00:00
|
|
|
{% block page_title %}Registration report{% endblock %}
|
|
|
|
{% block head_title %}Registration report - {{ title }}{% endblock %}
|
|
|
|
|
2018-10-01 00:32:56 +00:00
|
|
|
{% block content %}
|
2016-09-30 10:46:05 +00:00
|
|
|
|
|
|
|
<h2>{{ title }}</h2>
|
|
|
|
|
|
|
|
<p><a href="{% url 'reports_list' %}">Return to reports list</a></p>
|
|
|
|
|
|
|
|
{% if form %}
|
2017-04-16 06:01:57 +00:00
|
|
|
<form class="form-horizontal" method="GET">
|
2016-09-30 10:46:05 +00:00
|
|
|
{{ form | bootstrap}}
|
|
|
|
<br/>
|
|
|
|
<input class="btn btn-primary" type="submit">
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
{% for report in reports %}
|
2017-10-04 09:37:07 +00:00
|
|
|
<h3>{{ report.title }}</h3>
|
2017-10-08 05:14:28 +00:00
|
|
|
{% if report.headings %}
|
2017-10-04 09:37:07 +00:00
|
|
|
<table class="table table-striped table-reportdata">
|
2017-10-08 05:14:28 +00:00
|
|
|
{% else %}
|
2019-10-14 12:28:41 +00:00
|
|
|
<table class="table table-striped">
|
2017-10-08 05:14:28 +00:00
|
|
|
{% endif %}
|
2017-10-04 09:37:07 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
{% for heading in report.headings %}
|
|
|
|
<th>{{ heading }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for line in report.rows %}
|
|
|
|
<tr>
|
|
|
|
{% for item in line %}
|
|
|
|
<td>
|
|
|
|
{{ item|safe }}
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
2016-09-30 10:46:05 +00:00
|
|
|
{% endfor %}
|
2017-10-04 09:37:07 +00:00
|
|
|
</tbody>
|
2017-10-08 05:14:28 +00:00
|
|
|
</table>
|
|
|
|
|
2019-10-14 12:28:41 +00:00
|
|
|
<hr class="my-5" />
|
2016-09-30 10:46:05 +00:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% endblock %}
|
2017-10-04 09:37:07 +00:00
|
|
|
|
|
|
|
{% block extra_script %}
|
2019-10-14 12:28:41 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/jszip-2.5.0/dt-1.10.20/b-1.6.0/b-colvis-1.6.0/b-html5-1.6.0/b-print-1.6.0/cr-1.5.2/fc-3.3.0/fh-3.1.6/r-2.2.3/rg-1.1.1/datatables.min.css"/>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script>
|
|
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script>
|
|
|
|
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/jszip-2.5.0/dt-1.10.20/b-1.6.0/b-colvis-1.6.0/b-html5-1.6.0/b-print-1.6.0/cr-1.5.2/fc-3.3.0/fh-3.1.6/r-2.2.3/rg-1.1.1/datatables.min.js"></script>
|
|
|
|
|
2017-10-08 05:14:28 +00:00
|
|
|
<script type="text/javascript">
|
2019-10-14 12:28:41 +00:00
|
|
|
$("table.table-reportdata").dataTable({
|
|
|
|
"dom":
|
|
|
|
"<'row'<'col-sm-12 col-md-3'l><'col-sm-12 col-md-5'B><'col-sm-12 col-md-4'f>>" +
|
|
|
|
"<'row'<'col-sm-12'tr>>" +
|
|
|
|
"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
|
|
|
|
"stateSave": true,
|
|
|
|
"lengthMenu": [[10, 50, 100, -1], [10, 50, 100, "All"]],
|
|
|
|
"pageLength": 100,
|
|
|
|
"buttons": [
|
|
|
|
"csv",
|
|
|
|
"print",
|
|
|
|
{
|
|
|
|
extend: 'copy',
|
|
|
|
text: 'Copy',
|
|
|
|
exportOptions: {
|
|
|
|
columns: ':visible'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
extend: 'collection',
|
|
|
|
text: 'Columns',
|
|
|
|
buttons: [ 'columnsToggle']
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
</script>
|
2017-10-04 09:37:07 +00:00
|
|
|
{% endblock %}
|