forked from rDrama/rDrama
16 lines
624 B
HTML
16 lines
624 B
HTML
<ul class="mb-0 list-none">
|
|
{% for c in p.bet_options %}
|
|
<li>
|
|
<span id="span-{{c.id}}" {% if c.poll_voted(v) %}class="bet_voted"{% endif %}>
|
|
<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}} -
|
|
<a href="/votes?link=t3_{{c.id}}">
|
|
<span id="bet-{{c.id}}">{{c.upvotes}}</span> bets
|
|
</a>
|
|
{% if not p.total_bet_voted(v) %} (cost of entry: 200 coins){% endif %}
|
|
</label>
|
|
</li>
|
|
{% endfor %}
|
|
</ul> |