fix(exams): correctly treat school-mode optional as off by default
This commit is contained in:
parent
5c813ed02b
commit
ac86832b34
@ -163,10 +163,9 @@ examForm (Entity _ Course{..}) template csrf = hoist liftHandler $ do
|
|||||||
SchoolAuthorshipStatementModeNone -> pure Nothing -- suppress display of whole section incl. header
|
SchoolAuthorshipStatementModeNone -> pure Nothing -- suppress display of whole section incl. header
|
||||||
otherMode -> aformSection MsgExamAuthorshipStatementSection
|
otherMode -> aformSection MsgExamAuthorshipStatementSection
|
||||||
*> case otherMode of
|
*> case otherMode of
|
||||||
SchoolAuthorshipStatementModeOptional -> optionalActionA
|
SchoolAuthorshipStatementModeOptional -> optionalActionA (contentField id)
|
||||||
(contentField id)
|
|
||||||
(fslI MsgExamAuthorshipStatementRequired & setTooltip MsgExamAuthorshipStatementRequiredTip)
|
(fslI MsgExamAuthorshipStatementRequired & setTooltip MsgExamAuthorshipStatementRequiredTip)
|
||||||
((is _Just . efAuthorshipStatement <$> template) <|> (pure $ is _Just schoolSheetExamAuthorshipStatementDefinition))
|
(is _Just . efAuthorshipStatement <$> template)
|
||||||
SchoolAuthorshipStatementModeRequired -> fmap Just . contentField $ setTooltip MsgExamAuthorshipStatementRequiredDisabledOnTip
|
SchoolAuthorshipStatementModeRequired -> fmap Just . contentField $ setTooltip MsgExamAuthorshipStatementRequiredDisabledOnTip
|
||||||
_none -> pure Nothing
|
_none -> pure Nothing
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user