2023-05-12 10:03:54 +02:00
|
|
|
%span.sr-only= t('.recommended_size', size: @champ.character_limit_base)
|
|
|
|
|
2022-08-12 10:45:04 +02:00
|
|
|
~ @form.text_area :value,
|
|
|
|
id: @champ.input_id,
|
|
|
|
aria: { describedby: @champ.describedby_id },
|
|
|
|
rows: 6,
|
2022-10-17 10:05:59 +02:00
|
|
|
required: @champ.required?,
|
2022-08-12 10:45:04 +02:00
|
|
|
value: html_to_string(@champ.value)
|
2023-04-28 18:46:44 +02:00
|
|
|
|
2023-04-28 23:28:13 +02:00
|
|
|
- if @champ.character_limit_info?
|
|
|
|
%span.fr-icon-information-fill.fr-text-default--info.characters-count
|
|
|
|
= t('.remaining_characters', remaining_words: @champ.remaining_characters)
|
2023-04-28 18:46:44 +02:00
|
|
|
|
2023-04-28 23:28:13 +02:00
|
|
|
- if @champ.character_limit_warning?
|
2023-05-12 10:04:11 +02:00
|
|
|
%span.fr-icon-warning-fill.fr-text-default--warning.characters-count
|
2023-04-28 23:28:13 +02:00
|
|
|
= t('.excess_characters', excess_words: @champ.excess_characters)
|