Spaces:
Sleeping
Sleeping
Reorganizacion de templates
Browse files- tecnicas/templates/tecnicas/auth.html +1 -1
- tecnicas/templates/tecnicas/cata-login.html +1 -1
- tecnicas/templates/tecnicas/{configuracion-panel-basic.html → create_sesion/configuracion-panel-basic.html} +1 -1
- tecnicas/templates/tecnicas/{configuracion-panel-codes.html → create_sesion/configuracion-panel-codes.html} +1 -1
- tecnicas/templates/tecnicas/{configuracion-panel-tags.html → create_sesion/configuracion-panel-tags.html} +1 -1
- tecnicas/templates/tecnicas/{seleccion-tecnica.html → create_sesion/seleccion-tecnica.html} +1 -1
- tecnicas/templates/tecnicas/{base.html → layouts/base.html} +0 -0
- tecnicas/templates/tecnicas/main-panel.html +1 -1
- tecnicas/templates/tecnicas/{sesiones-panel.html → manage_sesions/sesiones-panel.html} +1 -1
- tecnicas/templates/tecnicas/{catador-buscar.html → manage_tester/catador-buscar.html} +1 -1
- tecnicas/templates/tecnicas/{catador-crear.html → manage_tester/catador-crear.html} +1 -1
- tecnicas/templates/tecnicas/{catadores-panel.html → manage_tester/catadores-panel.html} +1 -1
- tecnicas/utils/__init__.py +1 -0
- tecnicas/views/catador_create.py +4 -4
- tecnicas/views/catador_search.py +5 -5
- tecnicas/views/configuration_panel_basic.py +2 -2
- tecnicas/views/configuration_panel_codes.py +9 -7
- tecnicas/views/configuration_panel_tags.py +2 -2
- tecnicas/views/configurations_panel_words.py +3 -2
- tecnicas/views/management_catadores.py +1 -1
- tecnicas/views/panel_sessions.py +5 -2
- tecnicas/views/seleccion_tecnica.py +2 -2
tecnicas/templates/tecnicas/auth.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
|
| 3 |
{% block title %}Login{% endblock %}
|
| 4 |
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
|
| 3 |
{% block title %}Login{% endblock %}
|
| 4 |
|
tecnicas/templates/tecnicas/cata-login.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
|
| 3 |
{% block title %}Login{% endblock %}
|
| 4 |
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
|
| 3 |
{% block title %}Login{% endblock %}
|
| 4 |
|
tecnicas/templates/tecnicas/{configuracion-panel-basic.html → create_sesion/configuracion-panel-basic.html}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Panel Configuracion{% endblock %}
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Panel Configuracion{% endblock %}
|
tecnicas/templates/tecnicas/{configuracion-panel-codes.html → create_sesion/configuracion-panel-codes.html}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Panel Configuracion{% endblock %}
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Panel Configuracion{% endblock %}
|
tecnicas/templates/tecnicas/{configuracion-panel-tags.html → create_sesion/configuracion-panel-tags.html}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Panel Configuracion{% endblock %}
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Panel Configuracion{% endblock %}
|
tecnicas/templates/tecnicas/{seleccion-tecnica.html → create_sesion/seleccion-tecnica.html}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
|
| 3 |
{% block title %}Panel principal{% endblock %}
|
| 4 |
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
|
| 3 |
{% block title %}Panel principal{% endblock %}
|
| 4 |
|
tecnicas/templates/tecnicas/{base.html → layouts/base.html}
RENAMED
|
File without changes
|
tecnicas/templates/tecnicas/main-panel.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
|
| 3 |
{% block title %}Panel principal{% endblock %}
|
| 4 |
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
|
| 3 |
{% block title %}Panel principal{% endblock %}
|
| 4 |
|
tecnicas/templates/tecnicas/{sesiones-panel.html → manage_sesions/sesiones-panel.html}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Panel Sesiones{% endblock %}
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Panel Sesiones{% endblock %}
|
tecnicas/templates/tecnicas/{catador-buscar.html → manage_tester/catador-buscar.html}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Buscar Catador{% endblock %}
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Buscar Catador{% endblock %}
|
tecnicas/templates/tecnicas/{catador-crear.html → manage_tester/catador-crear.html}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Crear Catador{% endblock %}
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Crear Catador{% endblock %}
|
tecnicas/templates/tecnicas/{catadores-panel.html → manage_tester/catadores-panel.html}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
{% extends 'tecnicas/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Gestionar Catadores{% endblock %}
|
|
|
|
| 1 |
+
{% extends 'tecnicas/layouts/base.html' %}
|
| 2 |
{% load static %}
|
| 3 |
|
| 4 |
{% block title %}Gestionar Catadores{% endblock %}
|
tecnicas/utils/__init__.py
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
from .code_generate import generarCodigo
|
|
|
|
| 2 |
from .general_error import general_error
|
|
|
|
| 1 |
from .code_generate import generarCodigo
|
| 2 |
+
from .code_generate import generarCodigos
|
| 3 |
from .general_error import general_error
|
tecnicas/views/catador_create.py
CHANGED
|
@@ -11,7 +11,7 @@ def crearCatador(req : HttpRequest):
|
|
| 11 |
"form_cata": formCatador
|
| 12 |
}
|
| 13 |
|
| 14 |
-
return render(req, "tecnicas/catador-crear.html", context)
|
| 15 |
elif req.method == "POST":
|
| 16 |
formCatadorValues = CatadorForm(req.POST)
|
| 17 |
context = {
|
|
@@ -25,9 +25,9 @@ def crearCatador(req : HttpRequest):
|
|
| 25 |
context["form_cata"] = CatadorForm()
|
| 26 |
except ValidationError:
|
| 27 |
context["error"] = "nombre de usuario en uso"
|
| 28 |
-
return render(req, "tecnicas/catador-crear.html", context)
|
| 29 |
|
| 30 |
-
return render(req, "tecnicas/catador-crear.html", context)
|
| 31 |
else:
|
| 32 |
context["error"] = "datos no validos"
|
| 33 |
-
return render(req, "tecnicas/catador-crear.html", context)
|
|
|
|
| 11 |
"form_cata": formCatador
|
| 12 |
}
|
| 13 |
|
| 14 |
+
return render(req, "tecnicas/manage_tester/catador-crear.html", context)
|
| 15 |
elif req.method == "POST":
|
| 16 |
formCatadorValues = CatadorForm(req.POST)
|
| 17 |
context = {
|
|
|
|
| 25 |
context["form_cata"] = CatadorForm()
|
| 26 |
except ValidationError:
|
| 27 |
context["error"] = "nombre de usuario en uso"
|
| 28 |
+
return render(req, "tecnicas/manage_tester/catador-crear.html", context)
|
| 29 |
|
| 30 |
+
return render(req, "tecnicas/manage_tester/catador-crear.html", context)
|
| 31 |
else:
|
| 32 |
context["error"] = "datos no validos"
|
| 33 |
+
return render(req, "tecnicas/manage_tester/catador-crear.html", context)
|
tecnicas/views/catador_search.py
CHANGED
|
@@ -15,7 +15,7 @@ def searchCatador(req : HttpRequest):
|
|
| 15 |
user = False
|
| 16 |
|
| 17 |
if not user:
|
| 18 |
-
return render(req, "tecnicas/catador-buscar.html")
|
| 19 |
|
| 20 |
try:
|
| 21 |
catador = Catador.objects.get(usuarioCatador=user)
|
|
@@ -23,7 +23,7 @@ def searchCatador(req : HttpRequest):
|
|
| 23 |
except Catador.DoesNotExist:
|
| 24 |
context["error"] = "usuario no encontrado"
|
| 25 |
|
| 26 |
-
return render(req, "tecnicas/catador-buscar.html", context)
|
| 27 |
elif req.method == "POST":
|
| 28 |
context = {}
|
| 29 |
|
|
@@ -36,7 +36,7 @@ def searchCatador(req : HttpRequest):
|
|
| 36 |
|
| 37 |
if not infoCata:
|
| 38 |
context["error"] = "ha ocurrido un error en recueperar los datos"
|
| 39 |
-
return render(req, "tecnicas/catador-buscar.html", context)
|
| 40 |
|
| 41 |
user = get_object_or_404(Catador, usuarioCatador=nameUser)
|
| 42 |
|
|
@@ -45,7 +45,7 @@ def searchCatador(req : HttpRequest):
|
|
| 45 |
try:
|
| 46 |
if not modelForm.is_valid():
|
| 47 |
context["error"] = "ha ocurrido un error en guardar los datos"
|
| 48 |
-
return render(req, "tecnicas/catador-buscar.html", context)
|
| 49 |
modelForm.save()
|
| 50 |
context["form_catador"] = modelForm
|
| 51 |
context["message"] = "usuario actualizado"
|
|
@@ -53,4 +53,4 @@ def searchCatador(req : HttpRequest):
|
|
| 53 |
context["form_catador"] = modelForm
|
| 54 |
context["error"] = "ha ocurrido un error en guardar los datos"
|
| 55 |
|
| 56 |
-
return render(req, "tecnicas/catador-buscar.html", context)
|
|
|
|
| 15 |
user = False
|
| 16 |
|
| 17 |
if not user:
|
| 18 |
+
return render(req, "tecnicas/manage_tester/catador-buscar.html")
|
| 19 |
|
| 20 |
try:
|
| 21 |
catador = Catador.objects.get(usuarioCatador=user)
|
|
|
|
| 23 |
except Catador.DoesNotExist:
|
| 24 |
context["error"] = "usuario no encontrado"
|
| 25 |
|
| 26 |
+
return render(req, "tecnicas/manage_tester/catador-buscar.html", context)
|
| 27 |
elif req.method == "POST":
|
| 28 |
context = {}
|
| 29 |
|
|
|
|
| 36 |
|
| 37 |
if not infoCata:
|
| 38 |
context["error"] = "ha ocurrido un error en recueperar los datos"
|
| 39 |
+
return render(req, "tecnicas/manage_tester/catador-buscar.html", context)
|
| 40 |
|
| 41 |
user = get_object_or_404(Catador, usuarioCatador=nameUser)
|
| 42 |
|
|
|
|
| 45 |
try:
|
| 46 |
if not modelForm.is_valid():
|
| 47 |
context["error"] = "ha ocurrido un error en guardar los datos"
|
| 48 |
+
return render(req, "tecnicas/manage_tester/catador-buscar.html", context)
|
| 49 |
modelForm.save()
|
| 50 |
context["form_catador"] = modelForm
|
| 51 |
context["message"] = "usuario actualizado"
|
|
|
|
| 53 |
context["form_catador"] = modelForm
|
| 54 |
context["error"] = "ha ocurrido un error en guardar los datos"
|
| 55 |
|
| 56 |
+
return render(req, "tecnicas/manage_tester/catador-buscar.html", context)
|
tecnicas/views/configuration_panel_basic.py
CHANGED
|
@@ -23,7 +23,7 @@ def configuracionPanelBasic(req: HttpRequest):
|
|
| 23 |
except KeyError:
|
| 24 |
return redirect(reverse("cata_system:seleccion_tecnica") + "?error=error en datos de configuracion")
|
| 25 |
|
| 26 |
-
return render(req, "tecnicas/configuracion-panel-basic.html", { "form_sesion": form, "error": "Ha ocurrido un error al continuar al siguiente paso." })
|
| 27 |
elif req.method == "GET":
|
| 28 |
try:
|
| 29 |
id_tecnica = req.GET["id_tecnica"]
|
|
@@ -35,6 +35,6 @@ def configuracionPanelBasic(req: HttpRequest):
|
|
| 35 |
|
| 36 |
if tecnica:
|
| 37 |
form_sesion = SesionBasicForm(id_tecnica_new=id_tecnica)
|
| 38 |
-
return render(req, "tecnicas/configuracion-panel-basic.html", { "form_sesion": form_sesion })
|
| 39 |
else:
|
| 40 |
return redirect(reverse("cata_system:seleccion_tecnica") + "?error=la_tecnica_no_existe")
|
|
|
|
| 23 |
except KeyError:
|
| 24 |
return redirect(reverse("cata_system:seleccion_tecnica") + "?error=error en datos de configuracion")
|
| 25 |
|
| 26 |
+
return render(req, "tecnicas/create_sesion/configuracion-panel-basic.html", { "form_sesion": form, "error": "Ha ocurrido un error al continuar al siguiente paso." })
|
| 27 |
elif req.method == "GET":
|
| 28 |
try:
|
| 29 |
id_tecnica = req.GET["id_tecnica"]
|
|
|
|
| 35 |
|
| 36 |
if tecnica:
|
| 37 |
form_sesion = SesionBasicForm(id_tecnica_new=id_tecnica)
|
| 38 |
+
return render(req, "tecnicas/create_sesion/configuracion-panel-basic.html", { "form_sesion": form_sesion })
|
| 39 |
else:
|
| 40 |
return redirect(reverse("cata_system:seleccion_tecnica") + "?error=la_tecnica_no_existe")
|
tecnicas/views/configuration_panel_codes.py
CHANGED
|
@@ -5,12 +5,14 @@ from ..utils import generarCodigos
|
|
| 5 |
from ..forms import PalabrasForm
|
| 6 |
import json
|
| 7 |
|
| 8 |
-
|
|
|
|
| 9 |
data_basic = req.session["form_basic"]
|
| 10 |
data_tags = req.session["form_tags"]
|
| 11 |
|
| 12 |
if not data_basic or not data_tags:
|
| 13 |
-
redirect(reverse("cata_system:seleccion_tecnica") +
|
|
|
|
| 14 |
|
| 15 |
num_products = data_basic["numero_productos"]
|
| 16 |
num_cata = data_basic["numero_catadores"]
|
|
@@ -21,11 +23,11 @@ def configurationsPanelCodes(req:HttpRequest):
|
|
| 21 |
form_worlds = PalabrasForm(codes=codes_products)
|
| 22 |
|
| 23 |
context_worlds_form = {
|
| 24 |
-
"form_worlds"
|
| 25 |
"num_cata": num_cata
|
| 26 |
}
|
| 27 |
-
|
| 28 |
-
return render(req, "tecnicas/configuracion-panel-codes.html", context_worlds_form)
|
| 29 |
elif req.method == "POST":
|
| 30 |
sorts_code = json.loads(req.POST.get("sort_codes"))
|
| 31 |
codes = []
|
|
@@ -43,7 +45,7 @@ def configurationsPanelCodes(req:HttpRequest):
|
|
| 43 |
}
|
| 44 |
|
| 45 |
if form_worlds.is_valid():
|
| 46 |
-
codes_sort = {"product_codes":[]}
|
| 47 |
|
| 48 |
for name, value in form_worlds.cleaned_data.items():
|
| 49 |
codes_sort["product_codes"].append({name: value})
|
|
@@ -55,4 +57,4 @@ def configurationsPanelCodes(req:HttpRequest):
|
|
| 55 |
else:
|
| 56 |
context_worlds_form["error"] = "error en los datos recibidos"
|
| 57 |
|
| 58 |
-
return render(req, "tecnicas/configuracion-panel-codes.html", context_worlds_form)
|
|
|
|
| 5 |
from ..forms import PalabrasForm
|
| 6 |
import json
|
| 7 |
|
| 8 |
+
|
| 9 |
+
def configurationsPanelCodes(req: HttpRequest):
|
| 10 |
data_basic = req.session["form_basic"]
|
| 11 |
data_tags = req.session["form_tags"]
|
| 12 |
|
| 13 |
if not data_basic or not data_tags:
|
| 14 |
+
redirect(reverse("cata_system:seleccion_tecnica") +
|
| 15 |
+
"?error=datos del formulario requerido no encontrados")
|
| 16 |
|
| 17 |
num_products = data_basic["numero_productos"]
|
| 18 |
num_cata = data_basic["numero_catadores"]
|
|
|
|
| 23 |
form_worlds = PalabrasForm(codes=codes_products)
|
| 24 |
|
| 25 |
context_worlds_form = {
|
| 26 |
+
"form_worlds": form_worlds,
|
| 27 |
"num_cata": num_cata
|
| 28 |
}
|
| 29 |
+
|
| 30 |
+
return render(req, "tecnicas/create_sesion/configuracion-panel-codes.html", context_worlds_form)
|
| 31 |
elif req.method == "POST":
|
| 32 |
sorts_code = json.loads(req.POST.get("sort_codes"))
|
| 33 |
codes = []
|
|
|
|
| 45 |
}
|
| 46 |
|
| 47 |
if form_worlds.is_valid():
|
| 48 |
+
codes_sort = {"product_codes": []}
|
| 49 |
|
| 50 |
for name, value in form_worlds.cleaned_data.items():
|
| 51 |
codes_sort["product_codes"].append({name: value})
|
|
|
|
| 57 |
else:
|
| 58 |
context_worlds_form["error"] = "error en los datos recibidos"
|
| 59 |
|
| 60 |
+
return render(req, "tecnicas/create_sesion/configuracion-panel-codes.html", context_worlds_form)
|
tecnicas/views/configuration_panel_tags.py
CHANGED
|
@@ -22,7 +22,7 @@ def configuracionPanelTags(req: HttpRequest):
|
|
| 22 |
"form_new_tag": form_new_etiqueta
|
| 23 |
}
|
| 24 |
|
| 25 |
-
return render(req, "tecnicas/configuracion-panel-tags.html", context_tags)
|
| 26 |
elif req.method == "POST":
|
| 27 |
values = {}
|
| 28 |
form = SesionTagsForm(req.POST, longitud=tamano_escala, tipo_escala=tipo_escala.nombre_escala)
|
|
@@ -40,4 +40,4 @@ def configuracionPanelTags(req: HttpRequest):
|
|
| 40 |
return redirect(reverse("cata_system:panel_configuracion_codes"))
|
| 41 |
else:
|
| 42 |
context_tags["error"] = "ha ocurrido un error"
|
| 43 |
-
return render(req, "tecnicas/configuracion-panel-tags.html", context_tags)
|
|
|
|
| 22 |
"form_new_tag": form_new_etiqueta
|
| 23 |
}
|
| 24 |
|
| 25 |
+
return render(req, "tecnicas/create_sesion/configuracion-panel-tags.html", context_tags)
|
| 26 |
elif req.method == "POST":
|
| 27 |
values = {}
|
| 28 |
form = SesionTagsForm(req.POST, longitud=tamano_escala, tipo_escala=tipo_escala.nombre_escala)
|
|
|
|
| 40 |
return redirect(reverse("cata_system:panel_configuracion_codes"))
|
| 41 |
else:
|
| 42 |
context_tags["error"] = "ha ocurrido un error"
|
| 43 |
+
return render(req, "tecnicas/create_sesion/configuracion-panel-tags.html", context_tags)
|
tecnicas/views/configurations_panel_words.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
from django.http import HttpRequest
|
|
|
|
| 2 |
|
| 3 |
def configuracionPanelWords(req: HttpRequest):
|
| 4 |
if req.method == "GET":
|
| 5 |
-
return
|
| 6 |
else:
|
| 7 |
-
return
|
|
|
|
| 1 |
from django.http import HttpRequest
|
| 2 |
+
from ..utils import general_error
|
| 3 |
|
| 4 |
def configuracionPanelWords(req: HttpRequest):
|
| 5 |
if req.method == "GET":
|
| 6 |
+
return general_error("This endpoint is not implemented yet.")
|
| 7 |
else:
|
| 8 |
+
return general_error("Method not allowed.")
|
tecnicas/views/management_catadores.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
from django.shortcuts import render
|
| 2 |
|
| 3 |
def managementCatadores(req):
|
| 4 |
-
return render(req, "tecnicas/catadores-panel.html")
|
|
|
|
| 1 |
from django.shortcuts import render
|
| 2 |
|
| 3 |
def managementCatadores(req):
|
| 4 |
+
return render(req, "tecnicas/manage_tester/catadores-panel.html")
|
tecnicas/views/panel_sessions.py
CHANGED
|
@@ -1,16 +1,19 @@
|
|
| 1 |
from django.shortcuts import render
|
| 2 |
|
|
|
|
| 3 |
def sesionesPanel(req):
|
| 4 |
elementos = []
|
| 5 |
|
| 6 |
for i in range(6):
|
| 7 |
elementos.append(Elemento("Sesion " + str(i+1), "Hoy", "Convencional"))
|
| 8 |
|
| 9 |
-
return render(req, "tecnicas/sesiones-panel.html", context={"elementos":elementos})
|
| 10 |
|
| 11 |
# Auxiliar classes
|
|
|
|
|
|
|
| 12 |
class Elemento():
|
| 13 |
def __init__(self, nombre, fecha, tecnica):
|
| 14 |
self.nombre = nombre
|
| 15 |
self.fecha = fecha
|
| 16 |
-
self.tecnica = tecnica
|
|
|
|
| 1 |
from django.shortcuts import render
|
| 2 |
|
| 3 |
+
|
| 4 |
def sesionesPanel(req):
|
| 5 |
elementos = []
|
| 6 |
|
| 7 |
for i in range(6):
|
| 8 |
elementos.append(Elemento("Sesion " + str(i+1), "Hoy", "Convencional"))
|
| 9 |
|
| 10 |
+
return render(req, "tecnicas/manage_sesions/sesiones-panel.html", context={"elementos": elementos})
|
| 11 |
|
| 12 |
# Auxiliar classes
|
| 13 |
+
|
| 14 |
+
|
| 15 |
class Elemento():
|
| 16 |
def __init__(self, nombre, fecha, tecnica):
|
| 17 |
self.nombre = nombre
|
| 18 |
self.fecha = fecha
|
| 19 |
+
self.tecnica = tecnica
|
tecnicas/views/seleccion_tecnica.py
CHANGED
|
@@ -10,6 +10,6 @@ def selecionTecnica(req:HttpRequest):
|
|
| 10 |
error = error.replace("_", " ")
|
| 11 |
error = error.capitalize()
|
| 12 |
|
| 13 |
-
return render(req, "tecnicas/seleccion-tecnica.html", context={"tipos":tipos, "error":error})
|
| 14 |
except KeyError:
|
| 15 |
-
return render(req, "tecnicas/seleccion-tecnica.html", context={"tipos":tipos})
|
|
|
|
| 10 |
error = error.replace("_", " ")
|
| 11 |
error = error.capitalize()
|
| 12 |
|
| 13 |
+
return render(req, "tecnicas/create_sesion/seleccion-tecnica.html", context={"tipos":tipos, "error":error})
|
| 14 |
except KeyError:
|
| 15 |
+
return render(req, "tecnicas/create_sesion/seleccion-tecnica.html", context={"tipos":tipos})
|