Melhorada interface dos formulários. Adicionado a opção de editar os Militantes direto da Lista
This commit is contained in:
@@ -1,29 +1,41 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}Listar Militantes{% endblock %}
|
||||
{% block title %}Novo Pagamento{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Registrar Novo Pagamento</h1>
|
||||
<form method="post">
|
||||
<div>
|
||||
<label for="militante_id">ID do Militante:</label>
|
||||
<input type="number" id="militante_id" name="militante_id" required>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 offset-md-2">
|
||||
<h1 class="mb-4">Registrar Novo Pagamento</h1>
|
||||
|
||||
<form method="post" class="mb-4">
|
||||
<div class="mb-3">
|
||||
<label for="militante_id" class="form-label">ID do Militante:</label>
|
||||
<input type="number" class="form-control" id="militante_id" name="militante_id" required>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="tipo_pagamento_id" class="form-label">Tipo de Pagamento:</label>
|
||||
<input type="number" class="form-control" id="tipo_pagamento_id" name="tipo_pagamento_id" required>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="valor" class="form-label">Valor:</label>
|
||||
<input type="number" class="form-control" id="valor" name="valor" step="0.01" required>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="data_pagamento" class="form-label">Data do Pagamento:</label>
|
||||
<input type="date" class="form-control" id="data_pagamento" name="data_pagamento" required>
|
||||
</div>
|
||||
|
||||
<div class="d-flex gap-2">
|
||||
<button type="submit" class="btn btn-primary">Registrar</button>
|
||||
<a href="{{ url_for('listar_pagamentos') }}" class="btn btn-secondary">Voltar</a>
|
||||
<a href="{{ url_for('home') }}" class="btn btn-outline-primary">Início</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<label for="tipo_pagamento_id">Tipo de Pagamento:</label>
|
||||
<input type="number" id="tipo_pagamento_id" name="tipo_pagamento_id" required>
|
||||
</div>
|
||||
<div>
|
||||
<label for="valor">Valor:</label>
|
||||
<input type="number" id="valor" name="valor" step="0.01" required>
|
||||
</div>
|
||||
<div>
|
||||
<label for="data_pagamento">Data do Pagamento:</label>
|
||||
<input type="date" id="data_pagamento" name="data_pagamento" required>
|
||||
</div>
|
||||
<button type="submit">Registrar Pagamento</button>
|
||||
</form>
|
||||
<a href="{{ url_for('listar_pagamentos') }}">Voltar para Lista</a>
|
||||
<a href="{{ url_for('home') }}">Home</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user