Created
December 28, 2012 05:44
-
-
Save rortian/4394850 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doubleListField :: RenderMessage master FormMessage => Field sub master [Double] | |
doubleListField = Field | |
{ fieldParse = parseHelper $ Right . decodeUtf8 . parse json | |
, fieldView = \theId name attrs val isReq -> toWidget [hamlet| | |
$newline never | |
<input id="#{theId}" name="#{name}" *{attrs} type="number" :isReq:required="" value="Hey"> | |
|] | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment