From f9545541d6fec7a4226e0a73da51a720f99b681b Mon Sep 17 00:00:00 2001 From: kek7198 Date: Fri, 10 Dec 2021 21:08:23 -0600 Subject: [PATCH] fix --- files/templates/Bets.html | 13 +++++++++++++ files/templates/Poll.html | 6 ++++++ files/templates/submission.html | 15 +++++++++------ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 files/templates/Poll.html diff --git a/files/templates/Bets.html b/files/templates/Bets.html index e69de29bb..7d128a30e 100644 --- a/files/templates/Bets.html +++ b/files/templates/Bets.html @@ -0,0 +1,13 @@ +{% for c in p.bet_options %} + + 200) or p.total_bet_voted(v) %}disabled{% endif %} type="radio" id="{{c.id}}" onchange="bet_vote('{{c.id}}')"> + + +
+{% endfor %} \ No newline at end of file diff --git a/files/templates/Poll.html b/files/templates/Poll.html new file mode 100644 index 000000000..392dab86e --- /dev/null +++ b/files/templates/Poll.html @@ -0,0 +1,6 @@ +{% for c in p.options %} +
+ + +
+{% endfor %} \ No newline at end of file diff --git a/files/templates/submission.html b/files/templates/submission.html index c99f50cc3..05afa06c9 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -429,12 +429,15 @@ {{p.realbody(v) | safe}} - {% for c in p.options %} -
- - -
- {% endfor %} + + {% if p.options %} + {% include "Poll.html" %} + {% endif %} + + + {% if p.bet_options %} + {% include "Bets.html" %} + {% endif %}