<% add_decidim_page_title(t(".title")) %>
<%= icon "info" %> <%= t("explanation_callout", scope: "decidim.votings.admin.ballot_styles.index") %>

<%= t(".title") %> <%= link_to t("actions.new", scope: "decidim.votings.admin.ballot_styles.index", name: t("models.ballot_style.name", scope: "decidim.votings.admin")), new_voting_ballot_style_path(current_voting), class: "button tiny button--title" if allowed_to? :create, :ballot_style, voting: current_voting %>

<% voting_elections.each do |election| %> <% end %> <% voting_elections.each do |election| %> <% election.questions.each do |question| %> <% end %> <% end %> <% ballot_styles.each do |ballot_style| %> <% voting_elections.each do |election| %> <% election.questions.each do |question| %> <% icon_name, icon_style = ballot_style.questions.include?(question) ? ["check", "ballot-style__question--checked"] : ["x", "ballot-style__question--unchecked"] %> <% end %> <% end %> <% end %>
<%= t("code", scope: "decidim.votings.admin.models.ballot_style.fields") %><%= translated_attribute(election.title) %><%= t("associated_census_data", scope: "decidim.votings.admin.ballot_styles.index") %> <%= t("actions.title", scope: "decidim.votings.admin.ballot_styles.index") %>
<%= translated_attribute(question.title) %>
<%= ballot_style.code %> <%= icon icon_name, class: icon_style %> <%= ballot_style.census_data.count %> <% if allowed_to? :update, :ballot_style, ballot_style: ballot_style, voting: current_voting %> <%= icon_link_to "pencil", edit_voting_ballot_style_path(current_voting, ballot_style), t("actions.edit", scope: "decidim.votings.admin.ballot_styles.index"), class: "action-icon--edit" %> <% else %> <%= icon "pencil", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.edit", scope: "decidim.votings.admin.ballot_styles.index") %> <% end %> <% if allowed_to? :delete, :ballot_style, ballot_style: ballot_style, voting: current_voting %> <%= icon_link_to "trash", voting_ballot_style_path(current_voting, ballot_style), t("actions.destroy", scope: "decidim.votings.admin.ballot_styles.index"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.votings.admin.ballot_styles.index") } %> <% else %> <%= icon "trash", class: "action-icon action-icon--disabled", role: "img", aria_label: t("actions.destroy", scope: "decidim.votings.admin.ballot_styles.index") %> <% end %>
<%= stylesheet_pack_tag "decidim_votings_admin_votings", media: "all" %>