This commit is contained in:
+10
-5
@@ -853,11 +853,16 @@ renderCookLog filename entries = do
|
||||
H.form
|
||||
! A.class_ "roux-cook-log-form"
|
||||
! H.dataAttribute "filename" (H.toValue (T.pack filename))
|
||||
! A.style "display: flex; gap: 0.3rem; margin-bottom: 0.5rem;" $ do
|
||||
H.input ! A.type_ "date" ! A.name "cooked-date"
|
||||
H.input ! A.type_ "text" ! A.name "comment" ! A.placeholder "Optional note..."
|
||||
! A.maxlength "500" ! A.style "flex: 1;"
|
||||
H.button ! A.type_ "submit" $ "Log it"
|
||||
! A.style "display: flex; gap: 0.3rem; margin-bottom: 0.5rem;"
|
||||
$ do
|
||||
H.input ! A.type_ "date" ! A.name "cooked-date"
|
||||
H.input
|
||||
! A.type_ "text"
|
||||
! A.name "comment"
|
||||
! A.placeholder "Optional note..."
|
||||
! A.maxlength "500"
|
||||
! A.style "flex: 1;"
|
||||
H.button ! A.type_ "submit" $ "Log it"
|
||||
H.div ! A.class_ "roux-cook-entries" $ do
|
||||
mapM_ renderEntry entries
|
||||
|
||||
|
||||
Reference in New Issue
Block a user