A simple component to edit a model inside a dialog.