e4af86fb96
Cf #8662
10 lines
621 B
Text
10 lines
621 B
Text
= render Dsfr::CalloutComponent.new(title: @champ.libelle, extra_class_names: ['fr-mb-2w', 'fr-callout--blue-cumulus']) do |c|
|
|
- c.with_body do
|
|
|
|
= string_to_html(@champ.description, allow_a: true)
|
|
|
|
- if @champ.collapsible_explanation_enabled? && @champ.collapsible_explanation_text.present?
|
|
%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
|
|
%p.fr-collapse{ id: dom_id(@champ, :explanation) }
|
|
= @champ.collapsible_explanation_text
|