Two men have admitted attacking a teenager on a night out who later died from his injuries in Ilkeston.