forked from rDrama/rDrama
23 lines
875 B
HTML
23 lines
875 B
HTML
<ul class="mb-0 list-none">
|
|
{% for c in p.bet_options %}
|
|
<li class="group flex items-center space-x-2">
|
|
<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>
|
|
{% if v and v.admin_level > 2 %}
|
|
<div class="hidden group-hover:block">
|
|
<button class="btn btn-gray" onclick="post_toast('/distribute/{{c.id}}')">
|
|
Declare winner
|
|
</button>
|
|
</div>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul> |