Change bool_formatter() to be backward compatible with bootstrap2