One of two girls accused of a knife attack on a teacher at a southern suburbs high school pleads guilty to a charge of attempted murder.