diff --git a/templates/vehiculos/form_inicial.html b/templates/vehiculos/form_inicial.html new file mode 100755 index 0000000..f0e76fc --- /dev/null +++ b/templates/vehiculos/form_inicial.html @@ -0,0 +1,1089 @@ +{% extends "base.html" %} +{% block title %}{{ 'Editar' if vehiculo else 'Nuevo' }} Vehículo{% endblock %} + +{% block extra_css %} +.form-card { max-width: 860px; } +.section-title { + font-family: 'Space Grotesk', sans-serif; + font-size: 12px; + font-weight: 700; + letter-spacing: 1px; + text-transform: uppercase; + color: var(--accent); + padding-bottom: 10px; + border-bottom: 1px solid var(--border); + margin: 28px 0 20px; +} +.section-title:first-of-type { margin-top: 0; } +.form-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + gap: 15px; +} +.col-full { grid-column: 1 / -1; } +.col-2 { grid-column: span 2; } +{% endblock %} + +{% block content %} + + +
| ID | +Fecha | +Matrícula | +Situación | +Poblacion | +Unidad | +Observaciones | +Acción | +
|---|---|---|---|---|---|---|---|
| {{ h['id'] or '—' }} | +{{ h['fecha'] | fecha_es }} | + +{{ h['m_oficial'] or '—' }} | +{{ h['situacion'] or '—' }} | +{{ h['poblacion'] or '—' }} | +{{ h['unidad'] or '—' }} | + +{{ h['observaciones'] or '—' }} | ++ + | +
+ No hay entradas en el historial de este vehículo. +
+ {% endif %} + + {# Formulario añadir entrada #} +Añadir entrada al historial
+ + +| Nombre | +Fecha | +Acciones | +
|---|---|---|
|
+
+
+ {{ doc['nombre'] }}
+
+ |
+ {{ doc['fecha'] | fecha_es_hora }} | +
+
+
+
+ Ver
+
+
+
+ Descargar
+
+
+
+ |
+
+ No hay documentos adjuntos para este vehículo. +
+{% endif %} + +{# Formulario subir nuevo documento #} ++ Añadir documento <5Mb +
+ +