chartManD commited on
Commit
e1fc7f3
·
1 Parent(s): ff7afc7

Ajuste en las escalas para las mas grandes, convencionales, escala continua y estructurada.

Browse files
tecnicas/templates/tecnicas/forms_tester/convencional.html CHANGED
@@ -27,26 +27,19 @@
27
  @media (width < 40rem) {
28
  .container-forms {
29
  width: inherit;
30
-
31
- }
32
-
33
- .container-input {
34
- overflow-x: scroll;
35
  }
36
  }
37
  </style>
38
  {% endblock %}
39
 
40
  {% block content %}
41
- <article class="w-full flex flex-col justify-center items-center bg-gray-600 mt-10 mb-10 max-sm:">
42
- <article class="flex flex-col gap-8 bg-gray-400 p-10 max-sm:py-10 max-sm:px-3 rounded container-forms">
43
  <header class="text-center flex-row w-full items-stretch flex justify-around flex-wrap gap-2">
44
- <h1 class="text-white rounded font-bold text-2xl bg-gray-600 p-4 flex-1">
45
  Sesión usando <br>técnica Convencional
46
  </h1>
47
- <button
48
- class="text-lg font-bold tracking-wider p-2 px-8 border-b-4 active:border-b-0 active:border-t-2 active:border-blue-500 border-blue-800 transition-all rounded-xl bg-blue-500 text-gray-300"
49
- onclick="exit_sesion('form-actions')">
50
  Salir de la sesión
51
  </button>
52
  </header>
@@ -68,13 +61,13 @@
68
  {% endif %}
69
 
70
  <article class="rounded flex flex-col gap-4">
71
- <section class="flex items-center justify-center bg-gray-200 p-2 rounded-lg">
72
  <p class="text-lg font-medium text-center">
73
  {{ session.tecnica.instrucciones }}
74
  </p>
75
  </section>
76
  <section class="flex items-center justify-center flex-wrap gap-4">
77
- <div class="bg-gray-200 p-2 rounded-lg flex-1">
78
  <p class="text-lg font-bold text-center">
79
  Producto:
80
  </p>
@@ -83,7 +76,7 @@
83
  <span class="hidden id-product">{{ product.id }}</span>
84
  </p>
85
  </div>
86
- <div class="bg-gray-200 p-2 rounded-lg flex-1">
87
  <p class="text-lg font-bold text-center">
88
  Repetición:
89
  </p>
@@ -101,23 +94,22 @@
101
  </article>
102
 
103
  <article
104
- class="scales-container [&>*:not(:last-child)]:mb-5 min-lg:grid min-lg:items-start grid-cols-2 gap-3 flex flex-col items-center justify-center">
105
  {% if type_scale == "continua" %}
106
  {% for word in words %}
107
  <form action="" method="post" class="form-rating-{{word}} w-full">
108
  {% csrf_token %}
109
- <article class="container-input w-full">
110
- <article class="bg-gray-200 p-6 rounded-lg mb-3 w-fit">
111
  <label for="id-range-word-{{word}}"
112
  class="text-xl font-bold tracking-wide block mb-6 first-letter:uppercase">{{ word }}</label>
113
 
114
  <span class="hidden id-word">{{ word.id }}</span>
115
 
116
  <section class="block">
117
- <div class="relative">
118
- <input id="id-range-word-{{word}}" type="range" min="0" max="1000" value="500"
119
- name="rating-word"
120
- class="h-2 bg-gray-400 rounded-lg appearance-none cursor-pointer slider"
121
  style="width: {{scale.longitud}}cm;">
122
 
123
  <div
@@ -156,15 +148,72 @@
156
  <article class="flex flex-col justify-center gap-2 items-end actions-{{word}}">
157
  <section class="flex justify-end items-center gap-2 btns-container">
158
  <button type="button" onclick="checkSendRating('{{word}}')"
159
- class="ct-btn-check-{{word}} text-lg tracking-wider font-medium p-2 px-4 border-b-2 active:border-b-0 active:border-t-2 active:border-blue-500 border-blue-800 transition-all rounded-xl bg-blue-500 text-white w-fit disabled:bg-amber-600">
160
  ¿Guardar calificación?
161
  </button>
162
  <button type="button" onclick="sendRating('{{word}}')"
163
- class="ct-btn-submit-{{word}} text-lg tracking-wider font-medium p-2 px-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-500 text-white w-fit disabled:bg-amber-600 hidden">
164
  Estoy seguro
165
  </button>
166
  <button type="button" onclick="cancelSendRating('{{word}}')"
167
- class="ct-btn-cancel-{{word}} text-lg tracking-wider font-medium p-2 px-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-500 text-white w-fit disabled:bg-amber-600 hidden">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  Cancelar
169
  </button>
170
  </section>
 
27
  @media (width < 40rem) {
28
  .container-forms {
29
  width: inherit;
 
 
 
 
 
30
  }
31
  }
32
  </style>
33
  {% endblock %}
34
 
35
  {% block content %}
36
+ <article class="cts-container-main">
37
+ <article class="cts-wrap-content text-black">
38
  <header class="text-center flex-row w-full items-stretch flex justify-around flex-wrap gap-2">
39
+ <h1 class="rounded font-bold text-2xl bg-surface-ligt p-4 flex-1">
40
  Sesión usando <br>técnica Convencional
41
  </h1>
42
+ <button class="cts-btn-general cts-btn-error btn-push" onclick="exit_sesion('form-actions')">
 
 
43
  Salir de la sesión
44
  </button>
45
  </header>
 
61
  {% endif %}
62
 
63
  <article class="rounded flex flex-col gap-4">
64
+ <section class="flex items-center justify-center bg-surface-ligt p-2 rounded-lg">
65
  <p class="text-lg font-medium text-center">
66
  {{ session.tecnica.instrucciones }}
67
  </p>
68
  </section>
69
  <section class="flex items-center justify-center flex-wrap gap-4">
70
+ <div class="bg-surface-ligt p-2 rounded-lg flex-1">
71
  <p class="text-lg font-bold text-center">
72
  Producto:
73
  </p>
 
76
  <span class="hidden id-product">{{ product.id }}</span>
77
  </p>
78
  </div>
79
+ <div class="bg-surface-ligt p-2 rounded-lg flex-1">
80
  <p class="text-lg font-bold text-center">
81
  Repetición:
82
  </p>
 
94
  </article>
95
 
96
  <article
97
+ class="scales-container [&>*:not(:last-child)]:mb-5 min-lg:grid min-lg:items-start grid-cols-2 gap-3 justify-center items-center">
98
  {% if type_scale == "continua" %}
99
  {% for word in words %}
100
  <form action="" method="post" class="form-rating-{{word}} w-full">
101
  {% csrf_token %}
102
+ <article class="overflow-x-scroll w-full">
103
+ <article class="bg-surface-card p-6 rounded-lg mb-3 w-fit">
104
  <label for="id-range-word-{{word}}"
105
  class="text-xl font-bold tracking-wide block mb-6 first-letter:uppercase">{{ word }}</label>
106
 
107
  <span class="hidden id-word">{{ word.id }}</span>
108
 
109
  <section class="block">
110
+ <div class="relative mx-6">
111
+ <input type="range" type="range" min="0" max="1000" value="500" name="rating-word"
112
+ class="range range-md text-blue-400 [--range-bg:orange] [--range-thumb:blue] [--range-fill:0]"
 
113
  style="width: {{scale.longitud}}cm;">
114
 
115
  <div
 
148
  <article class="flex flex-col justify-center gap-2 items-end actions-{{word}}">
149
  <section class="flex justify-end items-center gap-2 btns-container">
150
  <button type="button" onclick="checkSendRating('{{word}}')"
151
+ class="ct-btn-check-{{word}} cts-btn-general-compress py-2 px-4 cts-btn-secondary btn-push">
152
  ¿Guardar calificación?
153
  </button>
154
  <button type="button" onclick="sendRating('{{word}}')"
155
+ class="ct-btn-submit-{{word}} cts-btn-general-compress py-2 px-4 cts-btn-primary btn-push hidden">
156
  Estoy seguro
157
  </button>
158
  <button type="button" onclick="cancelSendRating('{{word}}')"
159
+ class="ct-btn-cancel-{{word}} cts-btn-general-compress py-2 px-4 cts-btn-error btn-push hidden">
160
+ Cancelar
161
+ </button>
162
+ </section>
163
+ </article>
164
+ </form>
165
+ {% endfor %}
166
+ {% elif type_scale == "estructurada" %}
167
+ {% for word in words %}
168
+ <form action="" method="post" class="form-rating-{{ word }} w-full">
169
+ {% csrf_token %}
170
+ <article class="overflow-x-scroll w-full">
171
+ <article class="bg-surface-card p-6 rounded-lg mb-3 w-fit">
172
+ <label for="id-scale-word-{{ word }}"
173
+ class="text-xl font-bold tracking-wide block mb-6 first-letter:uppercase">{{ word }}</label>
174
+ <span class="hidden id-word">{{ word.id }}</span>
175
+
176
+ <section>
177
+ <div class="w-full min-w-xs">
178
+ <div class="relative mx-6">
179
+ <input type="range" min="1" max="{{scale.longitud}}" step="1"
180
+ class="w-full range range-md text-blue-400 [--range-bg:orange] [--range-thumb:blue] [--range-fill:0] z-5">
181
+ <div
182
+ class="absolute top-0 left-0 w-full h-full z-10 flex justify-between pointer-events-none">
183
+ {% for tag in tags %}
184
+ <div class="w-0.5 transform -translate-x-1/2 h-full bg-red-500">
185
+ </div>
186
+ {% endfor %}
187
+ </div>
188
+ </div>
189
+
190
+ <div class="flex justify-between mt-4 text-xs gap-1">
191
+ {% for tag in tags %}
192
+ <div class="flex items-center justify-center text-center w-[70px]">
193
+ <span
194
+ class="text-xs font-medium text-gray-700 break-words first-letter:capitalize">
195
+ {{ tag.id_etiqueta }}
196
+ </span>
197
+ </div>
198
+ {% endfor %}
199
+ </div>
200
+ </div>
201
+ </section>
202
+ </article>
203
+ </article>
204
+
205
+ <article class="flex flex-col justify-center gap-2 items-end actions-{{ word }}">
206
+ <section class="flex justify-end items-center gap-2 btns-container">
207
+ <button type="button" onclick="checkSendRating('{{ word }}')"
208
+ class="ct-btn-check-{{ word }} cts-btn-general-compress py-2 px-4 cts-btn-secondary btn-push">
209
+ ¿Guardar calificación?
210
+ </button>
211
+ <button type="button" onclick="sendRating('{{ word }}')"
212
+ class="ct-btn-submit-{{ word }} cts-btn-general-compress py-2 px-4 cts-btn-primary btn-push hidden">
213
+ Estoy seguro
214
+ </button>
215
+ <button type="button" onclick="cancelSendRating('{{ word }}')"
216
+ class="ct-btn-cancel-{{ word }} cts-btn-general-compress py-2 px-4 cts-btn-error btn-push hidden">
217
  Cancelar
218
  </button>
219
  </section>
tecnicas/templates/tecnicas/forms_tester/main_tester.html CHANGED
@@ -4,16 +4,16 @@
4
  {% block title %}Detalles Sesion{% 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">
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
  Panel principal de Catadores
12
  </h1>
13
  </header>
14
 
15
  <article>
16
- <p class="text-2xl font-medium text-center bg-gray-200 p-4 rounded-lg">
17
  Información sobre la sesión en la que participa
18
  </p>
19
  </article>
@@ -41,7 +41,7 @@
41
  <hr>
42
 
43
  <article
44
- class="text-white rounded-xl grid grid-cols-1 gap-3 text-center *:bg-gray-500 *:flex *:flex-wrap *:items-center *:justify-center *:gap-x-2 *:p-4 *:rounded-2xl">
45
  {% if session %}
46
  <section>
47
  <p class="text-xl font-bold">
@@ -105,7 +105,7 @@
105
  </button>
106
  {% else %}
107
  <button
108
- 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"
109
  onclick="startTest()">
110
  Iniciar técnica
111
  <figure class="w-10">
@@ -114,7 +114,7 @@
114
  </button>
115
  {% endif %}
116
  <button
117
- 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">
118
  Salir se la sesión
119
  <figure class="w-10">
120
  <img src="{% static 'img/exit.svg' %}" alt="bote de basura" class="invert">
 
4
  {% block title %}Detalles Sesion{% endblock %}
5
 
6
  {% block content %}
7
+ <article class="cts-container-main">
8
+ <article class="cts-wrap-content text-black">
9
  <header class="text-center flex-row w-full flex justify-around items-center flex-wrap gap-10">
10
+ <h1 class="rounded-xl font-bold text-2xl bg-surface-ligt p-4 flex-1">
11
  Panel principal de Catadores
12
  </h1>
13
  </header>
14
 
15
  <article>
16
+ <p class="text-2xl font-medium text-center bg-surface-sweet p-4 rounded-lg">
17
  Información sobre la sesión en la que participa
18
  </p>
19
  </article>
 
41
  <hr>
42
 
43
  <article
44
+ class="rounded-xl grid grid-cols-1 gap-3 text-center *:bg-surface-card *:flex *:flex-wrap *:items-center *:justify-center *:gap-x-2 *:p-4 *:rounded-2xl">
45
  {% if session %}
46
  <section>
47
  <p class="text-xl font-bold">
 
105
  </button>
106
  {% else %}
107
  <button
108
+ class="ct-btn-start-repition flex-1 uppercase text-lg tracking-wider cts-btn-general cts-btn-primary btn-push flex flex-col justify-center items-center gap-2"
109
  onclick="startTest()">
110
  Iniciar técnica
111
  <figure class="w-10">
 
114
  </button>
115
  {% endif %}
116
  <button
117
+ class="flex-1 uppercase text-lg tracking-wider cts-btn-general cts-btn-error btn-push flex flex-col justify-center items-center gap-2">
118
  Salir se la sesión
119
  <figure class="w-10">
120
  <img src="{% static 'img/exit.svg' %}" alt="bote de basura" class="invert">
theme/static_src/src/styles.css CHANGED
@@ -14,6 +14,10 @@
14
  @apply font-bold rounded-lg text-xl p-4 text-center;
15
  }
16
 
 
 
 
 
17
  .cts-btn-primary {
18
  @apply text-white bg-btn-primary border-green-800;
19
  }
 
14
  @apply font-bold rounded-lg text-xl p-4 text-center;
15
  }
16
 
17
+ .cts-btn-general-compress {
18
+ @apply font-bold rounded-lg text-xl text-center;
19
+ }
20
+
21
  .cts-btn-primary {
22
  @apply text-white bg-btn-primary border-green-800;
23
  }