<%= link_to t("decidim.term_customizer.menu.term_customizer"), translation_sets_path %> > <%= translated_attribute(set.name) %> ">
<%= render partial: "decidim/term_customizer/admin/translations/bulk_actions/dropdown" %>
<% if allowed_to? :create, :translation %> <%= link_to t("actions.add_multiple_translations", scope: "decidim.term_customizer.admin"), translation_set_add_translations_path(set), class: "button tiny button--simple" %> <%= link_to t("actions.new_translation", scope: "decidim.term_customizer.admin"), new_translation_set_translation_path(set), class: "button tiny button--simple" %> <% end %> <% if allowed_to? :import, :translation_set, translation_set: set %> <%= link_to t("actions.import", scope: "decidim.term_customizer.admin"), import_translation_set_translations_path(set), class: "button tiny button--simple" %> <% end %> <% if set.translations.count > 0 && allowed_to?(:export, :translation_set, translation_set: set) %> <%= render partial: "export_dropdown" %> <% end %>
<%= render partial: "decidim/term_customizer/admin/translations/bulk_actions/destroy" %>

<% if @translations.count > 0 %>
<% @translations.each do |translation| %> <% end %>
<%= check_box_tag "translations_bulk", "all", false, class: "js-check-all" %> <%= t("models.translations.fields.key", scope: "decidim.term_customizer.admin") %> <%= t("models.translations.fields.original_term", scope: "decidim.term_customizer.admin") %> <%= t("models.translations.fields.term", scope: "decidim.term_customizer.admin") %>
<%= check_box_tag "translation_ids_s[]", translation.id, false, class: "js-check-all-translation js-translation-list-check js-translation-id-#{translation.id}" %>
<%= translation.key %> <%= @directory.translations.term(translation.key) %> <%= translation.value %> <% if allowed_to? :update, :translation, translation: translation %> <%= icon_link_to "pencil", edit_translation_set_translation_path(set, translation), t("actions.configure", scope: "decidim.admin"), class: "action-icon--new" %> <% end %> <% if allowed_to? :destroy, :translation, translation: translation %> <%= icon_link_to "circle-x", translation_set_translation_path(set, translation), t("actions.destroy", scope: "decidim.admin"), method: :delete, class: "action-icon--remove", data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> <% end %>
<%= paginate @translations, theme: "decidim" %>
<% else %>
<%= t ".no_records_html", add_multiple_link: translation_set_add_translations_path(set), button_name: t("decidim.term_customizer.admin.actions.add_multiple_translations") %>
<% end %>
<%= javascript_include_tag "decidim/term_customizer/admin/translations_admin_bulk" %>