module Web.View.AnnotationThreads.New where import Web.Types import Generated.Types import IHP.Prelude import IHP.ViewPrelude import Web.Routes () data NewView = NewView { widget :: !Widget , thread :: !AnnotationThread } instance View NewView where html NewView { .. } = [hsx|
{widget.name} / Threads / New

New Annotation Thread

{renderForm thread widget.id}
|] renderForm :: AnnotationThread -> Id Widget -> Html renderForm thread widgetId = formFor thread [hsx| {(textField #title) { fieldLabel = "Title" }} {(textareaField #description) { fieldLabel = "Description (optional)" }} {submitButton} |]