fetch association data when editing the dossier

This commit is contained in:
Sébastien Carceles 2023-01-12 12:45:36 +01:00 committed by sebastiencarceles
parent 33fa40eda2
commit e89c8385a4

View file

@ -2,7 +2,7 @@
id: @champ.input_id,
aria: { describedby: @champ.describedby_id },
placeholder: t(".placeholder"),
data: { controller: 'turbo-input', turbo_input_url_value: champs_rna_path(@champ.id) },
data: { controller: 'turbo-input', turbo_input_load_on_connect_value: @champ.prefilled? && @champ.value.present? && @champ.data.blank?, turbo_input_url_value: champs_rna_path(@champ.id) },
required: @champ.required?,
pattern: "W[0-9]{9}",
title: t(".title"),