|  |  |  | @ -103,12 +103,12 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         </div> | 
			
		
	
		
			
				
					|  |  |  |  |         <% if !submission.archived_at? && !template&.archived_at? && can?(:destroy, submission) %> | 
			
		
	
		
			
				
					|  |  |  |  |           <span data-tip="<%= t('archive') %>" class="sm:tooltip tooltip-top"> | 
			
		
	
		
			
				
					|  |  |  |  |             <%= button_to button_title(title: nil, disabled_with: t(:archive).first(4), icon: svg_icon('archive', class: 'w-6 h-6')), submission_path(submission), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('archive'), method: :delete %> | 
			
		
	
		
			
				
					|  |  |  |  |             <%= button_to button_title(title: nil, disabled_with: nil, icon: svg_icon('archive', class: 'w-6 h-6'), icon_disabled: svg_icon('loader', class: 'w-6 h-6 animate-spin')), submission_path(submission), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('archive'), method: :delete %> | 
			
		
	
		
			
				
					|  |  |  |  |           </span> | 
			
		
	
		
			
				
					|  |  |  |  |         <% end %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% if local_assigns[:archived] && can?(:destroy, submission) %> | 
			
		
	
		
			
				
					|  |  |  |  |           <span data-tip="<%= t('remove') %>" class="sm:tooltip tooltip-top"> | 
			
		
	
		
			
				
					|  |  |  |  |             <%= button_to button_title(title: nil, disabled_with: t(:remove).first(3), icon: svg_icon('trash', class: 'w-6 h-6')), submission_path(submission, permanently: true), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('remove'), method: :delete, data: { turbo_confirm: t('submission_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } %> | 
			
		
	
		
			
				
					|  |  |  |  |             <%= button_to button_title(title: nil, disabled_with: nil, icon: svg_icon('trash', class: 'w-6 h-6'), icon_disabled: svg_icon('loader', class: 'w-6 h-6 animate-spin')), submission_path(submission, permanently: true), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('remove'), method: :delete, data: { turbo_confirm: t('submission_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } %> | 
			
		
	
		
			
				
					|  |  |  |  |           </span> | 
			
		
	
		
			
				
					|  |  |  |  |         <% end %> | 
			
		
	
		
			
				
					|  |  |  |  |       </div> | 
			
		
	
	
		
			
				
					|  |  |  | @ -210,12 +210,12 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         </div> | 
			
		
	
		
			
				
					|  |  |  |  |         <% if !submission.archived_at? && !template&.archived_at? %> | 
			
		
	
		
			
				
					|  |  |  |  |           <span data-tip="<%= t('archive') %>" class="sm:tooltip tooltip-top"> | 
			
		
	
		
			
				
					|  |  |  |  |             <%= button_to button_title(title: nil, disabled_with: t(:archive).first(4), icon: svg_icon('archive', class: 'w-6 h-6')), submission_path(submission), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('archive'), method: :delete %> | 
			
		
	
		
			
				
					|  |  |  |  |             <%= button_to button_title(title: nil, disabled_with: nil, icon: svg_icon('archive', class: 'w-6 h-6'), icon_disabled: svg_icon('loader', class: 'w-6 h-6 animate-spin')), submission_path(submission), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('archive'), method: :delete %> | 
			
		
	
		
			
				
					|  |  |  |  |           </span> | 
			
		
	
		
			
				
					|  |  |  |  |         <% end %> | 
			
		
	
		
			
				
					|  |  |  |  |         <% if local_assigns[:archived] && can?(:destroy, submission) %> | 
			
		
	
		
			
				
					|  |  |  |  |           <span data-tip="<%= t('remove') %>" class="sm:tooltip tooltip-top"> | 
			
		
	
		
			
				
					|  |  |  |  |             <%= button_to button_title(title: nil, disabled_with: t(:remove).first(3), icon: svg_icon('trash', class: 'w-6 h-6')), submission_path(submission, permanently: true), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('remove'), method: :delete, data: { turbo_confirm: t('submission_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } %> | 
			
		
	
		
			
				
					|  |  |  |  |             <%= button_to button_title(title: nil, disabled_with: nil, icon: svg_icon('trash', class: 'w-6 h-6'), icon_disabled: svg_icon('loader', class: 'w-6 h-6 animate-spin')), submission_path(submission, permanently: true), class: 'btn btn-outline btn-sm w-full md:w-fit', form: { class: 'flex' }, title: t('remove'), method: :delete, data: { turbo_confirm: t('submission_deletion_is_irreversible_and_will_permanently_remove_all_associated_signed_documents_with_it_are_you_sure_') } %> | 
			
		
	
		
			
				
					|  |  |  |  |           </span> | 
			
		
	
		
			
				
					|  |  |  |  |         <% end %> | 
			
		
	
		
			
				
					|  |  |  |  |       </div> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |