Fix delete-then-edit bug

Clear the id field and restore the form title and submit button text
when deleting the object being edited.