Merge pull request #2259 from tchak/fix-preview-champ-siret

Disable Champ SIRET autocomplete for previews
This commit is contained in:
gregoirenovel 2018-07-17 17:14:07 +02:00 committed by GitHub
commit 1184b50a40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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