Modular terminal block with opening cover