diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-04-28 14:01:30 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-04-28 14:01:30 +0200 |
commit | d91e09af7d968afddf6f4f963611e0e37b0bbbd5 (patch) | |
tree | 758de759b26096f66f814ed2304ce07db91b1b75 /Main.hs | |
parent | 9b7883b6a60fa8ac7fb2112135f2f0dd8b6a051a (diff) | |
download | comatose-d91e09af7d968afddf6f4f963611e0e37b0bbbd5.tar.gz comatose-d91e09af7d968afddf6f4f963611e0e37b0bbbd5.tar.bz2 comatose-d91e09af7d968afddf6f4f963611e0e37b0bbbd5.zip |
Add simple filter function
Diffstat (limited to 'Main.hs')
-rw-r--r-- | Main.hs | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -160,10 +160,14 @@ introduction = section_ $ do protocols :: Database -> Html () protocols db = section_ [id_ "protocols"] $ do h2_ "Protocols" - div_ [id_ "protosort"] $ do + div_ [id_ "protosort", class_ "form-inline"] $ do + label_ [for_ "filter"] "Filter" + " " + input_ [id_ "filter", type_ "text", class_ "form-control"] + " " label_ [for_ "sort"] "Sort by" " " - select_ [id_ "sort"] $ do + select_ [id_ "sort", class_ "form-control"] $ do option_ [value_ "name"] "Name" option_ [value_ "year"] "Year" forM_ (M.toList $ dalgos db) (protoentry db) |