148 lines
7.1 KiB
HTML
148 lines
7.1 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %}Novo Militante{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-8 offset-md-2">
|
|
<h1 class="mb-4">Novo 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" 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="cpf" class="form-label">CPF:</label>
|
|
<input type="text" class="form-control" id="cpf" name="cpf" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="titulo_eleitoral" class="form-label">Título Eleitoral:</label>
|
|
<input type="text" class="form-control" id="titulo_eleitoral" name="titulo_eleitoral" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="data_nascimento" class="form-label">Data de Nascimento:</label>
|
|
<input type="date" class="form-control" id="data_nascimento" name="data_nascimento" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="data_entrada_oci" class="form-label">Data de Entrada na OCI:</label>
|
|
<input type="date" class="form-control" id="data_entrada_oci" name="data_entrada_oci" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="data_efetivacao_oci" class="form-label">Data de Efetivação na OCI:</label>
|
|
<input type="date" class="form-control" id="data_efetivacao_oci" name="data_efetivacao_oci" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="telefone1" class="form-label">Telefone 1:</label>
|
|
<input type="text" class="form-control" id="telefone1" name="telefone1" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="telefone2" class="form-label">Telefone 2:</label>
|
|
<input type="text" class="form-control" id="telefone2" name="telefone2">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="profissao" class="form-label">Profissão:</label>
|
|
<input type="text" class="form-control" id="profissao" name="profissao" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="regime_trabalho" class="form-label">Regime de Trabalho:</label>
|
|
<input type="text" class="form-control" id="regime_trabalho" name="regime_trabalho" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="empresa" class="form-label">Empresa:</label>
|
|
<input type="text" class="form-control" id="empresa" name="empresa" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="contratante" class="form-label">Contratante:</label>
|
|
<input type="text" class="form-control" id="contratante" name="contratante" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="instituicao_ensino" class="form-label">Instituição de Ensino:</label>
|
|
<input type="text" class="form-control" id="instituicao_ensino" name="instituicao_ensino">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="tipo_instituicao" class="form-label">Tipo de Instituição:</label>
|
|
<select class="form-select" id="tipo_instituicao" name="tipo_instituicao">
|
|
<option value="">Selecione o tipo</option>
|
|
<option value="publica">Pública</option>
|
|
<option value="privada">Privada</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="sindicato" class="form-label">Sindicato:</label>
|
|
<input type="text" class="form-control" id="sindicato" name="sindicato">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="cargo_sindical" class="form-label">Cargo Sindical:</label>
|
|
<input type="text" class="form-control" id="cargo_sindical" name="cargo_sindical">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="dirigente_sindical" class="form-label">Dirigente Sindical:</label>
|
|
<select class="form-select" id="dirigente_sindical" name="dirigente_sindical">
|
|
<option value="false">Não</option>
|
|
<option value="true">Sim</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="central_sindical" class="form-label">Central Sindical:</label>
|
|
<input type="text" class="form-control" id="central_sindical" name="central_sindical">
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="setor_id" class="form-label">Setor:</label>
|
|
<select class="form-select" id="setor_id" name="setor_id" required>
|
|
<option value="">Selecione o setor</option>
|
|
{% for setor in setores %}
|
|
<option value="{{ setor.id }}">{{ setor.nome }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="celula_id" class="form-label">Célula:</label>
|
|
<select class="form-select" id="celula_id" name="celula_id" required>
|
|
<option value="">Selecione a célula</option>
|
|
{% for celula in celulas %}
|
|
<option value="{{ celula.id }}">{{ celula.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_militantes') }}" 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 %}
|
|
|