Update Timeline.hs
This commit is contained in:
parent
1186577d92
commit
eaf19baed8
10
Timeline.hs
10
Timeline.hs
@ -26,10 +26,12 @@ postTimelineR :: Handler Html
|
|||||||
postTimelineR = do
|
postTimelineR = do
|
||||||
getTimelineR
|
getTimelineR
|
||||||
|
|
||||||
|
-- TODO: Eventuell müssen Sie hier oder in config/models die Reihenfolge der Post-Argumente anpassen.
|
||||||
postForm :: Maybe PostId -> UserId -> Form Post
|
postForm :: UserId -> Form Post
|
||||||
postForm p u = renderDivs $ Post
|
postForm u = renderDivs $ Post
|
||||||
|
-- UserId
|
||||||
<$> pure u
|
<$> pure u
|
||||||
|
-- Textfeld mit Default-Wert "Post content"
|
||||||
<*> areq textField "Post" (Just "Post content")
|
<*> areq textField "Post" (Just "Post content")
|
||||||
<*> pure p
|
-- Systemzeit
|
||||||
<*> lift (liftIO getCurrentTime)
|
<*> lift (liftIO getCurrentTime)
|
||||||
|
Loading…
Reference in New Issue
Block a user