Move shared new/edit code to fields partial