2022-09-21 15:18:23 +02:00
|
|
|
= @form.text_field :value,
|
|
|
|
id: @champ.input_id,
|
|
|
|
aria: { describedby: @champ.describedby_id },
|
|
|
|
placeholder: t(".placeholder"),
|
2022-10-04 22:11:01 +02:00
|
|
|
data: { controller: 'turbo-input', turbo_input_url_value: champs_rna_path(@champ.id) },
|
2022-10-17 10:05:59 +02:00
|
|
|
required: @champ.required?,
|
2022-09-21 15:18:23 +02:00
|
|
|
pattern: "W[0-9]{9}",
|
|
|
|
title: t(".title"),
|
|
|
|
class: "width-33-desktop",
|
|
|
|
maxlength: 10
|
2022-10-04 22:11:01 +02:00
|
|
|
.rna-info{ id: dom_id(@champ, :rna_info) }
|
2022-10-05 12:31:34 +02:00
|
|
|
= render 'shared/champs/rna/association', champ: @champ, network_error: false, rna: @champ.value
|