fix(exams): prefill with school authship statement in optional mode
This commit is contained in:
parent
bf059a1320
commit
0cd8f4c02f
@ -152,8 +152,8 @@ examForm (Entity _ Course{..}) template csrf = hoist liftHandler $ do
|
||||
reqContentField :: (FieldSettings UniWorX -> FieldSettings UniWorX) -> AForm Handler StoredMarkup
|
||||
reqContentField ttip = areq htmlField
|
||||
(fslI MsgExamAuthorshipStatementContent & ttip)
|
||||
( join $ (efAuthorshipStatement <$> template)
|
||||
<|> (pure . authorshipStatementDefinitionContent . entityVal <$> mSchoolAuthorshipStatement)
|
||||
( (join $ efAuthorshipStatement <$> template)
|
||||
<|> (authorshipStatementDefinitionContent . entityVal <$> mSchoolAuthorshipStatement)
|
||||
)
|
||||
forcedContentField = aforced htmlField
|
||||
(fslI MsgExamAuthorshipStatementContent & setTooltip MsgExamAuthorshipStatementAllowOtherFalseTip)
|
||||
|
||||
Reference in New Issue
Block a user