creates a form partial to be shared by edit and create