Properly style the label when there is no motivation nor attestation

This commit is contained in:
gregoirenovel 2017-11-24 19:25:29 +01:00
parent e3ce5115a2
commit 5c92989fc8
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,11 @@
module DossierHelper
def label_class(dossier)
if dossier.closed?
'accepted'
elsif dossier.without_continuation?
'without-continuation'
elsif dossier.refused?
'refused'
end
end
end