diff options
author | Joris | 2016-06-19 01:00:53 +0200 |
---|---|---|
committer | Joris | 2016-06-19 01:00:53 +0200 |
commit | fb5629d7f705b7e80dcf1852da58d2864c2b0d25 (patch) | |
tree | e9e0d0db119b6f7c2b240226f03ff2d6218070ed /src/client/elm/Utils | |
parent | 9716f77d14ef43f96a1534d97bb9d336df1882be (diff) |
Show payment count and sum right after search
Diffstat (limited to 'src/client/elm/Utils')
-rw-r--r-- | src/client/elm/Utils/Form.elm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/elm/Utils/Form.elm b/src/client/elm/Utils/Form.elm new file mode 100644 index 0000000..6793222 --- /dev/null +++ b/src/client/elm/Utils/Form.elm @@ -0,0 +1,11 @@ +module Utils.Form exposing + ( fieldAsText + ) + +import Form exposing (Form) + +fieldAsText : Form a b -> String -> String +fieldAsText form field = + Form.getFieldAsString field form + |> .value + |> Maybe.withDefault "" |