Update templates/relatorio.html
Browse files- templates/relatorio.html +24 -49
templates/relatorio.html
CHANGED
@@ -2,60 +2,35 @@
|
|
2 |
<html lang="pt-BR">
|
3 |
<head>
|
4 |
<meta charset="UTF-8" />
|
|
|
5 |
<style>
|
6 |
-
body {
|
7 |
-
|
8 |
-
|
9 |
-
}
|
10 |
-
|
11 |
-
|
12 |
-
}
|
13 |
-
table {
|
14 |
-
width: 100%;
|
15 |
-
border-collapse: collapse;
|
16 |
-
margin-bottom: 20px;
|
17 |
-
font-size: 12px;
|
18 |
-
}
|
19 |
-
th, td {
|
20 |
-
border: 1px solid #999;
|
21 |
-
padding: 6px;
|
22 |
-
text-align: right;
|
23 |
-
}
|
24 |
-
th {
|
25 |
-
background-color: #eee;
|
26 |
-
}
|
27 |
-
td:first-child, th:first-child {
|
28 |
-
text-align: center;
|
29 |
-
}
|
30 |
-
img {
|
31 |
-
max-width: 100%;
|
32 |
-
height: auto;
|
33 |
-
margin-bottom: 20px;
|
34 |
-
}
|
35 |
-
.summary {
|
36 |
-
margin-bottom: 20px;
|
37 |
-
font-size: 14px;
|
38 |
-
}
|
39 |
</style>
|
40 |
-
<title>Relatório da Simulação</title>
|
41 |
</head>
|
42 |
<body>
|
43 |
-
<h1>Relatório de Simulação
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
-
<
|
46 |
-
|
47 |
-
<p><strong>Retorno Mensal Studio:</strong> {{ studio_ret }}%</p>
|
48 |
-
<p><strong>Valorização Anual do Imóvel:</strong> {{ valorizacao }}%</p>
|
49 |
-
<p><strong>Lucro Anual da Franquia:</strong> R$ {{ franquia_ret }}</p>
|
50 |
-
<p><strong>Retorno Anual Ações:</strong> {{ acoes_ret }}%</p>
|
51 |
-
<p><strong>Retorno Anual Renda Fixa:</strong> {{ renda_fixa }}%</p>
|
52 |
-
<p><strong>Inflação Anual:</strong> {{ inflacao }}%</p>
|
53 |
-
</div>
|
54 |
|
55 |
-
<h2>Gráfico
|
56 |
-
<img src="data:image/png;base64,{{ grafico }}" alt="Gráfico
|
57 |
-
|
58 |
-
<h2>Tabela de Resultados</h2>
|
59 |
-
{{ tabela | safe }}
|
60 |
</body>
|
61 |
</html>
|
|
|
|
2 |
<html lang="pt-BR">
|
3 |
<head>
|
4 |
<meta charset="UTF-8" />
|
5 |
+
<title>Relatório Simulação de Investimentos</title>
|
6 |
<style>
|
7 |
+
body { font-family: Arial, sans-serif; margin: 20px; }
|
8 |
+
h1, h2 { color: #2c3e50; }
|
9 |
+
table { border-collapse: collapse; width: 100%; margin-top: 20px; }
|
10 |
+
th, td { border: 1px solid #ddd; padding: 8px; text-align: right; }
|
11 |
+
th { background-color: #2980b9; color: white; }
|
12 |
+
td:first-child, th:first-child { text-align: center; }
|
13 |
+
img { max-width: 100%; margin-top: 20px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
</style>
|
|
|
15 |
</head>
|
16 |
<body>
|
17 |
+
<h1>Relatório de Simulação</h1>
|
18 |
+
<h2>Parâmetros</h2>
|
19 |
+
<ul>
|
20 |
+
<li>Capital Inicial: R$ {{ "{:,.2f}".format(capital) }}</li>
|
21 |
+
<li>Retorno Mensal Short Stay (%): {{ studio_ret }}</li>
|
22 |
+
<li>Valorização Anual do Imóvel (%): {{ valorizacao }}</li>
|
23 |
+
<li>Lucro Anual da Franquia (R$): R$ {{ "{:,.2f}".format(franquia_ret) }}</li>
|
24 |
+
<li>Retorno Anual em Ações (%): {{ acoes_ret }}</li>
|
25 |
+
<li>Retorno Anual em Renda Fixa (%): {{ renda_fixa }}</li>
|
26 |
+
<li>Inflação Anual (%): {{ inflacao }}</li>
|
27 |
+
</ul>
|
28 |
|
29 |
+
<h2>Simulação (valores corrigidos pela inflação)</h2>
|
30 |
+
{{ tabela|safe }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
+
<h2>Gráfico</h2>
|
33 |
+
<img src="data:image/png;base64,{{ grafico }}" alt="Gráfico de investimentos" />
|
|
|
|
|
|
|
34 |
</body>
|
35 |
</html>
|
36 |
+
|