remove invisible and unused transfer_all feature

This commit is contained in:
Lisa Durand 2024-09-23 14:22:54 +02:00
parent ba76ef0a6d
commit f18b71a36b
No known key found for this signature in database
GPG key ID: 0DF91F2CA1E8B816
3 changed files with 0 additions and 12 deletions

View file

@ -405,10 +405,6 @@ module Users
@transfer = DossierTransfer.new(dossiers: [dossier])
end
def transferer_all
@transfer = DossierTransfer.new(dossiers: current_user.dossiers)
end
def restore
dossier.restore(current_user)
flash.notice = t('users.dossiers.restore')

View file

@ -1,7 +0,0 @@
.container.mt-4
Transferer les #{@transfer.dossiers.size} dossiers de votre compte vers le compte dun autre usager :
= form_for @transfer, url: transfers_path, html: { class: 'form mt-2' } do |f|
= f.label :email, 'Email du compte destinataire'
= f.email_field :email, required: true
= f.submit "Envoyer la demande de transfert", class: 'button primary'

View file

@ -390,7 +390,6 @@ Rails.application.routes.draw do
end
collection do
get 'transferer', to: 'dossiers#transferer_all'
resources :transfers, only: [:create, :update, :destroy]
end
end