compareware/Web/View/Tasks/Edit.hs

17 lines
469 B
Haskell
Raw Normal View History

2023-04-16 12:33:20 +02:00
module Web.View.Tasks.Edit where
import Web.View.Prelude
2023-04-16 15:54:20 +02:00
import Web.View.Tasks.New (renderForm)
2023-04-16 12:33:20 +02:00
2023-04-16 15:54:20 +02:00
data EditView = EditView { task :: Include "tags" Task }
2023-04-16 12:33:20 +02: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 15:54:20 +02:00
]