diff options
author | Joris | 2016-08-21 14:30:40 +0200 |
---|---|---|
committer | Joris | 2016-08-21 14:30:40 +0200 |
commit | 75804df1cb231033f94183e41cdf79d36d8f6710 (patch) | |
tree | 48b7932285091fdbdaba6d77586859c1e1750ce0 /src/client/elm/View/Form.elm | |
parent | 3889d21ab58fbbc0134854b95013196a82e8d510 (diff) |
Show a message if there is an error during a server request
Diffstat (limited to 'src/client/elm/View/Form.elm')
-rw-r--r-- | src/client/elm/View/Form.elm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/elm/View/Form.elm b/src/client/elm/View/Form.elm index 5f642fb..dcde47d 100644 --- a/src/client/elm/View/Form.elm +++ b/src/client/elm/View/Form.elm @@ -40,7 +40,7 @@ textInput translations form formName fieldName = ] , label [ for (formName ++ fieldName) ] - [ text (Translations.getMessage (formName ++ fieldName) translations) ] + [ text (Translations.getMessage translations (formName ++ fieldName)) ] , button [ type' "button" , onClick (Form.Input fieldName Field.EmptyField) @@ -63,7 +63,7 @@ radioInputs translations form formName radioName fieldNames = ] [ div [ class "title" ] - [ text (Translations.getMessage (formName ++ radioName) translations) ] + [ text (Translations.getMessage translations (formName ++ radioName) ) ] , div [ class "radioInputs" ] (List.map (radioInput translations field formName) fieldNames) @@ -85,7 +85,7 @@ radioInput translations field formName fieldName = ] , label [ for (formName ++ fieldName) ] - [ text (Translations.getMessage (formName ++ fieldName) translations) + [ text (Translations.getMessage translations (formName ++ fieldName)) ] ] @@ -94,7 +94,7 @@ formError translations error = let errorElement error params = div [ class "errorMessage" ] - [ text (Translations.getParamMessage params error translations) ] + [ text (Translations.getParamMessage params translations error) ] in case error of CustomError key -> errorElement key [] SmallerIntThan n -> errorElement "SmallerIntThan" [toString n] |