54 lines
2.4 KiB
HTML
54 lines
2.4 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %}Novo Comitê Regional{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-8 offset-md-2">
|
|
<h1 class="mb-4">Novo Comitê Regional</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" class="mb-4">
|
|
<div class="mb-3">
|
|
<label for="nome" class="form-label">Nome:</label>
|
|
<input type="text" class="form-control" id="nome" name="nome" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="responsavel" class="form-label">Responsável:</label>
|
|
<select class="form-select" id="responsavel" name="responsavel" required>
|
|
<option value="">Selecione o responsável</option>
|
|
{% for militante in militantes %}
|
|
<option value="{{ militante.id }}">{{ militante.nome }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="responsavel_financas" class="form-label">Responsável por Finanças:</label>
|
|
<select class="form-select" id="responsavel_financas" name="responsavel_financas" required>
|
|
<option value="">Selecione o responsável</option>
|
|
{% for militante in militantes %}
|
|
<option value="{{ militante.id }}">{{ militante.nome }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
|
|
<div class="d-flex gap-2">
|
|
<button type="submit" class="btn btn-primary">Registrar</button>
|
|
<a href="{{ url_for('listar_comites_regionais') }}" class="btn btn-secondary">Voltar</a>
|
|
<a href="{{ url_for('home') }}" class="btn btn-outline-primary">Início</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |