add behavior section headline to profile form

This commit is contained in:
Felix Hamann 2019-02-16 18:30:56 +01:00
parent e4f37a1bcc
commit 2b61d8f180

View File

@ -37,10 +37,11 @@ makeSettingForm template = identForm FIDsettings $ \html -> do
<*> areq (selectField $ dateTimeFormatOptions SelFormatDateTime) (fslI MsgDateTimeFormat) (stgDateTime <$> template)
<*> areq (selectField $ dateTimeFormatOptions SelFormatDate) (fslI MsgDateFormat) (stgDate <$> template)
<*> areq (selectField $ dateTimeFormatOptions SelFormatTime) (fslI MsgTimeFormat) (stgTime <$> template)
<* aformSection notificationSection
<* aformSection behaviorSection
<*> areq checkBoxField (fslI MsgDownloadFiles
& setTooltip MsgDownloadFilesTip
) (stgDownloadFiles <$> template)
<* aformSection notificationSection
<*> (NotificationSettings <$> funcForm nsForm (fslI MsgNotificationSettings) True)
-- <$> aFormGroup "Cosmetics" cosmeticsForm
-- <*> aFormGroup "Notifications" notificationsForm
@ -49,6 +50,8 @@ makeSettingForm template = identForm FIDsettings $ \html -> do
where
cosmeticsSection :: Text
cosmeticsSection = "Cosmetics"
behaviorSection :: Text
behaviorSection = "Behavior"
notificationSection :: Text
notificationSection = "Notifications"
themeList = [Option (display t) t (toPathPiece t) | t <- universeF]