demarches-normaliennes/app/views/administrateurs/_autosave_notice.html.haml

2 lines
219 B
Text

- success = local_assigns.fetch(:success, true)
#autosave-notice.fr-badge.fr-badge--sm{ class: class_names("fr-badge--success" => success, "fr-badge--error" => !success) }= success ? t(".form_saved") : t(".form_error")