diff --git a/app/views/templates/_template.html.erb b/app/views/templates/_template.html.erb index 2ba35ebd..d209d5fc 100644 --- a/app/views/templates/_template.html.erb +++ b/app/views/templates/_template.html.erb @@ -59,12 +59,7 @@ <% end %> <% if can?(:destroy, template) %> - - <%= button_to template_path(template), data: template.archived_at? ? { turbo_confirm: t('template_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } : {}, params: { permanently: template.archived_at? }.compact_blank, method: :delete, class: 'btn btn-xs hover:btn-outline bg-base-200 btn-circle', aria_label: t('restore') do %> - <%= svg_icon(template.archived_at? ? 'trash' : 'archive', class: 'w-4 h-4 enabled') %> - <%= svg_icon('loader', class: 'w-4 h-4 animate-spin disabled') %> - <% end %> - + <% end %>