Sha256: 4e08961177604f664a0691eab584ea441fdf58847b917fc686fd480eecc5736d

Contents?: true

Size: 448 Bytes

Versions: 7

Compression:

Stored size: 448 Bytes

Contents

<% form.object.answer_results.each do |answer| %>
  <% next unless question.id == answer.question_id %>

  <%= form.fields_for "[answer_results][]", answer do |answer_form| %>
    <%= answer_form.hidden_field :question_id %>
    <%= answer_form.hidden_field :id %>
    <%= answer_form.number_field(:value,
                                 label: translated_attribute(answer.title),
                                 min: 0) %>
  <% 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/_answer_results_form_fields.html.erb
decidim-elections-0.28.3 app/views/decidim/votings/polling_officer_zone/closures/_answer_results_form_fields.html.erb
decidim-elections-0.28.2 app/views/decidim/votings/polling_officer_zone/closures/_answer_results_form_fields.html.erb
decidim-elections-0.28.1 app/views/decidim/votings/polling_officer_zone/closures/_answer_results_form_fields.html.erb
decidim-elections-0.28.0 app/views/decidim/votings/polling_officer_zone/closures/_answer_results_form_fields.html.erb
decidim-elections-0.28.0.rc5 app/views/decidim/votings/polling_officer_zone/closures/_answer_results_form_fields.html.erb
decidim-elections-0.28.0.rc4 app/views/decidim/votings/polling_officer_zone/closures/_answer_results_form_fields.html.erb