Density functional theory for non-uniform associating ionic fluids