Disable Champ SIRET autocomplete for previews
This commit is contained in:
parent
b8597b9e9a
commit
04821a6875
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
= form.text_field :value,
|
= form.text_field :value,
|
||||||
placeholder: champ.libelle,
|
placeholder: champ.libelle,
|
||||||
class: 'small-margin',
|
class: 'small-margin',
|
||||||
data: { siret: champs_siret_path(format: :js, champ_id: champ) },
|
data: { siret: champ.persisted? ? champs_siret_path(format: :js, champ_id: champ) : nil },
|
||||||
required: champ.mandatory?
|
required: champ.mandatory?
|
||||||
.spinner.right-spinner
|
.spinner.right-spinner
|
||||||
%div{ id: "etablissement-for-#{champ.id}" }
|
%div{ id: "etablissement-for-#{champ.id}" }
|
||||||
|
|
Loading…
Reference in a new issue