Create custom page creation modal

Hello every one!

I want to create a custom page creation modal. But I get an error “Undefined index: rout”.

I did exactly as they said but still the same result.
This is what I have in my blueprint of custom page modal.

This is where I want to create the file.

What am I doing wrong. Can someone help me?