Use Semantic UI dropdowns for preferential voting

This commit is contained in:
Yingtong Li 2018-01-09 17:27:24 +08:00
parent a47164fc53
commit 66379909a1
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -47,7 +47,7 @@
{% macro printchoice(choice, ticket=None) %}
<div class="preferential-choice" data-choiceno="{{ flat_choices.indexOf(choice) }}">
<div class="number">
<select>
<select class="ui dropdown">
<option selected></option>
{% for i in range(flat_choices|length) %}
<option>{{ i + 1 }}</option>
@ -78,7 +78,7 @@
{# Ticket #}
<div class="preferential-choice ticket">
<div class="number">
<select>
<select class="ui dropdown">
<option selected></option>
{% for i in range(flat_choices|length) %}
<option>{{ i + 1 }}</option>