demarches-normaliennes/app/components/editable_champ/textarea_component/textarea_component.html.haml

15 lines
544 B
Text
Raw Normal View History

2022-08-12 10:45:04 +02:00
~ @form.text_area :value,
id: @champ.input_id,
aria: { describedby: @champ.describedby_id },
rows: 6,
required: @champ.required?,
2022-08-12 10:45:04 +02:00
value: html_to_string(@champ.value)
- if @champ.character_limit_info?
%span.fr-icon-information-fill.fr-text-default--info.characters-count
= t('.remaining_characters', remaining_words: @champ.remaining_characters)
- if @champ.character_limit_warning?
%span.fr-icon-close-circle-fill.fr-text-default--error.characters-count
= t('.excess_characters', excess_words: @champ.excess_characters)