chartManD commited on
Commit
8f11233
·
1 Parent(s): 110ecad

Crado panel para Vocabularios

Browse files
tecnicas/static/img/letters.webp ADDED
tecnicas/templates/tecnicas/main-panel.html CHANGED
@@ -6,13 +6,13 @@
6
  {% block content %}
7
  <article class="cts-container-main">
8
  <article class="cts-wrap-content">
9
- <header class="flex flex-col flex-wrap justify-center items-center gap-8">
10
  <section class="bg-surface-card p-8 rounded-md w-full shadow-lg">
11
  <h1 class="text-black text-4xl font-bold text-center max-sm:text-2xl">Panel Principal</h1>
12
  </section>
13
  <section
14
- class="flex flex-wrap justify-center max-sm:gap-4 items-center p-8 w-full bg-surface-card rounded-md shadow-lg">
15
- <section class="flex flex-col text-black flex-1 flex-wrap gap-4">
16
  <fieldset class="fieldset rounded-box border px-3 pb-3 rounded-2xl">
17
  <legend class="text-black fieldset-legend px-1.5">Nombre Presentador</legend>
18
  <p class="text-3xl max-sm:text-2xl font-medium">{{ name }}</p>
@@ -23,9 +23,9 @@
23
  <p class="text-3xl max-sm:text-2xl font-medium">{{ cumple }}</p>
24
  </fieldset>
25
  </section>
26
- <section class="flex-1 flex justify-center">
27
  <button type="button"
28
- class="btn btn-active text-xl tracking-wider font-bold text-black btn-error py-8 px-12 border-b-red-600 btn-push"
29
  onclick="exit_sesion('frm-exit')">
30
  Salir del sistema
31
  </button>
@@ -37,32 +37,29 @@
37
  {% include "./components/error-message.html" with message=error %}
38
  {% endif %}
39
 
40
- <article class="w-full flex flex-col gap-7 items-center min-sm:mt-7 mt-4 bg-surface-card rounded-lg shadow-lg">
41
- <article
42
- class="w-5xl max-lg:w-3xl max-md:w-auto p-8 flex flex-col justify-around items-center gap-4 flex-wrap text-3xl max-sm:text-2xl">
43
- <section class="flex flex-row flex-wrap gap-4 w-full">
44
- <a href="{% url 'cata_system:seleccion_tecnica' %}" class="flex-1 w-full">
45
- <button
46
- class="w-full text-black bg-btn-primary font-medium rounded-xl px-8 py-4 text-center border-b-green-800 btn-push">
47
- Iniciar Sesión <br> Sensorial
48
- </button>
49
- </a>
50
- <a href="{% url 'cata_system:panel_catadores' %}" class="flex-1 w-full">
51
- <button
52
- class="w-full text-black bg-btn-secondary font-medium rounded-xl px-8 py-4 text-center border-b-pink-800 btn-push">
53
- Gestión de <br>catadores
54
- </button>
55
- </a>
56
- </section>
57
-
58
- <section class="flex flex-row flex-wrap gap-4 w-f ull justify-center">
59
- <a href="{% url 'cata_system:panel_sesiones' page=1 %}">
60
- <button
61
- class="text-black bg-btn-tertiary font-medium rounded-xl px-8 py-4 text-center border-b-pink-800 btn-push">
62
- Gestión de sesiones<br>sensoriales
63
- </button>
64
- </a>
65
- </section>
66
  </article>
67
  </article>
68
  </article>
 
6
  {% block content %}
7
  <article class="cts-container-main">
8
  <article class="cts-wrap-content">
9
+ <header class="flex flex-col flex-wrap justify-center items-center space-y-8">
10
  <section class="bg-surface-card p-8 rounded-md w-full shadow-lg">
11
  <h1 class="text-black text-4xl font-bold text-center max-sm:text-2xl">Panel Principal</h1>
12
  </section>
13
  <section
14
+ class="flex max-sm:flex-col flex-wrap justify-center max-sm:gap-4 items-center p-8 w-full bg-surface-card rounded-md shadow-lg">
15
+ <section class="flex flex-col text-black flex-1 flex-wrap gap-4 w-full">
16
  <fieldset class="fieldset rounded-box border px-3 pb-3 rounded-2xl">
17
  <legend class="text-black fieldset-legend px-1.5">Nombre Presentador</legend>
18
  <p class="text-3xl max-sm:text-2xl font-medium">{{ name }}</p>
 
23
  <p class="text-3xl max-sm:text-2xl font-medium">{{ cumple }}</p>
24
  </fieldset>
25
  </section>
26
+ <section class="flex-1 flex justify-center max-sm:w-full">
27
  <button type="button"
28
+ class="text-black cts-btn-general cts-btn-error btn-push max-sm:w-full"
29
  onclick="exit_sesion('frm-exit')">
30
  Salir del sistema
31
  </button>
 
37
  {% include "./components/error-message.html" with message=error %}
38
  {% endif %}
39
 
40
+ <article class="w-full py-6 p-2 sm:p-4 md:p-8 bg-surface-card rounded-lg shadow-lg">
41
+ <article class="grid grid-cols-2 gap-6 w-5xl max-lg:w-3xl max-md:w-auto text-3xl max-sm:text-2xl
42
+ max-md:grid-cols-1 justify-items-center items-start place-items-stretch">
43
+ <a href="{% url 'cata_system:seleccion_tecnica' %}" class="w-full">
44
+ <button class="w-full text-black cts-btn-general cts-btn-tertiary btn-push">
45
+ Iniciar Sesión <br> Sensorial
46
+ </button>
47
+ </a>
48
+ <a href="{% url 'cata_system:panel_catadores' %}" class="w-full">
49
+ <button class="w-full text-black cts-btn-general cts-btn-tertiary btn-push">
50
+ Gestión de <br>catadores
51
+ </button>
52
+ </a>
53
+ <a href="{% url 'cata_system:panel_sesiones' page=1 %}" class="w-full">
54
+ <button class="w-full text-black cts-btn-general cts-btn-tertiary btn-push">
55
+ Gestión de sesiones<br>sensoriales
56
+ </button>
57
+ </a>
58
+ <a href="{% url 'cata_system:panel_vocabulario' %}" class="w-full h-full">
59
+ <button class="w-full h-full text-black cts-btn-general cts-btn-tertiary btn-push">
60
+ Gestión de vocabularios
61
+ </button>
62
+ </a>
 
 
 
63
  </article>
64
  </article>
65
  </article>
tecnicas/templates/tecnicas/manage_vocabulary/panel-vocabulary.html ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {% extends 'tecnicas/layouts/base.html' %}
2
+ {% load static %}
3
+
4
+ {% block title %}Gestionar Catadores{% endblock %}
5
+
6
+ {% block content %}
7
+ <article class="cts-container-main">
8
+ <article class="cts-wrap-content">
9
+ <header class="flex gap-4">
10
+ <div class="bg-surface-card p-8 text-2xl text-black font-bold rounded-lg text-center block">
11
+ <h1>Panel de vocabularios</h1>
12
+ </div>
13
+ <a href="{% url 'cata_system:index' %}" class="block flex-1">
14
+ <button
15
+ class="w-full h-full text-black cts-btn-general cts-btn-error btn-push">
16
+ Ir al Panel principal
17
+ </button>
18
+ </a>
19
+ </header>
20
+ <section class="flex flex-col gap-7">
21
+ <div class="w-full h-40 rounded-lg max-sm:hidden">
22
+ <img src="{% static 'img/letters.webp' %}" alt="varias personas en fila"
23
+ class="w-full h-full object-cover rounded-xl">
24
+ </div>
25
+ <a href="#" class="flex-1">
26
+ <button class="w-full h-full cts-btn-general cts-btn-primary btn-push">
27
+ ➕ Crear Vocabulario
28
+ </button>
29
+ </a>
30
+ <a href="#" class="flex-1">
31
+ <button class="w-full h-full cts-btn-general cts-btn-tertiary btn-push">
32
+ 📋 Ver vocabularios
33
+ </button>
34
+ </a>
35
+ <div class="w-full h-40 rounded-lg min-sm:hidden">
36
+ <img src="{% static 'img/letters.webp' %}" alt="varias personas en fila"
37
+ class="w-full h-full object-cover rounded-xl">
38
+ </div>
39
+ </section>
40
+ </article>
41
+ </article>
42
+ {% endblock %}
tecnicas/urls.py CHANGED
@@ -44,6 +44,10 @@ urlpatterns = [
44
  views.createSession,
45
  name="creando_sesion"),
46
 
 
 
 
 
47
 
48
  # Gestion de catadores
49
  path("presenter/panel-catadores",
 
44
  views.createSession,
45
  name="creando_sesion"),
46
 
47
+ # Gestion de Vocabularios
48
+ path("presenter/panel-vocabulario",
49
+ views.vocabularyMenu,
50
+ name="panel_vocabulario"),
51
 
52
  # Gestion de catadores
53
  path("presenter/panel-catadores",
tecnicas/views/__init__.py CHANGED
@@ -18,6 +18,8 @@ from .tester_management.tester_create import testerCreate
18
  from .tester_management.tester_search import testerSearch
19
  from .tester_management.tester_list import testerList
20
 
 
 
21
  from .apis.api_tag import newTag
22
  from .apis.api_words import words
23
  from .apis.rating_word import reatingWord
 
18
  from .tester_management.tester_search import testerSearch
19
  from .tester_management.tester_list import testerList
20
 
21
+ from .vocabulry_management.vocabulry_menu import vocabularyMenu
22
+
23
  from .apis.api_tag import newTag
24
  from .apis.api_words import words
25
  from .apis.rating_word import reatingWord
tecnicas/views/vocabulry_management/vocabulry_menu.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from django.shortcuts import render
2
+
3
+ def vocabularyMenu(req):
4
+ return render(req, "tecnicas/manage_vocabulary/panel-vocabulary.html")