Spaces:
Running
Running
Listado de varias sesiones hechas
Browse files
tecnicas/static/img/greater-than.svg
ADDED
|
|
tecnicas/static/img/less-than.svg
ADDED
|
|
tecnicas/templates/tecnicas/sesiones-panel.html
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
{% extends 'tecnicas/base.html' %}
|
|
|
|
| 2 |
|
| 3 |
{% block title %}Panel Sesiones{% endblock %}
|
| 4 |
|
| 5 |
{% block content %}
|
| 6 |
-
<article class="w-full
|
| 7 |
<article class="flex flex-col gap-8 bg-gray-400 p-10 rounded-2xl w-4xl">
|
| 8 |
<header class="text-center flex flex-row gap-8 items-center w-full">
|
| 9 |
<div class="bg-gray-600 p-4 text-white rounded-xl flex-1">
|
|
@@ -16,23 +17,49 @@
|
|
| 16 |
</div>
|
| 17 |
</header>
|
| 18 |
<section class="grid grid-cols-3 gap-4">
|
| 19 |
-
|
| 20 |
-
<article class="p-4 bg-gray-200 flex flex-row gap-4 justify-center">
|
| 21 |
<div class="text-right *:not-last:mb-4">
|
| 22 |
<p><b>Código:</b></p>
|
| 23 |
<p><b>Fecha:</b></p>
|
| 24 |
<p><b>Técnica:</b></p>
|
| 25 |
-
<p>{{ ele }}</p>
|
| 26 |
</div>
|
| 27 |
<div class="*:not-last:mb-4">
|
| 28 |
<p>9J78GGHJK7V</p>
|
| 29 |
<p>12-07-2025</p>
|
| 30 |
<p>Intensidad</p>
|
| 31 |
</div>
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
</article>
|
| 34 |
{% endfor %}
|
| 35 |
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
</article>
|
| 37 |
</article>
|
| 38 |
{% endblock %}
|
|
|
|
| 1 |
{% extends 'tecnicas/base.html' %}
|
| 2 |
+
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Panel Sesiones{% endblock %}
|
| 5 |
|
| 6 |
{% block content %}
|
| 7 |
+
<article class="w-full flex flex-col justify-center items-center bg-gray-600 mt-10 mb-10">
|
| 8 |
<article class="flex flex-col gap-8 bg-gray-400 p-10 rounded-2xl w-4xl">
|
| 9 |
<header class="text-center flex flex-row gap-8 items-center w-full">
|
| 10 |
<div class="bg-gray-600 p-4 text-white rounded-xl flex-1">
|
|
|
|
| 17 |
</div>
|
| 18 |
</header>
|
| 19 |
<section class="grid grid-cols-3 gap-4">
|
| 20 |
+
<article class="p-4 bg-gray-200 flex flex-row gap-4 justify-center items-center rounded-lg">
|
|
|
|
| 21 |
<div class="text-right *:not-last:mb-4">
|
| 22 |
<p><b>Código:</b></p>
|
| 23 |
<p><b>Fecha:</b></p>
|
| 24 |
<p><b>Técnica:</b></p>
|
|
|
|
| 25 |
</div>
|
| 26 |
<div class="*:not-last:mb-4">
|
| 27 |
<p>9J78GGHJK7V</p>
|
| 28 |
<p>12-07-2025</p>
|
| 29 |
<p>Intensidad</p>
|
| 30 |
</div>
|
| 31 |
+
</article>
|
| 32 |
+
|
| 33 |
+
{% for elem in elementos %}
|
| 34 |
+
<article class="p-4 bg-gray-200 flex flex-row gap-4 justify-center items-center rounded-lg">
|
| 35 |
+
<div class="text-right *:not-last:mb-4">
|
| 36 |
+
<p><b>Código:</b></p>
|
| 37 |
+
<p><b>Fecha:</b></p>
|
| 38 |
+
<p><b>Técnica:</b></p>
|
| 39 |
+
</div>
|
| 40 |
+
<div class="*:not-last:mb-4">
|
| 41 |
+
<p>{{ elem.nombre }}</p>
|
| 42 |
+
<p>{{ elem.fecha }}</p>
|
| 43 |
+
<p>{{ elem.tecnica }}</p>
|
| 44 |
+
</div>
|
| 45 |
</article>
|
| 46 |
{% endfor %}
|
| 47 |
</section>
|
| 48 |
+
<section class="flex justify-center items-center gap-2">
|
| 49 |
+
<button>
|
| 50 |
+
<img class="h-10" src="{% static 'img/less-than.svg' %}" alt="menor que">
|
| 51 |
+
</button>
|
| 52 |
+
<ul class="flex flex-row gap-2">
|
| 53 |
+
<li>1</li>
|
| 54 |
+
<li>2</li>
|
| 55 |
+
<li>3</li>
|
| 56 |
+
<li>. . .</li>
|
| 57 |
+
<li>8</li>
|
| 58 |
+
</ul>
|
| 59 |
+
<button>
|
| 60 |
+
<img class="h-10" src="{% static 'img/greater-than.svg' %}" alt="mayor que">
|
| 61 |
+
</button>
|
| 62 |
+
</section>
|
| 63 |
</article>
|
| 64 |
</article>
|
| 65 |
{% endblock %}
|
tecnicas/views.py
CHANGED
|
@@ -16,14 +16,24 @@ def managementCatadores(req):
|
|
| 16 |
return render(req, "tecnicas/catadores-panel.html")
|
| 17 |
|
| 18 |
def sesionesPanel(req):
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
def selecionTecnica(req):
|
| 22 |
-
|
| 23 |
-
elementos = ["Par", "lo", "asa", "miua", "guau", "mal", "pollo", "yuo", "ui", "ua"]
|
| 24 |
-
return render(req, "tecnicas/seleccion-tecnica.html", context={"elementos":elementos})
|
| 25 |
|
| 26 |
class Presente():
|
| 27 |
def __init__(self, id, nombre):
|
| 28 |
self.id = id
|
| 29 |
-
self.nombre = nombre
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
return render(req, "tecnicas/catadores-panel.html")
|
| 17 |
|
| 18 |
def sesionesPanel(req):
|
| 19 |
+
elementos = []
|
| 20 |
+
|
| 21 |
+
for i in range(6):
|
| 22 |
+
elementos.append(Elemento("Sesion " + str(i+1), "Hoy", "Convencional"))
|
| 23 |
+
pass
|
| 24 |
+
|
| 25 |
+
return render(req, "tecnicas/sesiones-panel.html", context={"elementos":elementos})
|
| 26 |
|
| 27 |
def selecionTecnica(req):
|
| 28 |
+
return render(req, "tecnicas/seleccion-tecnica.html")
|
|
|
|
|
|
|
| 29 |
|
| 30 |
class Presente():
|
| 31 |
def __init__(self, id, nombre):
|
| 32 |
self.id = id
|
| 33 |
+
self.nombre = nombre
|
| 34 |
+
|
| 35 |
+
class Elemento():
|
| 36 |
+
def __init__(self, nombre, fecha, tecnica):
|
| 37 |
+
self.nombre = nombre
|
| 38 |
+
self.fecha = fecha
|
| 39 |
+
self.tecnica = tecnica
|