Disable Champ SIRET autocomplete for previews

This commit is contained in:
Paul Chavard 2018-07-17 11:32:25 +02:00
parent b8597b9e9a
commit 04821a6875

View file

@ -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}" }