add behavior section headline to profile form
This commit is contained in:
parent
e4f37a1bcc
commit
2b61d8f180
@ -37,10 +37,11 @@ makeSettingForm template = identForm FIDsettings $ \html -> do
|
|||||||
<*> areq (selectField $ dateTimeFormatOptions SelFormatDateTime) (fslI MsgDateTimeFormat) (stgDateTime <$> template)
|
<*> areq (selectField $ dateTimeFormatOptions SelFormatDateTime) (fslI MsgDateTimeFormat) (stgDateTime <$> template)
|
||||||
<*> areq (selectField $ dateTimeFormatOptions SelFormatDate) (fslI MsgDateFormat) (stgDate <$> template)
|
<*> areq (selectField $ dateTimeFormatOptions SelFormatDate) (fslI MsgDateFormat) (stgDate <$> template)
|
||||||
<*> areq (selectField $ dateTimeFormatOptions SelFormatTime) (fslI MsgTimeFormat) (stgTime <$> template)
|
<*> areq (selectField $ dateTimeFormatOptions SelFormatTime) (fslI MsgTimeFormat) (stgTime <$> template)
|
||||||
<* aformSection notificationSection
|
<* aformSection behaviorSection
|
||||||
<*> areq checkBoxField (fslI MsgDownloadFiles
|
<*> areq checkBoxField (fslI MsgDownloadFiles
|
||||||
& setTooltip MsgDownloadFilesTip
|
& setTooltip MsgDownloadFilesTip
|
||||||
) (stgDownloadFiles <$> template)
|
) (stgDownloadFiles <$> template)
|
||||||
|
<* aformSection notificationSection
|
||||||
<*> (NotificationSettings <$> funcForm nsForm (fslI MsgNotificationSettings) True)
|
<*> (NotificationSettings <$> funcForm nsForm (fslI MsgNotificationSettings) True)
|
||||||
-- <$> aFormGroup "Cosmetics" cosmeticsForm
|
-- <$> aFormGroup "Cosmetics" cosmeticsForm
|
||||||
-- <*> aFormGroup "Notifications" notificationsForm
|
-- <*> aFormGroup "Notifications" notificationsForm
|
||||||
@ -49,6 +50,8 @@ makeSettingForm template = identForm FIDsettings $ \html -> do
|
|||||||
where
|
where
|
||||||
cosmeticsSection :: Text
|
cosmeticsSection :: Text
|
||||||
cosmeticsSection = "Cosmetics"
|
cosmeticsSection = "Cosmetics"
|
||||||
|
behaviorSection :: Text
|
||||||
|
behaviorSection = "Behavior"
|
||||||
notificationSection :: Text
|
notificationSection :: Text
|
||||||
notificationSection = "Notifications"
|
notificationSection = "Notifications"
|
||||||
themeList = [Option (display t) t (toPathPiece t) | t <- universeF]
|
themeList = [Option (display t) t (toPathPiece t) | t <- universeF]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user