diff options
author | Joris | 2016-06-04 10:04:05 +0200 |
---|---|---|
committer | Joris | 2016-06-04 10:04:05 +0200 |
commit | 9dfa7a7e2c6fac564a456b11623c04d0b26fbce5 (patch) | |
tree | dfde96063dac54be4cfbadf8715c7e8b844457cc /src/client/elm/LoggedIn/Home/View/Search.elm | |
parent | 6ebd46c4913695210bd46179817bcc166a225ed8 (diff) |
Add search on payments and use inline font awesome from elm
Diffstat (limited to 'src/client/elm/LoggedIn/Home/View/Search.elm')
-rw-r--r-- | src/client/elm/LoggedIn/Home/View/Search.elm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/client/elm/LoggedIn/Home/View/Search.elm b/src/client/elm/LoggedIn/Home/View/Search.elm new file mode 100644 index 0000000..a4f727a --- /dev/null +++ b/src/client/elm/LoggedIn/Home/View/Search.elm @@ -0,0 +1,29 @@ +module LoggedIn.Home.View.Search exposing + ( paymentsSearch + ) + +import Html exposing (..) +import Html.Attributes exposing (..) +import Html.Events exposing (..) + +import Msg exposing (Msg) +import LoggedIn.Msg as LoggedInMsg +import LoggedIn.Home.Msg as HomeMsg + +import LoggedData exposing (LoggedData) +import LoggedIn.Home.Model as HomeModel +import Model.Translations exposing (getMessage) + +paymentsSearch : LoggedData -> HomeModel.Model -> Html Msg +paymentsSearch loggedData { search } = + Html.div + [ class "search" ] + [ span + [ class "label" ] + [ text (getMessage "Search" loggedData.translations) ] + , input + [ value search + , onInput (Msg.UpdateLoggedIn << LoggedInMsg.HomeMsg << HomeMsg.UpdateSearch) + ] + [] + ] |