Removed duplicate code with a view partial

_form.html.erb is used to remove duplicate code from new.html.er and
edit.html.er