use Bootstrap InputGroups

see http://getbootstrap.com/components/#input-groups-buttons-segmented