A generic model of double-diffusive convection: extended and localized patterns