<% content_for :sidebar_menu_nav do %> <%= sidebar_menu(:admin_participatory_processes_menu).render %> <% end %>
<%= link_to t("decidim.admin.titles.participatory_process_groups"), decidim_participatory_processes.participatory_processes_path, target: "_blank" %>

<%= t "decidim.admin.titles.participatory_process_groups" %> <%= link_to t("actions.new_process_group", scope: "decidim.admin"), [:new, :participatory_process_group], class: "button tiny button--title new" if allowed_to? :create, :process_group %>

<% collection.each do |group| %> <% end %>
<%= t("models.participatory_process_group.fields.title", scope: "decidim.admin") %>
<% if group.promoted? %> "> <%= icon "star" %> <% end %> <% if allowed_to? :update, :process_group, process_group: group %> <%= link_to translated_attribute(group.title), [:edit, group] %>
<% else %> <%= translated_attribute(group.title) %> <% end %>
<% if allowed_to? :update, :process_group, process_group: group %> <%= icon_link_to "pencil", [:edit, group], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %> <% else %> <% end %> <%= icon_link_to "eye", decidim_participatory_processes.participatory_process_group_path(group), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %> <% if allowed_to? :destroy, :process_group, process_group: group %> <%= icon_link_to "circle-x", group, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% else %> <% end %>