Spaces:
Sleeping
Sleeping
Responsivo Gestion de sesiones y Detalles sesion
Browse files
tecnicas/templates/tecnicas/manage_sesions/detalles-sesion.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 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">
|
| 9 |
<header class="text-center flex-row w-full flex justify-around items-center flex-wrap gap-10">
|
| 10 |
<h1 class="text-white rounded-xl font-bold text-2xl bg-gray-600 p-4 flex-1">
|
| 11 |
Detalles de la sesión
|
|
@@ -38,21 +38,21 @@
|
|
| 38 |
Información general
|
| 39 |
</p>
|
| 40 |
<article
|
| 41 |
-
class="text-white rounded-xl grid grid-cols-2 max-sm:grid-cols-1 gap-3 *:bg-gray-500 *:flex *:flex-wrap *:items-center *:justify-center *:max-sm:justify-normal *:gap-x-2 *:p-4 *:rounded-2xl">
|
| 42 |
<section class="col-span-2 max-sm:col-span-1">
|
| 43 |
-
<p class="
|
| 44 |
Código:
|
| 45 |
</p>
|
| 46 |
-
<p class="font-sans
|
| 47 |
{{ sesion.codigo_sesion }}
|
| 48 |
</p>
|
| 49 |
</section>
|
| 50 |
|
| 51 |
<section class="col-span-2 max-sm:col-span-1">
|
| 52 |
-
<p class="
|
| 53 |
Nombre:
|
| 54 |
</p>
|
| 55 |
-
<p class="
|
| 56 |
{% if sesion.nombre_sesion %}
|
| 57 |
{{ sesion.nombre_sesion }}
|
| 58 |
{% else %}
|
|
@@ -62,19 +62,19 @@
|
|
| 62 |
</section>
|
| 63 |
|
| 64 |
<section>
|
| 65 |
-
<p class="
|
| 66 |
Fecha creación:
|
| 67 |
</p>
|
| 68 |
-
<p class="font-sans
|
| 69 |
{{ sesion.fechaCreacion }}
|
| 70 |
</p>
|
| 71 |
</section>
|
| 72 |
|
| 73 |
<section>
|
| 74 |
-
<p class="
|
| 75 |
Estado:
|
| 76 |
</p>
|
| 77 |
-
<p class="font-sans text-lg font-normal">
|
| 78 |
{% if sesion.activo %}
|
| 79 |
En proceso
|
| 80 |
{% else %}
|
|
@@ -84,46 +84,46 @@
|
|
| 84 |
</section>
|
| 85 |
|
| 86 |
<section>
|
| 87 |
-
<p class="
|
| 88 |
Estilo palabras:
|
| 89 |
</p>
|
| 90 |
-
<p class="font-sans text-lg font-normal uppercase">
|
| 91 |
{{ sesion.tecnica.id_estilo }}
|
| 92 |
</p>
|
| 93 |
</section>
|
| 94 |
|
| 95 |
<section>
|
| 96 |
-
<p class="
|
| 97 |
Técnica:
|
| 98 |
</p>
|
| 99 |
-
<p class="font-sans text-lg font-normal uppercase">
|
| 100 |
{{ sesion.tecnica.tipo_tecnica }}
|
| 101 |
</p>
|
| 102 |
</section>
|
| 103 |
|
| 104 |
<section>
|
| 105 |
-
<p class="
|
| 106 |
Rep. Hechas:
|
| 107 |
</p>
|
| 108 |
-
<p class="font-sans text-lg font-normal">
|
| 109 |
{{ sesion.tecnica.repeticion }}
|
| 110 |
</p>
|
| 111 |
</section>
|
| 112 |
|
| 113 |
<section>
|
| 114 |
-
<p class="
|
| 115 |
Rep. Max:
|
| 116 |
</p>
|
| 117 |
-
<p class="font-sans text-lg font-normal">
|
| 118 |
{{ sesion.tecnica.repeticiones_max }}
|
| 119 |
</p>
|
| 120 |
</section>
|
| 121 |
|
| 122 |
<section class="col-span-2 max-sm:col-span-1">
|
| 123 |
-
<p class="
|
| 124 |
Instrucciones:
|
| 125 |
</p>
|
| 126 |
-
<p class="font-sans text-xl font-normal">
|
| 127 |
{{ sesion.tecnica.instrucciones }}
|
| 128 |
</p>
|
| 129 |
</section>
|
|
@@ -147,10 +147,10 @@
|
|
| 147 |
<p class="font-bold text-2xl border-b-2">
|
| 148 |
Acciones disponibles
|
| 149 |
</p>
|
| 150 |
-
<article class="flex flex-wrap gap-10">
|
| 151 |
{% if not sesion.activo %}
|
| 152 |
<button
|
| 153 |
-
class="ct-btn-start-repition flex-1 uppercase text-lg tracking-wider p-4 border-b-2 active:border-b-0 active:border-t-2 active:border-green-500 border-green-800 transition-all rounded-xl bg-green-600 text-white font-bold disabled:bg-amber-600 flex flex-col justify-center items-center gap-2"
|
| 154 |
onclick="startRepetition()">
|
| 155 |
Iniciar repetición
|
| 156 |
<figure class="w-10">
|
|
@@ -159,7 +159,7 @@
|
|
| 159 |
</button>
|
| 160 |
{% else %}
|
| 161 |
<button
|
| 162 |
-
class="ct-btn-start-repition flex-1 uppercase text-lg tracking-wider p-4 border-b-2 active:border-b-0 active:border-t-2 active:border-orange-500 border-orange-800 transition-all rounded-xl bg-orange-600 text-white font-bold disabled:bg-amber-600 flex flex-col justify-center items-center gap-2">
|
| 163 |
Monitorear repetición
|
| 164 |
<figure class="w-10">
|
| 165 |
<img src="{% static 'img/monitor.svg' %}" alt="flechas girando" class="invert">
|
|
@@ -168,7 +168,7 @@
|
|
| 168 |
{% endif %}
|
| 169 |
|
| 170 |
<button
|
| 171 |
-
class="flex-1 uppercase text-lg 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 flex flex-col justify-center items-center gap-2">
|
| 172 |
borrar
|
| 173 |
<figure class="w-10">
|
| 174 |
<img src="{% static 'img/basura.svg' %}" alt="bote de basura" class="invert">
|
|
|
|
| 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 max-lg:p-6 max-sm:px-2 rounded-2xl 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-white rounded-xl font-bold text-2xl bg-gray-600 p-4 flex-1">
|
| 11 |
Detalles de la sesión
|
|
|
|
| 38 |
Información general
|
| 39 |
</p>
|
| 40 |
<article
|
| 41 |
+
class="text-white rounded-xl grid grid-cols-2 max-sm:grid-cols-1 gap-3 *:bg-gray-500 *: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:
|
| 45 |
</p>
|
| 46 |
+
<p class="font-sans">
|
| 47 |
{{ sesion.codigo_sesion }}
|
| 48 |
</p>
|
| 49 |
</section>
|
| 50 |
|
| 51 |
<section class="col-span-2 max-sm:col-span-1">
|
| 52 |
+
<p class="font-bold">
|
| 53 |
Nombre:
|
| 54 |
</p>
|
| 55 |
+
<p class="antialiased">
|
| 56 |
{% if sesion.nombre_sesion %}
|
| 57 |
{{ sesion.nombre_sesion }}
|
| 58 |
{% else %}
|
|
|
|
| 62 |
</section>
|
| 63 |
|
| 64 |
<section>
|
| 65 |
+
<p class="font-bold">
|
| 66 |
Fecha creación:
|
| 67 |
</p>
|
| 68 |
+
<p class="font-sans font-normal uppercase">
|
| 69 |
{{ sesion.fechaCreacion }}
|
| 70 |
</p>
|
| 71 |
</section>
|
| 72 |
|
| 73 |
<section>
|
| 74 |
+
<p class="font-bold">
|
| 75 |
Estado:
|
| 76 |
</p>
|
| 77 |
+
<p class="font-sans text-lg max-sm:text-base font-normal">
|
| 78 |
{% if sesion.activo %}
|
| 79 |
En proceso
|
| 80 |
{% else %}
|
|
|
|
| 84 |
</section>
|
| 85 |
|
| 86 |
<section>
|
| 87 |
+
<p class="font-bold">
|
| 88 |
Estilo palabras:
|
| 89 |
</p>
|
| 90 |
+
<p class="font-sans text-lg max-sm:text-base font-normal uppercase">
|
| 91 |
{{ sesion.tecnica.id_estilo }}
|
| 92 |
</p>
|
| 93 |
</section>
|
| 94 |
|
| 95 |
<section>
|
| 96 |
+
<p class="font-bold">
|
| 97 |
Técnica:
|
| 98 |
</p>
|
| 99 |
+
<p class="font-sans text-lg max-sm:text-base font-normal uppercase">
|
| 100 |
{{ sesion.tecnica.tipo_tecnica }}
|
| 101 |
</p>
|
| 102 |
</section>
|
| 103 |
|
| 104 |
<section>
|
| 105 |
+
<p class="font-bold">
|
| 106 |
Rep. Hechas:
|
| 107 |
</p>
|
| 108 |
+
<p class="font-sans text-lg max-sm:text-base font-normal">
|
| 109 |
{{ sesion.tecnica.repeticion }}
|
| 110 |
</p>
|
| 111 |
</section>
|
| 112 |
|
| 113 |
<section>
|
| 114 |
+
<p class="font-medium">
|
| 115 |
Rep. Max:
|
| 116 |
</p>
|
| 117 |
+
<p class="font-sans text-lg max-sm:text-base font-normal">
|
| 118 |
{{ sesion.tecnica.repeticiones_max }}
|
| 119 |
</p>
|
| 120 |
</section>
|
| 121 |
|
| 122 |
<section class="col-span-2 max-sm:col-span-1">
|
| 123 |
+
<p class="font-bold">
|
| 124 |
Instrucciones:
|
| 125 |
</p>
|
| 126 |
+
<p class="font-sans text-xl max-sm:text-base font-normal">
|
| 127 |
{{ sesion.tecnica.instrucciones }}
|
| 128 |
</p>
|
| 129 |
</section>
|
|
|
|
| 147 |
<p class="font-bold text-2xl border-b-2">
|
| 148 |
Acciones disponibles
|
| 149 |
</p>
|
| 150 |
+
<article class="flex flex-wrap gap-10 max-sm:gap-2">
|
| 151 |
{% if not sesion.activo %}
|
| 152 |
<button
|
| 153 |
+
class="ct-btn-start-repition flex-1 uppercase text-lg max-sm:text-base tracking-wider p-4 border-b-2 active:border-b-0 active:border-t-2 active:border-green-500 border-green-800 transition-all rounded-xl bg-green-600 text-white font-bold disabled:bg-amber-600 flex flex-col justify-center items-center gap-2"
|
| 154 |
onclick="startRepetition()">
|
| 155 |
Iniciar repetición
|
| 156 |
<figure class="w-10">
|
|
|
|
| 159 |
</button>
|
| 160 |
{% else %}
|
| 161 |
<button
|
| 162 |
+
class="ct-btn-start-repition flex-1 uppercase text-lg max-sm:text-base tracking-wider p-4 border-b-2 active:border-b-0 active:border-t-2 active:border-orange-500 border-orange-800 transition-all rounded-xl bg-orange-600 text-white font-bold disabled:bg-amber-600 flex flex-col justify-center items-center gap-2">
|
| 163 |
Monitorear repetición
|
| 164 |
<figure class="w-10">
|
| 165 |
<img src="{% static 'img/monitor.svg' %}" alt="flechas girando" class="invert">
|
|
|
|
| 168 |
{% endif %}
|
| 169 |
|
| 170 |
<button
|
| 171 |
+
class="flex-1 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 flex flex-col justify-center items-center gap-2">
|
| 172 |
borrar
|
| 173 |
<figure class="w-10">
|
| 174 |
<img src="{% static 'img/basura.svg' %}" alt="bote de basura" class="invert">
|
tecnicas/templates/tecnicas/manage_sesions/sesiones-panel.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
| 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">
|
| 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">
|
| 11 |
<h1 class="font-bold text-2xl">Administra las<br>sesiones sensoriales</h1>
|
| 12 |
</div>
|
|
@@ -17,7 +17,7 @@
|
|
| 17 |
</div>
|
| 18 |
</header>
|
| 19 |
|
| 20 |
-
<section class="grid grid-cols-3 gap-4">
|
| 21 |
{% for sesion in sessions %}
|
| 22 |
<a href="{% url 'cata_system:detalles_sesion' session_code=sesion.codigo_sesion %}"
|
| 23 |
class="p-4 bg-gray-200 flex flex-row gap-2 justify-center items-center rounded-lg border-b-4 border-blue-500">
|
|
|
|
| 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="max-sm:w-full flex flex-col gap-8 bg-gray-400 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-gray-600 p-4 text-white rounded-xl flex-1">
|
| 11 |
<h1 class="font-bold text-2xl">Administra las<br>sesiones sensoriales</h1>
|
| 12 |
</div>
|
|
|
|
| 17 |
</div>
|
| 18 |
</header>
|
| 19 |
|
| 20 |
+
<section class="grid grid-cols-3 max-lg:grid-cols-2 max-sm:grid-cols-1 gap-4">
|
| 21 |
{% for sesion in sessions %}
|
| 22 |
<a href="{% url 'cata_system:detalles_sesion' session_code=sesion.codigo_sesion %}"
|
| 23 |
class="p-4 bg-gray-200 flex flex-row gap-2 justify-center items-center rounded-lg border-b-4 border-blue-500">
|