Adds warning when editing a container visible to students

STUD-1915. This is a dupe of #4322 because that PR was accidentally closed with zero commits while I was doing git incantations.

@cahrens @andy-armstrong 
I would either just remove the local variable, or at least move this down lower past the preview_lms_link so it doesn't break up the flow of determining the unit.