-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
242 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "admin/base.html" %} | ||
|
||
{% block footer %} | ||
<div id="footer"></div> | ||
{% if google_analytics %} | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
ga('create', '{{ google_analytics }}', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> | ||
{% endif %} | ||
{% endblock %} |
98 changes: 98 additions & 0 deletions
98
jarbas/dashboard/templates/templates/dashboard/reimbursement_summary_change_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{% extends "admin/change_list.html" %} | ||
{% load dashboard %} | ||
|
||
{% block content_title %} | ||
<h1> | ||
Resumo dos reembolsos da CEAP | ||
{% if year or month %}-{% endif %} | ||
{% if month %}{{ month }}{% endif %} | ||
{% if year and month %}/{% endif %} | ||
{% if year %}{{ year }}{% endif %} | ||
</h1> | ||
{% endblock %} | ||
|
||
{% block result_list %} | ||
<div class="results"> | ||
<table> | ||
|
||
<thead> | ||
<tr> | ||
<th> | ||
<div class=”text”> | ||
<a href=”#”>Categoria (sub-cota)</a> | ||
</div> | ||
</th> | ||
<th> | ||
<div class=”text”> | ||
<a href=”#”>Número de reembolsos</a> | ||
</div> | ||
</th> | ||
<th> | ||
<div class=”text”> | ||
<a href=”#”>Valor total</a> | ||
</div> | ||
</th> | ||
<th> | ||
<div class=”text”> | ||
<a href=”#”> | ||
<strong>% do total</strong> | ||
</a> | ||
</div> | ||
</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
{% for row in summary %} | ||
<tr class=”{% cycle 'row1' 'row2' %}”> | ||
<td>{{ row.subquota_description|translate_subquota }}</td> | ||
<td>{{ row.total_reimbursements|brazilian_integer }}</td> | ||
<td>{{ row.total_value|brazilian_reais }}</td> | ||
<td> | ||
<strong> | ||
{{ row.total_value|default:0|percentof:summary_total.total_value }} | ||
</strong> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
|
||
<tfoot> | ||
<tr style=”font-weight:bold; border-top:2px solid #DDDDDD;”> | ||
<td> Total </td> | ||
<td>{{ summary_total.total_reimbursements|brazilian_integer }}</td> | ||
<td>{{ summary_total.total_value|brazilian_reais }}</td> | ||
<td>100%</td> | ||
</tr> | ||
</tfoot> | ||
|
||
</table> | ||
</div> | ||
|
||
<p> </p> | ||
|
||
{% if summary_over_time|length > 1 %} | ||
<div class="results"> | ||
<h2>Reembolsos por período (por {{ chart_grouping|translate_chart_grouping }})</h2> | ||
<div class="bar-chart"> | ||
{% for data in summary_over_time %} | ||
<div class="bar" style="height:{{ data.percent }}%"> | ||
<div class="bar-tooltip"> | ||
{{ data.total|brazilian_reais }}<br> | ||
{% if chart_grouping == 'year' %} | ||
{{ data.chart_grouping|chart_grouping_as_date|date:"Y"}} | ||
{% else %} | ||
{{ data.chart_grouping|chart_grouping_as_date|date:"m/Y"}} | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
</div> | ||
{% endif %} | ||
|
||
{% endblock %} | ||
|
||
{% block pagination %}{% endblock %} |
15 changes: 15 additions & 0 deletions
15
jarbas/dashboard/templates/templates/templates/admin/base.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "admin/base.html" %} | ||
|
||
{% block footer %} | ||
<div id="footer"></div> | ||
{% if google_analytics %} | ||
<script> | ||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
ga('create', '{{ google_analytics }}', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> | ||
{% endif %} | ||
{% endblock %} |
File renamed without changes.
98 changes: 98 additions & 0 deletions
98
.../dashboard/templates/templates/templates/dashboard/reimbursement_summary_change_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{% extends "admin/change_list.html" %} | ||
{% load dashboard %} | ||
|
||
{% block content_title %} | ||
<h1> | ||
Resumo dos reembolsos da CEAP | ||
{% if year or month %}-{% endif %} | ||
{% if month %}{{ month }}{% endif %} | ||
{% if year and month %}/{% endif %} | ||
{% if year %}{{ year }}{% endif %} | ||
</h1> | ||
{% endblock %} | ||
|
||
{% block result_list %} | ||
<div class="results"> | ||
<table> | ||
|
||
<thead> | ||
<tr> | ||
<th> | ||
<div class=”text”> | ||
<a href=”#”>Categoria (sub-cota)</a> | ||
</div> | ||
</th> | ||
<th> | ||
<div class=”text”> | ||
<a href=”#”>Número de reembolsos</a> | ||
</div> | ||
</th> | ||
<th> | ||
<div class=”text”> | ||
<a href=”#”>Valor total</a> | ||
</div> | ||
</th> | ||
<th> | ||
<div class=”text”> | ||
<a href=”#”> | ||
<strong>% do total</strong> | ||
</a> | ||
</div> | ||
</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
{% for row in summary %} | ||
<tr class=”{% cycle 'row1' 'row2' %}”> | ||
<td>{{ row.subquota_description|translate_subquota }}</td> | ||
<td>{{ row.total_reimbursements|brazilian_integer }}</td> | ||
<td>{{ row.total_value|brazilian_reais }}</td> | ||
<td> | ||
<strong> | ||
{{ row.total_value|default:0|percentof:summary_total.total_value }} | ||
</strong> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
|
||
<tfoot> | ||
<tr style=”font-weight:bold; border-top:2px solid #DDDDDD;”> | ||
<td> Total </td> | ||
<td>{{ summary_total.total_reimbursements|brazilian_integer }}</td> | ||
<td>{{ summary_total.total_value|brazilian_reais }}</td> | ||
<td>100%</td> | ||
</tr> | ||
</tfoot> | ||
|
||
</table> | ||
</div> | ||
|
||
<p> </p> | ||
|
||
{% if summary_over_time|length > 1 %} | ||
<div class="results"> | ||
<h2>Reembolsos por período (por {{ chart_grouping|translate_chart_grouping }})</h2> | ||
<div class="bar-chart"> | ||
{% for data in summary_over_time %} | ||
<div class="bar" style="height:{{ data.percent }}%"> | ||
<div class="bar-tooltip"> | ||
{{ data.total|brazilian_reais }}<br> | ||
{% if chart_grouping == 'year' %} | ||
{{ data.chart_grouping|chart_grouping_as_date|date:"Y"}} | ||
{% else %} | ||
{{ data.chart_grouping|chart_grouping_as_date|date:"m/Y"}} | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
</div> | ||
{% endif %} | ||
|
||
{% endblock %} | ||
|
||
{% block pagination %}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.