handle label color translation and class name

This commit is contained in:
Lisa Durand 2024-10-29 12:59:35 +01:00
parent 9595730fde
commit 468c159b52
No known key found for this signature in database
GPG key ID: 0DF91F2CA1E8B816
6 changed files with 22 additions and 20 deletions

View file

@ -130,7 +130,7 @@ module DossierHelper
end
def tag_label(name, color)
tag.span(name, class: "fr-tag fr-tag--sm fr-tag--#{ProcedureLabel.colors.fetch(color.underscore)}")
tag.span(name, class: "fr-tag fr-tag--sm fr-tag--#{ProcedureLabel.class_name(color)}")
end
def demandeur_dossier(dossier)