fix build with newer yesod
This commit is contained in:
parent
d660a76c33
commit
b4f4ed7d93
2 changed files with 1 additions and 8 deletions
|
@ -151,7 +151,7 @@ editRepositoryAForm def = RepoConfig
|
||||||
help = [whamlet|<a href="@{RepoGroupR}">What's this?</a>|]
|
help = [whamlet|<a href="@{RepoGroupR}">What's this?</a>|]
|
||||||
|
|
||||||
associateddirectory = case repoAssociatedDirectory def of
|
associateddirectory = case repoAssociatedDirectory def of
|
||||||
Nothing -> aopt dummyField "" Nothing
|
Nothing -> aopt hiddenField "" Nothing
|
||||||
Just d -> aopt textField "Associated directory" (Just $ Just d)
|
Just d -> aopt textField "Associated directory" (Just $ Just d)
|
||||||
|
|
||||||
getEditRepositoryR :: UUID -> Handler RepHtml
|
getEditRepositoryR :: UUID -> Handler RepHtml
|
||||||
|
|
|
@ -39,13 +39,6 @@ passwordField = F.passwordField
|
||||||
|]
|
|]
|
||||||
}
|
}
|
||||||
|
|
||||||
{- Useful in an AForm when sometimes a field is not used. -}
|
|
||||||
dummyField :: RenderMessage master FormMessage => Field sub master Text
|
|
||||||
dummyField = Field
|
|
||||||
{ fieldView = \_theId _name _attrs _val _isReq -> return ()
|
|
||||||
, fieldParse = const $ return $ Right Nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
{- Makes a note widget be displayed after a field. -}
|
{- Makes a note widget be displayed after a field. -}
|
||||||
withNote :: Field sub master v -> GWidget sub master () -> Field sub master v
|
withNote :: Field sub master v -> GWidget sub master () -> Field sub master v
|
||||||
withNote field note = field { fieldView = newview }
|
withNote field note = field { fieldView = newview }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue