mirror of
https://code.sup39.dev/repos/Wqawg
synced 2025-03-20 04:46:22 +09:00
Remove form field error duplication in project creation
This commit is contained in:
parent
298bbc57e4
commit
3c95014087
2 changed files with 4 additions and 4 deletions
src/Vervis/Handler
|
@ -55,8 +55,8 @@ postProjectsR ident = do
|
|||
FormMissing -> do
|
||||
setMessage "Field(s) missing"
|
||||
defaultLayout $(widgetFile "project/project-new")
|
||||
FormFailure l -> do
|
||||
setMessage $ toHtml $ intercalate "; " l
|
||||
FormFailure l_ -> do
|
||||
setMessage "Project creation failed, see below"
|
||||
defaultLayout $(widgetFile "project/project-new")
|
||||
|
||||
getProjectNewR :: Text -> Handler Html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue