<%= translated_attribute(question.title) %>

<%= content_tag(:p, t("decidim.elections.votes.new.answer_choices", choices: question.max_selections)) if question.max_selections > 1 %>
<% ordered_answers(question).each do |answer| %> <%= label_tag nil, data: { "disabled-by": "#check-nota" }, class: "evote__check evote__card" do %> <% if question.max_selections == 1 %> <%= radio_button_tag "#{question.id}", answer.id, false, class: "answer_input" %> <% else %> <%= check_box_tag "#{question.id}", answer.id, false, class: "answer_input" %> <% end %> <%= translated_attribute(answer.title) %> <% if more_information?(answer) %> <% end %> <% end %> <%= render("election_votes_modal", answer: answer) if more_information?(answer) %> <% end %> <% if question.min_selections == 0 %> <%= label_tag nil, nil, class: "evote__check evote__card" do %> <% if question.max_selections == 1 %> <%= radio_button_tag "#{question.id}", "nota_input_#{question.id}", false, class: "nota_input" %> <% else %> <%= check_box_tag "#{question.id}", "nota_input_#{question.id}", false, { class: "nota_input", id: "check-nota", data: { "disable-check": "" } } %> <% end %> <%= t("decidim.elections.votes.new.nota_option") %> <% end %> <% end %>
<% if question.max_selections > 1 %>
<%= t("votes.new.selections", scope:"decidim.elections", selected: "", max_selections: "#{question.max_selections}").html_safe %>
<% end %>