fix(course-register): swapped warning message

This commit is contained in:
Gregor Kleen 2020-05-07 14:13:43 +02:00
parent 2936eefbd1
commit 32c060575c

View File

@ -142,9 +142,9 @@ courseRegisterForm (Entity cid Course{..}) = liftHandler $ do
-> aFormToWForm $ fileUploadForm False (fslI . mkFs) courseApplicationsFiles
when (is _Just $ registration >>= courseParticipantAllocated . entityVal) $
wformMessage =<< messageIconI Warning IconExamRegisterFalse MsgCourseDeregistrationNoShow
wformMessage =<< messageIconI Warning IconExamRegisterFalse MsgCourseDeregistrationAllocationLog
when (is _Just (registration >>= courseParticipantAllocated . entityVal) && courseDeregisterNoShow) $
wformMessage =<< messageIconI Warning IconEnrolFalse MsgCourseDeregistrationAllocationLog
wformMessage =<< messageIconI Warning IconEnrolFalse MsgCourseDeregistrationNoShow
return $ CourseRegisterForm
<$ secretRes