forked from janek/compareware
commit
ed89bebd5b
|
@ -37,9 +37,9 @@ prototypeFor field record =
|
||||||
where
|
where
|
||||||
parentFormContext = ?formContext
|
parentFormContext = ?formContext
|
||||||
prototype :: Html
|
prototype :: Html
|
||||||
prototype = let ?formContext = parentFormContext { model = parentFormContext.model |> set field [newRecord] } in nestedFormFor field renderTagForm
|
prototype = let ?formContext = parentFormContext { model = parentFormContext.model |> set field [record] } in nestedFormFor field renderTagForm
|
||||||
|
|
||||||
renderTagForm :: (?formContext :: FormContext Tag) => Html
|
renderTagForm :: (?formContext :: FormContext Tag) => Html
|
||||||
renderTagForm = [hsx|
|
renderTagForm = [hsx|
|
||||||
{(textField #name) { disableLabel = True, placeholder = "Tag name" } }
|
{(textField #name) { disableLabel = True, placeholder = "Tag name" } }
|
||||||
|]
|
|]
|
||||||
|
|
Loading…
Reference in New Issue