56 lines
2.5 KiB
HTML
56 lines
2.5 KiB
HTML
|
|
{% extends 'base.html' %}
|
||
|
|
|
||
|
|
{% block title %}Listar Comitês Regionais{% endblock %}
|
||
|
|
|
||
|
|
{% block content %}
|
||
|
|
<div class="container">
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-md-12">
|
||
|
|
<h1 class="mb-4">Lista de Comitês Regionais</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 %}
|
||
|
|
|
||
|
|
<div class="d-flex justify-content-between mb-4">
|
||
|
|
<a href="{{ url_for('novo_comite') }}" class="btn btn-success">Novo Comitê Regional</a>
|
||
|
|
<a href="{{ url_for('home') }}" class="btn btn-outline-primary">Início</a>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="table-responsive">
|
||
|
|
<table class="table table-striped table-hover">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th>ID</th>
|
||
|
|
<th>Nome</th>
|
||
|
|
<th>Responsável</th>
|
||
|
|
<th>Responsável Finanças</th>
|
||
|
|
<th>Comitê Central</th>
|
||
|
|
<th>Ações</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
{% for comite in comites %}
|
||
|
|
<tr>
|
||
|
|
<td>{{ comite.id }}</td>
|
||
|
|
<td>{{ comite.nome }}</td>
|
||
|
|
<td>{{ comite.responsavel_rel.nome if comite.responsavel_rel else '-' }}</td>
|
||
|
|
<td>{{ comite.responsavel_financas_rel.nome if comite.responsavel_financas_rel else '-' }}</td>
|
||
|
|
<td>{{ comite.comite_central.nome }}</td>
|
||
|
|
<td>
|
||
|
|
<a href="{{ url_for('editar_comite', id=comite.id) }}" class="btn btn-primary btn-sm">Editar</a>
|
||
|
|
<a href="{{ url_for('deletar_comite', id=comite.id) }}" class="btn btn-danger btn-sm" onclick="return confirm('Tem certeza que deseja excluir este comitê regional?')">Excluir</a>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
{% endfor %}
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{% endblock %}
|