This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bot_message { | |
background: #F2F2F2 !important; | |
border-top: 8px solid #F2F2F2; | |
color: #666; | |
margin: 0 !important; | |
} | |
.message { | |
margin: 4px 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Text.Html | |
dateSelect year = dateSelect "born_on_month" [1..12] monthName | |
+++ dateSelect "born_on_day" [1..31] show | |
+++ dateSelect "born_on_year" [year-80..year] show | |
where monthName x = words "January February March April May June July August September October November December" !! (x - 1) | |
dateSelect n xs f = (select << map (dateOption f) xs) ! [name n] | |
dateOption f x = (option << f x) ! [value $ show x] |