Update templates/index.html
Browse files- templates/index.html +11 -8
templates/index.html
CHANGED
|
@@ -45,12 +45,10 @@
|
|
| 45 |
button:hover {
|
| 46 |
background: #005bb5;
|
| 47 |
}
|
| 48 |
-
|
| 49 |
.grafico {
|
| 50 |
text-align: center;
|
| 51 |
margin-bottom: 30px;
|
| 52 |
}
|
| 53 |
-
|
| 54 |
table {
|
| 55 |
border-collapse: collapse;
|
| 56 |
font-size: 0.95em;
|
|
@@ -76,7 +74,6 @@
|
|
| 76 |
tr:hover {
|
| 77 |
background-color: #f2f9ff;
|
| 78 |
}
|
| 79 |
-
|
| 80 |
@media screen {
|
| 81 |
table {
|
| 82 |
width: fit-content !important;
|
|
@@ -84,6 +81,13 @@
|
|
| 84 |
margin-right: auto !important;
|
| 85 |
}
|
| 86 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
</style>
|
| 88 |
</head>
|
| 89 |
<body>
|
|
@@ -111,9 +115,7 @@
|
|
| 111 |
<label for="inflacao">Inflação Anual Esperada (%):</label>
|
| 112 |
<input type="number" id="inflacao" name="inflacao" step="0.01" required value="{{ inflacao or 5 }}">
|
| 113 |
|
| 114 |
-
<button type="submit" style="margin-
|
| 115 |
-
Rodar Simulação
|
| 116 |
-
</button>
|
| 117 |
</form>
|
| 118 |
|
| 119 |
{% if tabela %}
|
|
@@ -127,7 +129,8 @@
|
|
| 127 |
{{ tabela | safe }}
|
| 128 |
</div>
|
| 129 |
|
| 130 |
-
|
|
|
|
| 131 |
<form action="/download_pdf" method="post">
|
| 132 |
<input type="hidden" name="capital" value="{{ capital }}">
|
| 133 |
<input type="hidden" name="studio_ret" value="{{ studio_ret }}">
|
|
@@ -142,10 +145,10 @@
|
|
| 142 |
</form>
|
| 143 |
</div>
|
| 144 |
{% endif %}
|
|
|
|
| 145 |
</body>
|
| 146 |
</html>
|
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
-
|
|
|
|
| 45 |
button:hover {
|
| 46 |
background: #005bb5;
|
| 47 |
}
|
|
|
|
| 48 |
.grafico {
|
| 49 |
text-align: center;
|
| 50 |
margin-bottom: 30px;
|
| 51 |
}
|
|
|
|
| 52 |
table {
|
| 53 |
border-collapse: collapse;
|
| 54 |
font-size: 0.95em;
|
|
|
|
| 74 |
tr:hover {
|
| 75 |
background-color: #f2f9ff;
|
| 76 |
}
|
|
|
|
| 77 |
@media screen {
|
| 78 |
table {
|
| 79 |
width: fit-content !important;
|
|
|
|
| 81 |
margin-right: auto !important;
|
| 82 |
}
|
| 83 |
}
|
| 84 |
+
|
| 85 |
+
/* Oculta elementos com essa classe ao imprimir (PDF) */
|
| 86 |
+
@media print {
|
| 87 |
+
.no-print {
|
| 88 |
+
display: none;
|
| 89 |
+
}
|
| 90 |
+
}
|
| 91 |
</style>
|
| 92 |
</head>
|
| 93 |
<body>
|
|
|
|
| 115 |
<label for="inflacao">Inflação Anual Esperada (%):</label>
|
| 116 |
<input type="number" id="inflacao" name="inflacao" step="0.01" required value="{{ inflacao or 5 }}">
|
| 117 |
|
| 118 |
+
<button type="submit" style="margin-bottom: 10px;">Rodar Simulação</button>
|
|
|
|
|
|
|
| 119 |
</form>
|
| 120 |
|
| 121 |
{% if tabela %}
|
|
|
|
| 129 |
{{ tabela | safe }}
|
| 130 |
</div>
|
| 131 |
|
| 132 |
+
<!-- Botão para gerar PDF, oculto no PDF final -->
|
| 133 |
+
<div class="no-print" style="text-align:center; margin-top: 30px;">
|
| 134 |
<form action="/download_pdf" method="post">
|
| 135 |
<input type="hidden" name="capital" value="{{ capital }}">
|
| 136 |
<input type="hidden" name="studio_ret" value="{{ studio_ret }}">
|
|
|
|
| 145 |
</form>
|
| 146 |
</div>
|
| 147 |
{% endif %}
|
| 148 |
+
|
| 149 |
</body>
|
| 150 |
</html>
|
| 151 |
|
| 152 |
|
| 153 |
|
| 154 |
|
|
|