From 1e47a7754ca38bd1a6c74765d8378caf68ce4619 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 26 Mar 2017 21:10:42 +0200 Subject: Separate client and server watch --- src/client/Utils/Form.elm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/client/Utils/Form.elm (limited to 'src/client/Utils/Form.elm') diff --git a/src/client/Utils/Form.elm b/src/client/Utils/Form.elm new file mode 100644 index 0000000..8d75a32 --- /dev/null +++ b/src/client/Utils/Form.elm @@ -0,0 +1,13 @@ +module Utils.Form exposing + ( fieldAsText + ) + +import Form exposing (Form) + +import Model.Payment exposing (Frequency(..)) + +fieldAsText : Form a b -> String -> String +fieldAsText form field = + Form.getFieldAsString field form + |> .value + |> Maybe.withDefault "" -- cgit v1.2.3