demarches-normaliennes/app/components/editable_champ/rnf_component/rnf_component.html.haml
mfo b9907ac9ce
fix(Champ.rnf): add missing fr-input dsfr class name
Co-authored-by: Corinne Durrmeyer <corinne@inseo.fr>
2024-04-12 12:01:00 +02:00

9 lines
524 B
Text

= @form.text_field :external_id, input_opts(id: @champ.input_id, required: @champ.required?, class: "width-33-desktop fr-input small-margin", aria: { describedby: @champ.describedby_id })
.rnf-info{ id: dom_id(@champ, :rnf_info) }
- if @champ.fetch_external_data_error?
%p.fr-error-text= t('.rnf_info_error')
- elsif @champ.fetch_external_data_pending?
%p.fr-info-text= t('.rnf_info_pending')
- elsif @champ.data?
%p.fr-info-text= t('.rnf_info_success', title: @champ.title, address: @champ.full_address)