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

<%= t "decidim.admin.titles.assemblies_types" %> <%= link_to t("actions.new_assembly_type", scope: "decidim.admin"), [:new, :assemblies_type], class: "button tiny button--title" if allowed_to? :create, :assembly_type %>

<% available_assemblies_types.each do |assembly_type| %> <% end %> <% end %>
<%= t("models.assemblies_types.fields.title", scope: "decidim.admin") %> <%= t("models.assemblies_types.fields.created_at", scope: "decidim.admin") %>
<% if allowed_to? :update, :assembly_type, assembly_type: assembly_type %> <%= link_to translated_attribute(assembly_type.title), edit_assemblies_type_path(assembly_type) %> <% else %> <%= translated_attribute assembly_type.title %><%= l assembly_type.created_at, format: :short %> <% if allowed_to? :update, :assembly_type, assembly_type: assembly_type %> <%= icon_link_to "pencil", edit_assemblies_type_path(assembly_type), t("actions.edit", scope: "decidim.admin"), class: "action-icon--new" %> <% end %> <% if allowed_to? :destroy, :assembly_type, assembly_type: assembly_type %> <%= icon_link_to "circle-x", assemblies_type_path(assembly_type), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %>