Woakes helps put Warwickshire ahead