2025-03-04 07:46:15 -03:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2025-03-05 14:10:33 -03:00
|
|
|
{% block title %}Crear Nuevo Proyecto{% endblock %}
|
2025-03-04 07:46:15 -03:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container mt-4">
|
2025-03-05 14:10:33 -03:00
|
|
|
<h2>Crear Nuevo Proyecto</h2>
|
2025-03-04 07:46:15 -03:00
|
|
|
|
2025-03-05 14:10:33 -03:00
|
|
|
<form method="POST">
|
|
|
|
{{ form.csrf_token }}
|
|
|
|
<!-- or use this alternative if not using WTForms: -->
|
|
|
|
<!-- <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"> -->
|
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="descripcion" class="form-label">Descripción</label>
|
|
|
|
<input type="text" class="form-control" id="descripcion" name="descripcion" required>
|
2025-03-04 07:46:15 -03:00
|
|
|
</div>
|
2025-03-05 14:10:33 -03:00
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="cliente" class="form-label">Cliente</label>
|
|
|
|
<input type="text" class="form-control" id="cliente" name="cliente" required>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="destinacion" class="form-label">Destinación</label>
|
|
|
|
<input type="text" class="form-control" id="destinacion" name="destinacion">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="esquema" class="form-label">Esquema</label>
|
|
|
|
<select class="form-select" id="esquema" name="esquema" required>
|
|
|
|
<option value="">Seleccione un esquema</option>
|
|
|
|
{% if form.esquema.choices %}
|
|
|
|
{% for value, label in form.esquema.choices %}
|
|
|
|
<option value="{{ value }}">{{ label }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="proyecto_padre" class="form-label">Proyecto Padre</label>
|
|
|
|
<select class="form-select" id="proyecto_padre" name="proyecto_padre">
|
|
|
|
<option value="">Ninguno</option>
|
|
|
|
{% if form.proyecto_padre.choices %}
|
|
|
|
{% for value, label in form.proyecto_padre.choices %}
|
|
|
|
{% if value %}
|
|
|
|
<option value="{{ value }}">{{ label }}</option>
|
2025-03-04 07:46:15 -03:00
|
|
|
{% endif %}
|
2025-03-05 14:10:33 -03:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</select>
|
2025-03-04 07:46:15 -03:00
|
|
|
</div>
|
2025-03-05 14:10:33 -03:00
|
|
|
|
|
|
|
<button type="submit" class="btn btn-primary">Crear Proyecto</button>
|
|
|
|
<a href="{{ url_for('projects.list') }}" class="btn btn-secondary">Cancelar</a>
|
|
|
|
</form>
|
2025-03-04 07:46:15 -03:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|