Merge pull request #2259 from tchak/fix-preview-champ-siret
Disable Champ SIRET autocomplete for previews
This commit is contained in:
commit
1184b50a40
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
= form.text_field :value,
|
||||
placeholder: champ.libelle,
|
||||
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?
|
||||
.spinner.right-spinner
|
||||
%div{ id: "etablissement-for-#{champ.id}" }
|
||||
|
|
Loading…
Reference in a new issue