Mistake in the view.

It should be a layout, since it has a yield and wraps whatever content template you want for the modal.