<% add_decidim_page_title(t(".title")) %>

<%= t(".title") %> <%= link_to t("actions.new_proposal_state", scope: "decidim.proposals"), new_proposal_state_path, class: "button button__sm button__secondary" if allowed_to? :create, :proposal_state %>

<% proposal_states.each do |state| %> <% end %>
<%= t("models.proposal_state.title", scope: "decidim.proposals") %> <%= t("models.proposal_state.css_class", scope: "decidim.proposals") %> <%= t("actions.title", scope: "decidim.proposals") %>
<%= translated_attribute(state.title) %> <%= decidim_sanitize_translated(state.token) %> <% if allowed_to? :update, :proposal_state, proposal_state: state %> <%= icon_link_to "pencil-line", edit_proposal_state_path(state), t("actions.edit_proposal_state", scope: "decidim.proposals"), class: "action-icon--edit-proposal" %> <% else %> <% end %> <% if allowed_to?(:destroy, :proposal_state, proposal_state: state) %> <%= icon_link_to "delete-bin-line", proposal_state_path(state), t("actions.destroy", scope: "decidim.proposals"), method: :delete, data: { confirm: t("actions.delete_proposal_state_confirm", scope: "decidim.proposals") }, class: "action-icon--delete-proposal" %> <% end %>
<%= decidim_paginate proposal_states %>