added extension bouton to en_construction dossiers bound to expire
This commit is contained in:
parent
dadbcd7ede
commit
5896aedeeb
4 changed files with 22 additions and 1 deletions
|
@ -166,6 +166,12 @@ module Users
|
|||
end
|
||||
end
|
||||
|
||||
def extend_conservation
|
||||
dossier.update(en_construction_conservation_extension: dossier.en_construction_conservation_extension + 1.month)
|
||||
flash[:notice] = 'Votre dossier sera conservé un mois supplémentaire'
|
||||
redirect_to dossier_path(@dossier)
|
||||
end
|
||||
|
||||
def modifier
|
||||
@dossier = dossier_with_champs
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue