Spaces:
Sleeping
Sleeping
Calificar Convencional Escalas se manda producto
Browse files
tecnicas/templates/tecnicas/forms_tester/convencional.html
CHANGED
|
@@ -27,6 +27,12 @@
|
|
| 27 |
</p>
|
| 28 |
</article>
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
<article>
|
| 31 |
<p class="text-lg font-medium text-center bg-gray-200 p-4 rounded">
|
| 32 |
{{ scale }}
|
|
|
|
| 27 |
</p>
|
| 28 |
</article>
|
| 29 |
|
| 30 |
+
<article>
|
| 31 |
+
<p class="text-lg font-medium text-center bg-gray-200 p-4 rounded">
|
| 32 |
+
{{ product }}
|
| 33 |
+
</p>
|
| 34 |
+
</article>
|
| 35 |
+
|
| 36 |
<article>
|
| 37 |
<p class="text-lg font-medium text-center bg-gray-200 p-4 rounded">
|
| 38 |
{{ scale }}
|
tecnicas/views/tester_forms/convencional_scales.py
CHANGED
|
@@ -72,6 +72,8 @@ def convencionalScales(req: HttpRequest):
|
|
| 72 |
if isinstance(next_position, list):
|
| 73 |
next_position = next_position[0]
|
| 74 |
|
|
|
|
|
|
|
| 75 |
ratings_product = CalificacionController.getRatings(
|
| 76 |
technique=technique,
|
| 77 |
product=next_position.id_producto,
|
|
|
|
| 72 |
if isinstance(next_position, list):
|
| 73 |
next_position = next_position[0]
|
| 74 |
|
| 75 |
+
context["product"] = next_position.id_producto
|
| 76 |
+
|
| 77 |
ratings_product = CalificacionController.getRatings(
|
| 78 |
technique=technique,
|
| 79 |
product=next_position.id_producto,
|