fix(exams): set use-custom correctly if forced
This commit is contained in:
parent
abd68ac032
commit
8bb61401a7
@ -150,9 +150,7 @@ examForm (Entity _ Course{..}) template csrf = hoist liftHandler $ do
|
|||||||
<* aformSection MsgExamAuthorshipStatementSection
|
<* aformSection MsgExamAuthorshipStatementSection
|
||||||
<* optionalActionA
|
<* optionalActionA
|
||||||
( aopt htmlField
|
( aopt htmlField
|
||||||
( fslI MsgExamAuthorshipStatementSchoolDefinition
|
(fslI MsgExamAuthorshipStatementSchoolDefinition & addAttr "disabled" "disabled")
|
||||||
& addAttr "disabled" "disabled"
|
|
||||||
)
|
|
||||||
((Just . authorshipStatementDefinitionContent . entityVal) <$> mSchoolAuthorshipStatement)
|
((Just . authorshipStatementDefinitionContent . entityVal) <$> mSchoolAuthorshipStatement)
|
||||||
<* optionalActionA
|
<* optionalActionA
|
||||||
( apreq htmlField
|
( apreq htmlField
|
||||||
@ -170,7 +168,7 @@ examForm (Entity _ Course{..}) template csrf = hoist liftHandler $ do
|
|||||||
& addAttr "disabled" "disabled"
|
& addAttr "disabled" "disabled"
|
||||||
& setTooltip MsgExamAuthorshipStatementUseCustomDefinitionDisabledTip
|
& setTooltip MsgExamAuthorshipStatementUseCustomDefinitionDisabledTip
|
||||||
)
|
)
|
||||||
( bool (Just True)
|
( bool (Just False)
|
||||||
(Just True) -- TODO: set according to template, if template is empty `Just True`
|
(Just True) -- TODO: set according to template, if template is empty `Just True`
|
||||||
schoolSheetExamAuthorshipStatementAllowOther
|
schoolSheetExamAuthorshipStatementAllowOther
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user