Update templates/relatorio.html
Browse files- templates/relatorio.html +19 -35
templates/relatorio.html
CHANGED
|
@@ -1,46 +1,30 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="pt-BR">
|
| 3 |
<head>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
table th { background-color: #f5f5f5; }
|
| 15 |
-
table td:first-child, table th:first-child { text-align: center; }
|
| 16 |
-
img { display: block; margin: 20px auto; max-width: 100%; }
|
| 17 |
-
</style>
|
| 18 |
</head>
|
| 19 |
<body>
|
| 20 |
-
|
| 21 |
-
<h1>Relatório de Simulação de Investimentos</h1>
|
| 22 |
-
<p>Ano: {{ year }}</p>
|
| 23 |
-
</header>
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
</section>
|
| 34 |
|
| 35 |
-
|
| 36 |
-
<h2>Tabela de Valores Anuais</h2>
|
| 37 |
-
{{ tabela | safe }}
|
| 38 |
-
</section>
|
| 39 |
-
|
| 40 |
-
<footer>
|
| 41 |
-
<p>Relatório gerado automaticamente pelo sistema de simulação.</p>
|
| 42 |
-
<p>© {{ year }} Sua Empresa de Investimentos</p>
|
| 43 |
-
</footer>
|
| 44 |
</body>
|
| 45 |
</html>
|
| 46 |
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="pt-BR">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<style>
|
| 6 |
+
body { font-family: Arial; margin: 20px; color: #333; }
|
| 7 |
+
h1 { text-align: center; color: #005bb5; }
|
| 8 |
+
table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 12px; }
|
| 9 |
+
th, td { border: 1px solid #ccc; padding: 8px; text-align: right; }
|
| 10 |
+
th { background: #007cf0; color: white; }
|
| 11 |
+
.destaque { background: #e0ffe0; font-weight: bold; padding: 10px; text-align: center; margin-top: 20px; }
|
| 12 |
+
img { display: block; margin: 20px auto; width: 80%; }
|
| 13 |
+
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
</head>
|
| 15 |
<body>
|
| 16 |
+
<h1>Relatório de Simulação</h1>
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
<div class="destaque">
|
| 19 |
+
Investimento com maior retorno: {{ investimento_mais_valorizado }}<br>
|
| 20 |
+
Valor final estimado: R$ {{ "{:,.2f}".format(valor_mais_alto) }}
|
| 21 |
+
</div>
|
| 22 |
|
| 23 |
+
{% if grafico_base64 %}
|
| 24 |
+
<img src="data:image/png;base64,{{ grafico_base64 }}" alt="Gráfico de Simulação">
|
| 25 |
+
{% endif %}
|
|
|
|
| 26 |
|
| 27 |
+
{{ tabela | safe }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
</body>
|
| 29 |
</html>
|
| 30 |
|