How to create a dialog to prompt the user for input in Web Player?

I am looking at how to create custom dialogs that work in the Web Player as I need to capture the below user input to pass to my existing custom tool. A mock-up of the dialog can be seen below:

Does anyone know what resource I should be looking at to get a sample of something similar?

(1) Answer