remove invisible and unused transfer_all feature
This commit is contained in:
parent
ba76ef0a6d
commit
f18b71a36b
3 changed files with 0 additions and 12 deletions
|
@ -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')
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
.container.mt-4
|
||||
Transferer les #{@transfer.dossiers.size} dossiers de votre compte vers le compte d’un 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'
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue