|
|
|
@ -59,12 +59,7 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if can?(:destroy, template) %>
|
|
|
|
<% if can?(:destroy, template) %>
|
|
|
|
<span class="tooltip tooltip-left" data-tip="<%= template.archived_at? ? t('delete') : t('archive') %>">
|
|
|
|
|
|
|
|
<%= 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 %>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|