A married drama teacher took a pupil to a production of Matilda before having sex in a hotel, an education standards panel has heard.