1
0
Fork 0
compareware/Web/View/Tasks/Edit.hs

17 lines
469 B
Haskell
Raw Normal View History

2023-04-16 10:33:20 +00:00
module Web.View.Tasks.Edit where
import Web.View.Prelude
2023-04-16 13:54:20 +00:00
import Web.View.Tasks.New (renderForm)
2023-04-16 10:33:20 +00:00
2023-04-16 13:54:20 +00:00
data EditView = EditView { task :: Include "tags" Task }
2023-04-16 10:33:20 +00:00
instance View EditView where
html EditView { .. } = [hsx|
{breadcrumb}
<h1>Edit Task</h1>
{renderForm task}
|]
where
breadcrumb = renderBreadcrumb
[ breadcrumbLink "Tasks" TasksAction
, breadcrumbText "Edit Task"
2023-04-16 13:54:20 +00:00
]