mirror of https://github.com/interlegis/sigi.git
Sesostris Vieira
6 months ago
5 changed files with 186 additions and 2 deletions
@ -0,0 +1,14 @@ |
|||
{% extends "utils/report/report.html" %} |
|||
|
|||
{% block extrastyle %} |
|||
{{ block.super }} |
|||
<style type="text/css"> |
|||
.cellnumber { |
|||
text-align: right; |
|||
} |
|||
</style> |
|||
{% endblock %} |
|||
|
|||
{% block data %} |
|||
{% include "espacos/report/resumo_reservas_report/report_items_snippet.html" with mode="html" %} |
|||
{% endblock data %} |
@ -0,0 +1,64 @@ |
|||
{% load i18n admin_urls sigi_tags %} |
|||
<div class="row"> |
|||
<div class="col s12"> |
|||
<div class="card"> |
|||
<div class="card-content"> |
|||
<table class="striped"> |
|||
<colgroup> |
|||
<col /> |
|||
<col class="cellnumber"/> |
|||
<col class="cellnumber"/> |
|||
<col class="cellnumber"/> |
|||
<col class="cellnumber"/> |
|||
</colgroup> |
|||
<thead> |
|||
<tr> |
|||
<th rowspan="2">{% translate "Espaço" %}</th> |
|||
<th colspan="2">{% translate "Número de reservas" %}</th> |
|||
<th colspan="2">{% translate "Número de participantes" %}</th> |
|||
</tr> |
|||
<tr> |
|||
<th>{% translate "Total" %}</th> |
|||
<th>{% translate "Vinculadas a eventos Interlegis" %}</th> |
|||
<th>{% translate "Total" %}</th> |
|||
<th>{% translate "Média por reserva" %}</th> |
|||
</thead> |
|||
<tbody> |
|||
{% for obj in object_list %} |
|||
{% if break_field %} |
|||
{% with obj|valueof:break_field as monitor_break %} |
|||
{% ifchanged monitor_break %} |
|||
<tr><th colspan="{{ list_fields|length }}">{{ monitor_break }}</th></tr> |
|||
{% endifchanged %} |
|||
{% endwith %} |
|||
{% endif %} |
|||
<tr{% if change_field %}{% with obj|valueof:change_field as monitor_change %}{% ifchanged monitor_change %} class="changed {{ change_field }}-changed"{% endifchanged %}{% endwith %}{% endif %}> |
|||
{% for field_name in list_fields %} |
|||
<td {% if not forloop.first %}class="cellnumber"{% endif %}> |
|||
{% if field_name in link_fields %} |
|||
<a href="{% url opts|admin_urlname:'change' obj.pk %}"> |
|||
{{ obj|valueof:field_name|safe }} |
|||
</a> |
|||
{% else %} |
|||
{% if forloop.last %} |
|||
{{ obj|valueof:field_name|floatformat:2|safe }} |
|||
{% else %} |
|||
{{ obj|valueof:field_name|safe }} |
|||
{% endif %} |
|||
{% endif %} |
|||
</td> |
|||
{% endfor %} |
|||
</tr> |
|||
{% empty %} |
|||
<tr> |
|||
<td colspam="{{ list_labels|length }}"> |
|||
{{ empty_message }} |
|||
</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
@ -0,0 +1,39 @@ |
|||
{% extends "utils/report/report_pdf.html" %} |
|||
{% load static i18n %} |
|||
|
|||
{% block page_size %}A4 portrait{% endblock %} |
|||
|
|||
{% block extra_style %} |
|||
{{ block.super }} |
|||
.cellnumber { |
|||
text-align: right; |
|||
} |
|||
{% endblock %} |
|||
|
|||
{% block main_content %} |
|||
<div class="card"> |
|||
<h5>Filtros</h5> |
|||
<table> |
|||
<tr> |
|||
<th>{% translate "Período" %}</th> |
|||
<td> |
|||
{% blocktranslate with data_inicio=form.data.data_inicio data_fim=form.data.data_fim %} |
|||
de {{ data_inicio }} a {{ data_fim }} |
|||
{% endblocktranslate %} |
|||
</td> |
|||
</tr> |
|||
{% if form.virtual != "A" %} |
|||
<tr> |
|||
<th>{% translate "Modo" %}</th> |
|||
<td> |
|||
{% if form.virtual == "V" %} |
|||
{% translate "Apenas virtual" %} |
|||
{% else %} |
|||
{% translate "Apenas presencial" %} |
|||
{% endif %} |
|||
</td> |
|||
</tr> |
|||
{% endif %} |
|||
</div> |
|||
{% include "espacos/report/resumo_reservas_report/report_items_snippet.html" %} |
|||
{% endblock %} |
Loading…
Reference in new issue