fix: hlint
This commit is contained in:
parent
3a511a8203
commit
b0b92b4b26
@ -18,7 +18,7 @@ postCEvEditR tid ssh csh cID = do
|
|||||||
|
|
||||||
formResult eventRes $ \CourseEventForm{..} -> do
|
formResult eventRes $ \CourseEventForm{..} -> do
|
||||||
now <- liftIO getCurrentTime
|
now <- liftIO getCurrentTime
|
||||||
runDB $ do
|
runDB $
|
||||||
replace eId CourseEvent
|
replace eId CourseEvent
|
||||||
{ courseEventCourse
|
{ courseEventCourse
|
||||||
, courseEventType = cefType
|
, courseEventType = cefType
|
||||||
|
|||||||
@ -28,8 +28,8 @@ courseEventForm template = identifyForm FIDCourseEvent . renderWForm FormStandar
|
|||||||
E.&&. lecturer E.^. LecturerUser E.==. E.val uid
|
E.&&. lecturer E.^. LecturerUser E.==. E.val uid
|
||||||
return event
|
return event
|
||||||
)
|
)
|
||||||
let courseEventTypes = optionsPairs $ [ (courseEventType, courseEventType) | Entity _ CourseEvent{..} <- existingEvents ]
|
let courseEventTypes = optionsPairs [ (courseEventType, courseEventType) | Entity _ CourseEvent{..} <- existingEvents ]
|
||||||
courseEventRooms = optionsPairs $ [ (courseEventRoom, courseEventRoom) | Entity _ CourseEvent{..} <- existingEvents ]
|
courseEventRooms = optionsPairs [ (courseEventRoom, courseEventRoom) | Entity _ CourseEvent{..} <- existingEvents ]
|
||||||
|
|
||||||
cefType' <- wreq (textField & cfStrip & cfCI & addDatalist courseEventTypes) (fslI MsgCourseEventType & addPlaceholder (mr MsgCourseEventTypePlaceholder)) (cefType <$> template)
|
cefType' <- wreq (textField & cfStrip & cfCI & addDatalist courseEventTypes) (fslI MsgCourseEventType & addPlaceholder (mr MsgCourseEventTypePlaceholder)) (cefType <$> template)
|
||||||
cefRoom' <- wreq (textField & cfStrip & addDatalist courseEventRooms) (fslI MsgCourseEventRoom) (cefRoom <$> template)
|
cefRoom' <- wreq (textField & cfStrip & addDatalist courseEventRooms) (fslI MsgCourseEventRoom) (cefRoom <$> template)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user