feat: adiciona modal global para edição de militantes na home

This commit is contained in:
andersonid
2025-04-04 13:02:23 -03:00
parent 7f4fe77711
commit 75ba696355
2 changed files with 88 additions and 108 deletions

11
static/js/home.js Normal file
View File

@@ -0,0 +1,11 @@
document.addEventListener('DOMContentLoaded', function() {
// Configurar clique nos itens da lista de pagamentos
document.querySelectorAll('.list-group-item[onclick*="carregarDadosPagamento"]').forEach(item => {
item.addEventListener('click', function(e) {
const pagamentoId = this.getAttribute('data-pagamento-id');
if (pagamentoId) {
carregarDadosPagamento(pagamentoId);
}
});
});
});