Sha256: 6d8f42b86f48d2c8ce26afc33822770514c15011aaae9e896cfc1699e21fc1e5

Contents?: true

Size: 1.88 KB

Versions: 31

Compression:

Stored size: 1.88 KB

Contents

<div class="card" id="monitoring_committee_polling_station_closures">
  <div class="card-divider">
    <h2 class="card-title">
      <%= t(".title", election_title: translated_attribute(election.title)).html_safe %>
    </h2>
  </div>

  <div class="card-section">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <tr>
            <th><%= t(".election_totals") %></th>
            <th><%= t(".polling_stations") %></th>
            <th><%= t(".bulletin_board") %></th>
            <th><%= t(".totals") %></th>
                <th></th>
          </tr>
        </thead>
        <% groups.each do |group| %>
          <tbody class="question_<%= group[:question]&.id %>">
            <% if group[:question].present? %>
              <tr>
                <th colspan="4" class="text-left"><%= translated_attribute(group[:question].title) %></th>
                <th></th>
              </tr>
            <% end %>
            <% group[:results].each do |result| %>
              <tr class="result <%= result[:answer].present? ? "answer answer_#{result[:answer].id}" : "not_answer #{result[:result_type]}" %>">
                <td>
                  <% if result[:answer].present? %>
                    <%= translated_attribute(result[:answer].title) %>
                  <% else %>
                    <%= t(".result_types.#{result[:result_type]}") %>
                  <% end %>
                </td>
                <td><%= result[:polling_station] %></td>
                <td><%= result[:bulletin_board] %></td>
                <td><%= result[:value] %></td>
                <td>
                  <% if result[:answer]&.selected %>
                    <span class="text-success"><%= t(".selected") %></td>
                  <% end %>
                </td>
              </tr>
            <% end %>
          </tbody>
        <% end %>
      </table>
    </div>
  </div>
</div>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-elections-0.27.9 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.8 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.7 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.6 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.26.10 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.26.9 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.5 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.26.8 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.4 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.3 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.26.7 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.26.5 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.2 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.1 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.26.4 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.0 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.26.3 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.0.rc2 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.27.0.rc1 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb
decidim-elections-0.26.2 app/views/decidim/votings/admin/monitoring_committee_election_results/_results.html.erb