From 6aabd510081681f81f4259190be32fbb2819b46c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 12 Sep 2014 21:30:27 -0400 Subject: [PATCH] splice TH --- Yesod/Form/Bootstrap3.hs | 183 +++++++++--- Yesod/Form/Fields.hs | 753 ++++++++++++++++++++++++++++++++++++++--------- Yesod/Form/Functions.hs | 257 +++++++++++++--- Yesod/Form/Jquery.hs | 134 +++++++-- Yesod/Form/MassInput.hs | 226 +++++++++++--- Yesod/Form/Nic.hs | 67 ++++- yesod-form.cabal | 1 - 7 files changed, 1319 insertions(+), 302 deletions(-) diff --git a/Yesod/Form/Bootstrap3.hs b/Yesod/Form/Bootstrap3.hs index 84e85fc..943c416 100644 --- a/Yesod/Form/Bootstrap3.hs +++ b/Yesod/Form/Bootstrap3.hs @@ -152,44 +152,144 @@ renderBootstrap3 formLayout aform fragment = do let views = views' [] has (Just _) = True has Nothing = False - widget = [whamlet| - $newline never - #{fragment} - $forall view <- views -
- $case formLayout - $of BootstrapBasicForm - $if fvId view /= bootstrapSubmitId -