<%= t "decidim.term_customizer.admin.titles.translation_sets" %>
<% if allowed_to? :create, :translation_set %> <%= link_to t("actions.new_translation_set", scope: "decidim.term_customizer.admin"), new_translation_set_path, class: "button tiny button--simple" %> <% end %> <% if allowed_to? :update, :organization %> <%= link_to t("actions.clear_cache", scope: "decidim.term_customizer.admin"), clear_caches_path, method: :delete, class: "button tiny button--simple", data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %>

<% if @sets.count > 0 %>
<% @sets.each do |set| %> <% end %>
<%= t("models.translation_sets.fields.name", scope: "decidim.term_customizer.admin") %>
<% if allowed_to? :read, :translation %> <%= link_to translated_attribute(set.name), translation_set_translations_path(set) %>
<% else %> <%= translated_attribute(set.name) %> <% end %>
<% if allowed_to? :update, :translation_set, translation_set: set %> <%= icon_link_to "pencil", edit_translation_set_path(set), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %> <% end %> <% if allowed_to? :destroy, :translation_set, translation_set: set %> <%= icon_link_to "circle-x", translation_set_path(set), t("actions.destroy", scope: "decidim.admin"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %>
<% else %>
<%= t ".no_records_html", new_set_link: new_translation_set_path, button_name: t("decidim.term_customizer.admin.actions.new_translation_set") %>
<% end %>