2022-11-07 10:05:27 +01:00
|
|
|
= render Dsfr::CalloutComponent.new(title: @champ.libelle, extra_class_names: ['fr-mb-2w', 'fr-callout--blue-cumulus']) do |c|
|
2023-02-22 09:09:07 +01:00
|
|
|
- c.with_html_body do
|
2022-11-07 10:05:27 +01:00
|
|
|
|
2023-02-22 05:59:10 +01:00
|
|
|
= render SimpleFormatComponent.new(@champ.description, allow_a: true)
|
2022-11-07 10:05:27 +01:00
|
|
|
|
|
|
|
- if @champ.collapsible_explanation_enabled? && @champ.collapsible_explanation_text.present?
|
2023-02-22 12:56:31 +01:00
|
|
|
%p.fr-my-2w
|
|
|
|
%button{ type: "button", "aria-controls": dom_id(@champ, :explanation), "aria-expanded": "false", href: dom_id(@champ, :explanation), class: "fr-btn ft-btn--sm fr-btn--secondary" } Lire plus
|
2023-03-30 12:44:43 +02:00
|
|
|
.fr-collapse{ id: dom_id(@champ, :explanation) }
|
2023-03-22 14:59:30 +01:00
|
|
|
= render SimpleFormatComponent.new(@champ.collapsible_explanation_text, allow_a: true)
|