|
|
@@ -1,22 +1,28 @@
|
|
|
-<!DOCTYPE html>
|
|
|
-<html lang="es">
|
|
|
-<head>
|
|
|
- <meta charset="UTF-8">
|
|
|
- <title>Eliminar Cuenta</title>
|
|
|
-</head>
|
|
|
-<body>
|
|
|
- <h1>Eliminar Cuenta</h1>
|
|
|
+{% extends "base.html" %}
|
|
|
|
|
|
- {% if tiene_movimientos %}
|
|
|
- <p>No puedes eliminar la cuenta <strong>{{ cuenta.nombre }}</strong> porque tiene movimientos asociados.</p>
|
|
|
- <a href="{% url 'listar_cuentas' %}">Volver</a>
|
|
|
- {% else %}
|
|
|
- <p>¿Estás seguro que deseas eliminar la cuenta <strong>{{ cuenta.nombre }}</strong>?</p>
|
|
|
- <form method="post">
|
|
|
- {% csrf_token %}
|
|
|
- <button type="submit">Sí, eliminar</button>
|
|
|
- <a href="{% url 'listar_cuentas' %}">Cancelar</a>
|
|
|
- </form>
|
|
|
- {% endif %}
|
|
|
-</body>
|
|
|
-</html>
|
|
|
+{% block interface %}
|
|
|
+
|
|
|
+<section id="interface">
|
|
|
+ <div class="board">
|
|
|
+ {% include "_navigation.html" %}
|
|
|
+ <div class="div-form">
|
|
|
+ <h1>Eliminar Cuenta</h1>
|
|
|
+
|
|
|
+ {% if tiene_movimientos %}
|
|
|
+ <p>No puedes eliminar la cuenta <strong>{{ cuenta.nombre }}</strong> porque tiene movimientos asociados.</p>
|
|
|
+ {% else %}
|
|
|
+ <p>¿Estás seguro que deseas eliminar la cuenta <strong>{{ cuenta.nombre }}</strong>?</p>
|
|
|
+ <div class="form-group">
|
|
|
+ <form method="post">
|
|
|
+ {% csrf_token %}
|
|
|
+ <button type="submit">Sí, eliminar</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ {% endif %}
|
|
|
+ <div class="botones">
|
|
|
+ <a href="{% url 'listar_cuentas' %}"><button class="btn btn-secondary" type="button">Volver</button></a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+</section>
|
|
|
+{% endblock %}
|