shared partial for new and edit forms; exercise 9.6.5