<% add_decidim_page_title(t("decidim.admin.titles.initiatives_types")) %>

<%= t "decidim.admin.titles.initiatives_types" %> <%= link_to t("actions.new_initiative_type", scope: "decidim.admin"), [:new, :initiatives_type], class: "button tiny button--title" if allowed_to? :create, :initiative_type %>

<% @initiatives_types.each do |initiative_type| %> <% end %> <% end %>
<%= t("models.initiatives_types.fields.title", scope: "decidim.admin") %> <%= t("models.initiatives_types.fields.created_at", scope: "decidim.admin") %> <%= t("initiatives_type.actions.title", scope: "decidim.resources") %>
<% if allowed_to? :update, :initiative_type, initiative_type: initiative_type %> <%= link_to translated_attribute(initiative_type.title), edit_initiatives_type_path(initiative_type) %> <% else %> <%= translated_attribute initiative_type.title %><%= l initiative_type.created_at, format: :short %> <% if allowed_to? :update, :initiative_type, initiative_type: initiative_type %> <%= icon_link_to "pencil", edit_initiatives_type_path(initiative_type), t("actions.configure", scope: "decidim.admin"), class: "action-icon--edit" %> <% else %> <% end %> <%= free_resource_permissions_link(initiative_type) %> <% if allowed_to? :destroy, :initiative_type, initiative_type: initiative_type %> <%= icon_link_to "circle-x", initiative_type, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% else %> <% end %>