Browse Source

Corrijo que aparezca el nombre

Celestino Rey 1 year ago
parent
commit
61c4aa62e3
2 changed files with 47 additions and 25 deletions
  1. 3 1
      templates/_head.html
  2. 44 24
      templates/dashboard.html

+ 3 - 1
templates/_head.html

@@ -13,4 +13,6 @@
      
         <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
         
-     </head>
+     </head>
+
+     <body>

+ 44 - 24
templates/dashboard.html

@@ -1,26 +1,46 @@
-<!DOCTYPE html>
-<html lang="es">
-<head>
-    <meta charset="UTF-8">
-    <title>Mi Contabilidad</title>
-</head>
-<body>
-    <h1>Bienvenido, {{ user.username }}</h1>
-    <h2>Balance: {{ balance }}</h2>
-    <p>Ingresos: {{ ingresos }} | Gastos: {{ gastos }}</p>
-    <a href="{% url 'agregar_movimiento' %}">Agregar Movimiento</a>
+{% load i18n static %}
 
-    <h3>Filtrar movimientos</h3>
-    <form method="get">
-        {{ form.as_p }}
-        <button type="submit">Filtrar</button>
-    </form>
+{% include "_head.html" %}
+<section id="interface">
+    <div class="navigation">
+        <div class="n1">
+            <div>
+               <i id="menu-btn" class="bi bi-list""></i>               
+            </div>
+            <div class="search">
+               <i class="bi bi-search"></i>              
+                <input type="text" placeholder="Buscar...">
+            </div>
+        </div>
 
-    <h3>Movimientos recientes</h3>
-    <ul>
-        {% for m in movimientos %}
-            <li>{{ m.fecha }} - {{ m.categoria.nombre }}: {{ m.monto }} ({{ m.descripcion }})</li>
-        {% endfor %}
-    </ul>
-</body>
-</html>
+         <div class="profile">
+            <i class="bi bi-bell"></i>            
+            <img src="static/images/auster.jpg" alt="">
+         </div>
+    </div>
+
+    <h3 class="i-name">
+        Bienvenido, {{ user.nombre }}
+    </h3>
+
+    <div class="board">
+        {% include "_menu.html" %}
+        <h2>Balance: {{ balance }}</h2>
+        <p>Ingresos: {{ ingresos }} | Gastos: {{ gastos }}</p>
+        <a href="{% url 'agregar_movimiento' %}">Agregar Movimiento</a>
+
+        <h3>Filtrar movimientos</h3>
+        <form method="get">
+            {{ form.as_p }}
+            <button type="submit">Filtrar</button>
+        </form>
+
+        <h3>Movimientos recientes</h3>
+        <ul>
+            {% for m in movimientos %}
+                <li>{{ m.fecha }} - {{ m.categoria.nombre }}: {{ m.monto }} ({{ m.descripcion }})</li>
+            {% endfor %}
+        </ul>
+    </div>
+
+{% include "_footer.html" %}