create-container: submit modal when pressing the Enter key

This required making the buttons part of the form: pressing enter in
an input field will trigger the click handler for the first button
inside the form. Changing the structure like this does not affect the
layout since the form element itself doesn't have any styling.