Sha256: f15773c45e5d9e170bf73f8a5eadd9aea6bf2e797cd40574f6442499556f9c40

Contents?: true

Size: 628 Bytes

Versions: 7

Compression:

Stored size: 628 Bytes

Contents

<% form.object.question_results.each do |question| %>
  <%= content_tag :h3,
                  translated_attribute(question.title),
                  class: "h4" %>

  <%= render partial: "answer_results_form_fields", locals: { form:, question: } %>

  <% if question.nota_option? %>
    <%= form.fields_for "[question_results][]", question do |question_form| %>
      <%= question_form.hidden_field :id %>

      <%= question_form.number_field(:value,
                                     label: t("decidim.elections.votes.new.nota_option"),
                                     min: 0) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-elections-0.28.4 app/views/decidim/votings/polling_officer_zone/closures/_question_results_form_fields.html.erb
decidim-elections-0.28.3 app/views/decidim/votings/polling_officer_zone/closures/_question_results_form_fields.html.erb
decidim-elections-0.28.2 app/views/decidim/votings/polling_officer_zone/closures/_question_results_form_fields.html.erb
decidim-elections-0.28.1 app/views/decidim/votings/polling_officer_zone/closures/_question_results_form_fields.html.erb
decidim-elections-0.28.0 app/views/decidim/votings/polling_officer_zone/closures/_question_results_form_fields.html.erb
decidim-elections-0.28.0.rc5 app/views/decidim/votings/polling_officer_zone/closures/_question_results_form_fields.html.erb
decidim-elections-0.28.0.rc4 app/views/decidim/votings/polling_officer_zone/closures/_question_results_form_fields.html.erb