Sha256: 83db42a976346dc7c320417792eb36df25cb8750b72319deb177fd3791cdf839

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 KB

Contents

<%= content_tag :h3,
                t("edit.total_ballots", scope: "decidim.votings.polling_officer_zone.closures"),
                class: "h4" %>

<%= form.fields_for "[ballot_results]", form.object.ballot_results do |ballot_form| %>
  <%= content_tag :span,
                  "",
                  id: "closure_result-total-ballots",
                  hidden: true,
                  data: { total_ballots: ballot_form.object.total_ballots_count } %>

  <%= ballot_form.number_field(
                    :valid_ballots_count,
                    label: t("edit.total_valid_ballots", scope: "decidim.votings.polling_officer_zone.closures"),
                    min: 0
                  ) %>

  <%= ballot_form.number_field(
                    :blank_ballots_count,
                    label: t("edit.total_blank_ballots", scope: "decidim.votings.polling_officer_zone.closures"),
                    min: 0
                  ) %>

  <%= ballot_form.number_field(
                    :null_ballots_count,
                    label: t("edit.total_null_ballots", scope: "decidim.votings.polling_officer_zone.closures"),
                    min: 0
                  ) %>
<% 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/_ballot_results_form_fields.html.erb
decidim-elections-0.28.3 app/views/decidim/votings/polling_officer_zone/closures/_ballot_results_form_fields.html.erb
decidim-elections-0.28.2 app/views/decidim/votings/polling_officer_zone/closures/_ballot_results_form_fields.html.erb
decidim-elections-0.28.1 app/views/decidim/votings/polling_officer_zone/closures/_ballot_results_form_fields.html.erb
decidim-elections-0.28.0 app/views/decidim/votings/polling_officer_zone/closures/_ballot_results_form_fields.html.erb
decidim-elections-0.28.0.rc5 app/views/decidim/votings/polling_officer_zone/closures/_ballot_results_form_fields.html.erb
decidim-elections-0.28.0.rc4 app/views/decidim/votings/polling_officer_zone/closures/_ballot_results_form_fields.html.erb