chartManD commited on
Commit
14d0114
·
1 Parent(s): a1de763

Se aplica paleta de colores a detalles de sesion y monitoreo

Browse files
tecnicas/templates/tecnicas/main-panel.html CHANGED
@@ -3,8 +3,8 @@
3
  {% block title %}Panel principal{% endblock %}
4
 
5
  {% block content %}
6
- <article class="w-full flex flex-col justify-center items-center min-sm:mt-10">
7
- <article class="flex flex-col bg-surface-alter p-10 max-sm:py-10 max-sm:px-3 min-sm:rounded-2xl">
8
  <header class="flex flex-col flex-wrap justify-center items-center gap-8">
9
  <section class="bg-surface-card p-8 rounded-md w-full shadow-lg">
10
  <h1 class="text-black text-4xl font-bold text-center max-sm:text-2xl">Panel Principal</h1>
 
3
  {% block title %}Panel principal{% endblock %}
4
 
5
  {% block content %}
6
+ <article class="ct-container">
7
+ <article class="ct-wrap-content">
8
  <header class="flex flex-col flex-wrap justify-center items-center gap-8">
9
  <section class="bg-surface-card p-8 rounded-md w-full shadow-lg">
10
  <h1 class="text-black text-4xl font-bold text-center max-sm:text-2xl">Panel Principal</h1>
tecnicas/templates/tecnicas/manage_sesions/detalles-sesion.html CHANGED
@@ -4,8 +4,8 @@
4
  {% block title %}Detalles Sesion{% endblock %}
5
 
6
  {% block content %}
7
- <article class="w-full flex flex-col justify-center items-center bg-surface-general mt-10 mb-10">
8
- <article class="flex flex-col gap-8 bg-surface-alter p-10 max-lg:p-6 max-sm:px-2 rounded-xl max-lg:rounded-none">
9
  <header class="text-center flex-row w-full flex justify-around items-center flex-wrap gap-10">
10
  <h1 class="text-black rounded-xl font-bold text-2xl bg-surface-card shadow-lg p-4 flex-1">
11
  Detalles de la sesión
@@ -38,7 +38,7 @@
38
  Información general
39
  </p>
40
  <article
41
- class="text-black rounded-xl grid grid-cols-2 max-sm:grid-cols-1 gap-3 *:bg-surface-card *:flex *:flex-wrap *:items-center *:justify-center *:max-sm:justify-normal *:gap-x-2 *:p-4 *:rounded-2xl text-xl max-sm:text-base">
42
  <section class="col-span-2 max-sm:col-span-1">
43
  <p class="font-bold">
44
  Código:
@@ -183,13 +183,13 @@
183
  </p>
184
 
185
  {% if calificaciones.error %}
186
- <article class="bg-surface-general p-4 text-white rounded-xl">
187
  <p class="block font-sans text-xl antialiased font-normal uppercase tracking-wider text-center">
188
  {{ calificaciones.error }}
189
  </p>
190
  </article>
191
  {% else %}
192
- <article class="bg-surface-general p-4 text-white rounded-xl">
193
  </article>
194
  {% endif %}
195
  <form action="" method="post" class="form-action-session hidden">
 
4
  {% block title %}Detalles Sesion{% endblock %}
5
 
6
  {% block content %}
7
+ <article class="ct-container">
8
+ <article class="ct-wrap-content">
9
  <header class="text-center flex-row w-full flex justify-around items-center flex-wrap gap-10">
10
  <h1 class="text-black rounded-xl font-bold text-2xl bg-surface-card shadow-lg p-4 flex-1">
11
  Detalles de la sesión
 
38
  Información general
39
  </p>
40
  <article
41
+ class="text-black rounded-xl grid grid-cols-2 max-sm:grid-cols-1 gap-3 max-sm:gap-1 *:bg-surface-card *:flex *:flex-wrap *:items-center *:justify-center *:max-sm:justify-normal *:gap-x-2 *:p-4 *:rounded-2xl text-xl max-sm:text-base">
42
  <section class="col-span-2 max-sm:col-span-1">
43
  <p class="font-bold">
44
  Código:
 
183
  </p>
184
 
185
  {% if calificaciones.error %}
186
+ <article class="bg-surface-card p-4 text-white rounded-xl">
187
  <p class="block font-sans text-xl antialiased font-normal uppercase tracking-wider text-center">
188
  {{ calificaciones.error }}
189
  </p>
190
  </article>
191
  {% else %}
192
+ <article class="bg-surface-card p-4 text-white rounded-xl">
193
  </article>
194
  {% endif %}
195
  <form action="" method="post" class="form-action-session hidden">
tecnicas/templates/tecnicas/manage_sesions/monitor-sesion.html CHANGED
@@ -3,11 +3,10 @@
3
  {% block title %}Monitoreo{% endblock %}
4
 
5
  {% block content %}
6
- <article class="w-full flex flex-col justify-center items-center bg-gray-600 mt-10 mb-10">
7
- <article
8
- class="flex flex-col gap-8 bg-gray-400 p-10 max-lg:p-6 max-sm:px-2 max-sm:w-full rounded-2xl max-lg:rounded-none">
9
  <header class="text-center">
10
- <h1 class="text-3xl font-bold">Sesión sensorial en curso</h1>
11
  </header>
12
 
13
  {% if error %}
@@ -19,21 +18,21 @@
19
  {% endif %}
20
 
21
  <section class="flex flex-col sm:flex-row justify-between items-center gap-10 mb-6">
22
- <p class="text-xl text-center bg-gray-600 p-4 text-white rounded-lg">
23
  Código de sesión:<br>
24
  <span class="font-mono text-2xl font-bold">{{ code_session }}</span>
25
  </p>
26
  <button
27
- class="uppercase text-lg max-sm:text-base tracking-wider p-4 border-b-2 active:border-b-0 active:border-t-2 active:border-red-500 border-red-800 transition-all rounded-xl bg-red-600 text-white font-bold disabled:bg-amber-600">
28
  Finalizar sesión
29
  </button>
30
  </section>
31
 
32
  <section aria-labelledby="catadores-titulo">
33
  <article
34
- class="flex max-sm:flex-col justify-around bg-gray-200 border border-gray-300 rounded-md p-3 mb-4 items-center">
35
  <button
36
- class="uppercase text-lg max-sm:text-base tracking-wider p-2 px-3 border-b-3 active:border-b-0 active:border-t-3 active:border-blue-500 border-blue-800 transition-all rounded-xl bg-blue-600 text-white font-bold"
37
  onclick="reloadPage()">
38
  Actualizar lista
39
  </button>
@@ -43,7 +42,7 @@
43
  </article>
44
 
45
  <article
46
- class="flex flex-col justify-center gap-3 bg-gray-200 border border-gray-300 rounded-md p-3 mb-4 text-lg max-sm:text-sm text-gray-700">
47
  <div class="flex justify-center items-center">
48
  <h2 class="text-xl font-semibold">Participantes</h2>
49
  </div>
@@ -63,19 +62,19 @@
63
  </section>
64
  </article>
65
 
66
- <article class="max-sm:overflow-x-auto">
67
  <div class="min-w-[400px] sm:min-w-0">
68
  <div
69
- class="grid grid-cols-4 bg-gray-300 text-center font-semibold text-sm rounded-t-lg max-sm:w-full [&_>*]:px-2">
70
  <div class="py-2 border-r border-gray-400">Usuario</div>
71
  <div class="py-2 border-r border-gray-400">Nombre</div>
72
  <div class="py-2 border-r border-gray-400">Estado</div>
73
  <div class="py-2">Finalizado</div>
74
  </div>
75
 
76
- <ul class="divide-y divide-gray-400 max-sm:w-full">
77
  {% for parti in participations %}
78
- <li class="grid grid-cols-4 text-center bg-gray-200 py-2 [&_>*]:px-2">
79
  <p class="border-r border-gray-400">{{ parti.catador.usuarioCatador }}</p>
80
  <p class="border-r border-gray-400">
81
  {{ parti.catador.nombre }}
 
3
  {% block title %}Monitoreo{% endblock %}
4
 
5
  {% block content %}
6
+ <article class="ct-container">
7
+ <article class="ct-wrap-content">
 
8
  <header class="text-center">
9
+ <h1 class="text-3xl font-bold text-black">Sesión sensorial en curso</h1>
10
  </header>
11
 
12
  {% if error %}
 
18
  {% endif %}
19
 
20
  <section class="flex flex-col sm:flex-row justify-between items-center gap-10 mb-6">
21
+ <p class="text-xl text-center bg-surface-card p-4 text-black rounded-lg shadow-lg">
22
  Código de sesión:<br>
23
  <span class="font-mono text-2xl font-bold">{{ code_session }}</span>
24
  </p>
25
  <button
26
+ class="uppercase text-lg max-sm:text-base tracking-wider p-4 rounded-xl bg-ct-error text-white font-bold border-red-800 btn-push">
27
  Finalizar sesión
28
  </button>
29
  </section>
30
 
31
  <section aria-labelledby="catadores-titulo">
32
  <article
33
+ class="flex max-sm:flex-col justify-around bg-surface-card border border-gray-300 rounded-md p-3 mb-4 items-center shadow-lg">
34
  <button
35
+ class="uppercase text-lg max-sm:text-base tracking-wider p-2 px-3 transition-all rounded-xl bg-btn-secondary font-bold btn-push border-pink-800"
36
  onclick="reloadPage()">
37
  Actualizar lista
38
  </button>
 
42
  </article>
43
 
44
  <article
45
+ class="flex flex-col justify-center gap-3 bg-surface-card border border-gray-300 rounded-md p-3 mb-4 text-lg max-sm:text-sm text-gray-700 shadow-lg">
46
  <div class="flex justify-center items-center">
47
  <h2 class="text-xl font-semibold">Participantes</h2>
48
  </div>
 
62
  </section>
63
  </article>
64
 
65
+ <article class="max-sm:overflow-x-auto shadow-lg">
66
  <div class="min-w-[400px] sm:min-w-0">
67
  <div
68
+ class="grid grid-cols-4 bg-surface-sweet text-center font-semibold text-black text-sm rounded-t-lg max-sm:w-full [&_>*]:px-2">
69
  <div class="py-2 border-r border-gray-400">Usuario</div>
70
  <div class="py-2 border-r border-gray-400">Nombre</div>
71
  <div class="py-2 border-r border-gray-400">Estado</div>
72
  <div class="py-2">Finalizado</div>
73
  </div>
74
 
75
+ <ul class="divide-y divide-gray-400 max-sm:w-full text-black">
76
  {% for parti in participations %}
77
+ <li class="grid grid-cols-4 text-center bg-surface-card py-2 [&_>*]:px-2">
78
  <p class="border-r border-gray-400">{{ parti.catador.usuarioCatador }}</p>
79
  <p class="border-r border-gray-400">
80
  {{ parti.catador.nombre }}
tecnicas/templates/tecnicas/manage_sesions/sesiones-panel.html CHANGED
@@ -4,8 +4,8 @@
4
  {% block title %}Panel Sesiones{% endblock %}
5
 
6
  {% block content %}
7
- <article class="w-full flex flex-col justify-center items-center bg-surface-general mt-10 mb-10">
8
- <article class="max-sm:w-full flex flex-col gap-8 bg-surface-alter p-10 max-lg:p-6 max-sm:px-0 rounded-2xl">
9
  <header class="text-center flex flex-row max-sm:flex-col gap-8 items-center w-full">
10
  <div class="bg-surface-card p-4 text-black shadow-lg rounded-xl flex-1">
11
  <h1 class="font-bold text-2xl">Administra las<br>sesiones sensoriales</h1>
@@ -20,9 +20,9 @@
20
  </div>
21
  </header>
22
 
23
- <section class="grid grid-cols-3 max-lg:grid-cols-2 max-sm:grid-cols-1 gap-4 justify-center">
24
  {% for sesion in sessions %}
25
- <div class="card bg-surface-card shadow-lg text-black max-w-80 w-full">
26
  <div class="card-body flex flex-col justify-between">
27
  <div class="flex flex-col gap-1 [&>*]:first:text-xl [&>*]:first:font-bold [&>*]:first:border-b">
28
  {% if sesion.nombre_sesion %}
@@ -65,7 +65,7 @@
65
  <button class="join-item btn bg-btn-secondary">
66
  <img class="h-full" src="{% static 'img/less-than.svg' %}" alt="menor que">
67
  </button>
68
- <button class="join-item btn bg-btn-secondary">Page 22</button>
69
  <button class="join-item btn bg-btn-secondary">
70
  <img class="h-full" src="{% static 'img/greater-than.svg' %}" alt="mayor que">
71
  </button>
 
4
  {% block title %}Panel Sesiones{% endblock %}
5
 
6
  {% block content %}
7
+ <article class="ct-container">
8
+ <article class="ct-wrap-content">
9
  <header class="text-center flex flex-row max-sm:flex-col gap-8 items-center w-full">
10
  <div class="bg-surface-card p-4 text-black shadow-lg rounded-xl flex-1">
11
  <h1 class="font-bold text-2xl">Administra las<br>sesiones sensoriales</h1>
 
20
  </div>
21
  </header>
22
 
23
+ <section class="grid grid-cols-3 max-lg:grid-cols-2 max-sm:grid-cols-1 w-full gap-4 justify-center">
24
  {% for sesion in sessions %}
25
+ <div class="card bg-surface-card shadow-lg text-black sm:max-w-80 w-full flex justify-center items-center">
26
  <div class="card-body flex flex-col justify-between">
27
  <div class="flex flex-col gap-1 [&>*]:first:text-xl [&>*]:first:font-bold [&>*]:first:border-b">
28
  {% if sesion.nombre_sesion %}
 
65
  <button class="join-item btn bg-btn-secondary">
66
  <img class="h-full" src="{% static 'img/less-than.svg' %}" alt="menor que">
67
  </button>
68
+ <button class="join-item btn bg-btn-secondary">Page {{ page }}</button>
69
  <button class="join-item btn bg-btn-secondary">
70
  <img class="h-full" src="{% static 'img/greater-than.svg' %}" alt="mayor que">
71
  </button>
tecnicas/views/sessions_management/sessions_panel.py CHANGED
@@ -3,7 +3,7 @@ from ...controllers import SesionController
3
 
4
 
5
  def sesionsPanel(req, page: int):
6
- context = {}
7
 
8
  sessions_in_page = SesionController.getSessionsSavesByCretor(
9
  user_name="aguBido", page=page)
@@ -22,4 +22,4 @@ def sesionsPanel(req, page: int):
22
 
23
  context["num_paginas"] = number_pages
24
 
25
- return render(req, "tecnicas/manage_sesions/sesiones-panel.html", context=context)
 
3
 
4
 
5
  def sesionsPanel(req, page: int):
6
+ context = {"page": page}
7
 
8
  sessions_in_page = SesionController.getSessionsSavesByCretor(
9
  user_name="aguBido", page=page)
 
22
 
23
  context["num_paginas"] = number_pages
24
 
25
+ return render(req, "tecnicas/manage_sesions/sesiones-panel.html", context=context)
theme/static_src/src/styles.css CHANGED
@@ -19,6 +19,14 @@
19
  @apply border-b-4 active:border-b-0 active:border-t-4 transition-all;
20
  }
21
 
 
 
 
 
 
 
 
 
22
  /*
23
  #FFECC0
24
  #FFC29B
 
19
  @apply border-b-4 active:border-b-0 active:border-t-4 transition-all;
20
  }
21
 
22
+ .ct-container {
23
+ @apply w-full flex flex-col justify-center items-center bg-surface-general mt-10 mb-10;
24
+ }
25
+
26
+ .ct-wrap-content {
27
+ @apply flex flex-col gap-8 bg-surface-alter p-10 max-lg:p-6 max-sm:px-2 rounded-xl max-lg:rounded-none;
28
+ }
29
+
30
  /*
31
  #FFECC0
32
  #FFC29B