Ajustado abas tela parâmetro
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<label for="aliquota_icms">Alíquota de ICMS (%):</label>
|
||||
<input type="text" id="aliquota" name="aliquota" inputmode="decimal" pattern="[0-9]+([,][0-9]+)?" placeholder="Ex: 20,7487">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="formula">Fórmula:</label>
|
||||
@@ -88,6 +88,7 @@
|
||||
<p style="color:gray;">Nenhuma fórmula cadastrada.</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ABA SELIC -->
|
||||
<div id="selic" class="tab-content">
|
||||
@@ -107,11 +108,11 @@
|
||||
<table class="selic-table">
|
||||
<thead><tr><th>Competência</th><th>Fator</th></tr></thead>
|
||||
<tbody>
|
||||
{% for item in (selic_dados or selic or []) %}
|
||||
<tr>
|
||||
{% for item in selic_dados %}
|
||||
<tr>
|
||||
<td>{{ "%02d"|format(item.mes) }}/{{ item.ano }}</td>
|
||||
<td>{{ "%.4f"|format(item.percentual) }}</td>
|
||||
</tr>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -671,13 +672,11 @@
|
||||
}
|
||||
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
const abaUrl = new URLSearchParams(window.location.search).get("aba");
|
||||
if (abaUrl === "selic") {
|
||||
document.querySelector(".tab.active")?.classList.remove("active");
|
||||
document.querySelector(".tab-content.active")?.classList.remove("active");
|
||||
|
||||
document.querySelector(".tab:nth-child(2)").classList.add("active"); // Ativa o botão da aba
|
||||
document.getElementById("selic").classList.add("active"); // Ativa o conteúdo da aba
|
||||
const aba = new URLSearchParams(window.location.search).get("aba");
|
||||
if (aba === "formulas" || aba === "selic" || aba === "aliquotas") {
|
||||
switchTab(aba);
|
||||
} else {
|
||||
switchTab("formulas"); // padrão
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user