diff --git a/choose/templates/choose.html b/choose/templates/choose.html index 229473f..060789e 100644 --- a/choose/templates/choose.html +++ b/choose/templates/choose.html @@ -126,7 +126,8 @@ ); fetch(request).then((response) => response.json()) .then((data) => { - console.log(data); + if (data.response == 'ok'){window.location.replace("/");} + else {window.alert(data.response)} }) } diff --git a/choose/templates/vote.html b/choose/templates/vote.html index bea3f7d..e5aaf31 100644 --- a/choose/templates/vote.html +++ b/choose/templates/vote.html @@ -5,7 +5,49 @@
| Список чаев | +Выбрали | +Проголосовали | ++ |
|---|---|---|---|
+
|
+
+
|
+
+
|
+ + {% if choice.class == 'choice' %} + + {% endif %} + {% if choice.class == 'my_choice' %} + + {% endif %} + | +