Remove autocomplete=false attributes

This commit is contained in:
Corinne Durrmeyer 2024-09-30 10:51:52 +02:00
parent 9490886206
commit 741df66107
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -48,9 +48,15 @@
.fr-fieldset__element.fr-mb-0
.fr-fieldset.width-100
.fr-fieldset__element.fr-fieldset__element--short-text
= render Dsfr::InputComponent.new(form: individual, attribute: :prenom, opts: { autocomplete: (for_tiers? ? false : 'given-name') })
- if for_tiers?
= render Dsfr::InputComponent.new(form: individual, attribute: :prenom)
- else
= render Dsfr::InputComponent.new(form: individual, attribute: :prenom, opts: { autocomplete: 'given-name' })
.fr-fieldset__element.fr-fieldset__element--short-text
= render Dsfr::InputComponent.new(form: individual, attribute: :nom, opts: { autocomplete: (for_tiers? ? false : 'family-name') })
- if for_tiers?
= render Dsfr::InputComponent.new(form: individual, attribute: :nom)
- else
= render Dsfr::InputComponent.new(form: individual, attribute: :nom, opts: { autocomplete: 'family-name' })
- if @dossier.procedure.ask_birthday?
.fr-fieldset__element