Ex-principal: Rights were violated when losing job over gift