passei os frontends pra bootstrap-flask

This commit is contained in:
LS
2025-02-19 14:27:14 -03:00
parent eff8c531d7
commit 765688df1f
19 changed files with 205 additions and 162 deletions

View File

@@ -1,17 +1,37 @@
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Lista de Militantes</title>
</head>
<body>
<h1>Militantes</h1>
<ul>
{% for militante in militantes %}
<li>{{ militante.nome }} - {{ militante.email }}</li>
{% endfor %}
</ul>
<a href="{{ url_for('novo_militante') }}">Adicionar Novo Militante</a>
<a href="{{ url_for('home') }}">Home</a>
</body>
</html>
{% extends 'base.html' %}
{% block title %}Listar Militantes{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-12">
<h2>Lista de Militantes</h2>
<a href="{{ url_for('novo_militante') }}" class="btn btn-primary mb-3">Novo Militante</a>
<table class="table table-striped">
<thead>
<tr>
<th>Nome</th>
<th>CPF</th>
<th>Email</th>
<th>Telefone</th>
<th>Endereço</th>
<th>Filiado</th>
</tr>
</thead>
<tbody>
{% for militante in militantes %}
<tr>
<td>{{ militante.nome }}</td>
<td>{{ militante.cpf }}</td>
<td>{{ militante.email }}</td>
<td>{{ militante.telefone }}</td>
<td>{{ militante.endereco }}</td>
<td>{{ 'Sim' if militante.filiado else 'Não' }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}