demarches-normaliennes/app/components/dsfr/button_component/button_component.html.haml

5 lines
152 B
Text

- if form
= form.submit label, class: "fr-btn #{class_names.join(" ")}"
- elsif url
= link_to label, url, class: "fr-btn #{class_names.join(" ")}"