add two more fields for procedure description what et and for_who

This commit is contained in:
Lisa Durand 2023-05-22 15:36:48 +02:00
parent 174b0edaa1
commit 4a51a9a351
12 changed files with 104 additions and 78 deletions

View file

@ -92,10 +92,12 @@ module Users
def identite
@dossier = dossier
@user = current_user
@hide_description = true
end
def update_identite
@dossier = dossier
@hide_description = true
if @dossier.individual.update(individual_params)
@dossier.update!(autorisation_donnees: true, identity_updated_at: Time.zone.now)
@ -110,10 +112,12 @@ module Users
def siret
@dossier = dossier
@hide_description = true
end
def update_siret
@dossier = dossier
@hide_description = true
# We use the user as the holder model object for the siret value
# (so that we can restore it on the form in case of error).