14 lines
619 B
HTML
14 lines
619 B
HTML
<div class="md:inline-block px-4 py-2 md:py-3 bg-gray-100 border border-gray-300 rounded-md shadow-inset-t-white-10 select-none">
|
|
<ul class="flex flex-col space-y-2 mb-0">
|
|
{% for c in p.options %}
|
|
<li>
|
|
<input type="checkbox" id="{{c.id}}" name="option" {% if c.poll_voted(v) %}checked{% endif %} onchange="poll_vote('{{c.id}}')">
|
|
<label class="inline-block pl-2 text-black" for="{{c.id}}">{{c.body_html | safe}} -
|
|
<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
|
|
</a>
|
|
</label>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div> |