diff --git a/choose/templates/choose.html b/choose/templates/choose.html index 4f0f5b7..bc19007 100644 --- a/choose/templates/choose.html +++ b/choose/templates/choose.html @@ -108,7 +108,7 @@ function sum_price() { s = 0 for (let tea in choice) { - s += choice[tea] / 50 * parseInt(a[tea].price) + s += choice[tea] / a[tea].ms[1] * parseInt(a[tea].price) } const butt = document.getElementById('confirm_button'); const sum_h = document.getElementById('sum_h'); diff --git a/choose/templates/vote.html b/choose/templates/vote.html index e11f92f..86aa778 100644 --- a/choose/templates/vote.html +++ b/choose/templates/vote.html @@ -16,6 +16,7 @@ Выбрали Проголосовали Всего голосов + Цена {% for choice in choices %} @@ -44,6 +45,13 @@ {{ choice.votes }} + + {{ choice.sum }} +
+ С человека: +
+ {{ choice.sum_per_usr }} + {% if choice.class == 'choice' %}