2023-05-05 09:13:05 +02:00
|
|
|
~ @form.text_area(:value, input_opts(id: @champ.input_id, aria: { describedby: @champ.describedby_id }, rows: 6, required: @champ.required?, 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?
|
2023-06-22 16:05:26 +02:00
|
|
|
%p.fr-info-text
|
2023-04-28 23:28:13 +02:00
|
|
|
= 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-06-22 16:05:26 +02:00
|
|
|
%p.fr-icon--sm.fr-mt-4v.fr-mb-0.fr-hint-text.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)
|