demarches-normaliennes/app/helpers/dossier_helper.rb

12 lines
228 B
Ruby
Raw Normal View History

module DossierHelper
def button_or_label_class(dossier)
if dossier.closed?
'accepted'
elsif dossier.without_continuation?
'without-continuation'
elsif dossier.refused?
'refused'
end
end
end