handle label color translation and class name
This commit is contained in:
parent
9595730fde
commit
468c159b52
6 changed files with 22 additions and 20 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue