diff --git a/Yesod/Form/Core.hs b/Yesod/Form/Core.hs index 8a2e9553..39f9f97b 100644 --- a/Yesod/Form/Core.hs +++ b/Yesod/Form/Core.hs @@ -156,7 +156,6 @@ requiredFieldHelper (FieldProfile parse render mkWidget) ffs orig = GForm $ do { fiLabel = label , fiTooltip = tooltip , fiIdent = theId - , fiName = name , fiInput = mkWidget theId name val True , fiErrors = case res of FormFailure [x] -> Just $ string x @@ -188,7 +187,6 @@ optionalFieldHelper (FieldProfile parse render mkWidget) ffs orig' = GForm $ do { fiLabel = label , fiTooltip = tooltip , fiIdent = theId - , fiName = name , fiInput = mkWidget theId name val False , fiErrors = case res of FormFailure x -> Just $ string $ unlines x @@ -212,7 +210,6 @@ data FieldInfo sub y = FieldInfo { fiLabel :: Html , fiTooltip :: Html , fiIdent :: String - , fiName :: String , fiInput :: GWidget sub y () , fiErrors :: Maybe Html } diff --git a/Yesod/Form/Fields.hs b/Yesod/Form/Fields.hs index 2469b6ed..4fd4b3db 100644 --- a/Yesod/Form/Fields.hs +++ b/Yesod/Form/Fields.hs @@ -108,7 +108,6 @@ boolField ffs orig = GForm $ do { fiLabel = label , fiTooltip = tooltip , fiIdent = theId - , fiName = name , fiInput = addBody [$hamlet| %input#$theId$!type=checkbox!name=$name$!:val:checked |] @@ -158,7 +157,6 @@ selectField pairs ffs initial = GForm $ do { fiLabel = label , fiTooltip = tooltip , fiIdent = theId - , fiName = name , fiInput = addBody input , fiErrors = case res of FormFailure [x] -> Just $ string x @@ -201,7 +199,6 @@ maybeSelectField pairs ffs initial' = GForm $ do { fiLabel = label , fiTooltip = tooltip , fiIdent = theId - , fiName = name , fiInput = addBody input , fiErrors = case res of FormFailure [x] -> Just $ string x