34 lines
1.4 KiB
HTML
34 lines
1.4 KiB
HTML
|
|
{% extends 'base.html' %}
|
||
|
|
|
||
|
|
{% block title %}Editar Militante{% endblock %}
|
||
|
|
|
||
|
|
{% block content %}
|
||
|
|
<h1>Editar Militante</h1>
|
||
|
|
|
||
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
||
|
|
{% if messages %}
|
||
|
|
{% for category, message in messages %}
|
||
|
|
<div class="alert alert-{{ category }}">{{ message }}</div>
|
||
|
|
{% endfor %}
|
||
|
|
{% endif %}
|
||
|
|
{% endwith %}
|
||
|
|
|
||
|
|
<form method="post">
|
||
|
|
Nome: <input type="text" name="nome" required
|
||
|
|
value="{{ militante.nome }}"><br>
|
||
|
|
CPF: <input type="text" name="cpf" required
|
||
|
|
value="{{ militante.cpf }}"
|
||
|
|
pattern="\d{3}\.?\d{3}\.?\d{3}-?\d{2}"
|
||
|
|
title="Digite um CPF no formato: xxx.xxx.xxx-xx"><br>
|
||
|
|
Email: <input type="email" name="email" required
|
||
|
|
value="{{ militante.email }}"><br>
|
||
|
|
Telefone: <input type="text" name="telefone"
|
||
|
|
value="{{ militante.telefone }}"><br>
|
||
|
|
Endereço: <input type="text" name="endereco"
|
||
|
|
value="{{ militante.endereco }}"><br>
|
||
|
|
Filiado: <input type="checkbox" name="filiado"
|
||
|
|
{% if militante.filiado %}checked{% endif %}><br>
|
||
|
|
<input type="submit" value="Salvar" class="btn btn-primary">
|
||
|
|
<a href="{{ url_for('listar_militantes') }}" class="btn btn-secondary">Cancelar</a>
|
||
|
|
</form>
|
||
|
|
{% endblock %}
|