Relocated common form code into a partial view.