forked from rDrama/rDrama
fix
parent
9e28a33c89
commit
76981baebb
|
@ -1,13 +1,16 @@
|
||||||
{% for c in p.bet_options %}
|
<ul class="mb-0 list-none">
|
||||||
<span id="span-{{c.id}}" {% if c.poll_voted(v) %}class="bet_voted"{% endif %}>
|
{% for c in p.bet_options %}
|
||||||
<input {% if c.poll_voted(v) %}checked{% endif %} class="bet" {% if not (v and v.coins > 200) or p.total_bet_voted(v) %}disabled{% endif %} type="radio" id="{{c.id}}" onchange="bet_vote('{{c.id}}')">
|
<li>
|
||||||
</span>
|
<span id="span-{{c.id}}" {% if c.poll_voted(v) %}class="bet_voted"{% endif %}>
|
||||||
<label for="{{c.id}}">
|
<input type="radio" id="{{c.id}}" {% if c.poll_voted(v) %}checked{% endif %} class="bet" onchange="bet_vote('{{c.id}}')" {% if not (v and v.coins > 200) or p.total_bet_voted(v) %}disabled{% endif %}>
|
||||||
|
</span>
|
||||||
|
<label for="{{c.id}}">
|
||||||
{{c.body_html | safe}} -
|
{{c.body_html | safe}} -
|
||||||
<a href="/votes?link=t3_{{c.id}}">
|
<a href="/votes?link=t3_{{c.id}}">
|
||||||
<span id="bet-{{c.id}}">{{c.upvotes}}</span> bets
|
<span id="bet-{{c.id}}">{{c.upvotes}}</span> bets
|
||||||
</a>
|
</a>
|
||||||
{% if not p.total_bet_voted(v) %} (cost of entry: 200 coins){% endif %}
|
{% if not p.total_bet_voted(v) %} (cost of entry: 200 coins){% endif %}
|
||||||
</label>
|
</label>
|
||||||
<br>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</ul>
|
|
@ -2,11 +2,13 @@
|
||||||
<ul class="flex flex-col space-y-2 mb-0">
|
<ul class="flex flex-col space-y-2 mb-0">
|
||||||
{% for c in p.options %}
|
{% for c in p.options %}
|
||||||
<li>
|
<li>
|
||||||
<input type="checkbox" id="{{c.id}}" name="option" {% if c.poll_voted(v) %}checked{% endif %} onchange="poll_vote('{{c.id}}')">
|
<input type="checkbox" id="{{c.id}}" name="option" {% if c.poll_voted(v) %}checked{% endif %} onchange="{% if v %}poll_vote('{{c.id}}'){% else %}poll_vote_no_v(){% endif %}">
|
||||||
<label class="inline-block pl-2 text-black" for="{{c.id}}">{{c.body_html | safe}} -
|
<label class="inline-block pl-2 text-black" for="{{c.id}}">{{c.body_html | safe}}
|
||||||
|
<span class="presult {% if not p.total_poll_voted(v) %}hidden{% endif %}"> -
|
||||||
<a href="/votes?link=t3_{{c.id}}" class="font-bold text-gray-600 hover:text-red-600">
|
<a href="/votes?link=t3_{{c.id}}" class="font-bold text-gray-600 hover:text-red-600">
|
||||||
<span id="poll-{{c.id}}">{{c.upvotes}}</span> votes
|
<span id="poll-{{c.id}}">{{c.upvotes}}</span> votes
|
||||||
</a>
|
</a>
|
||||||
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue