create a class for the form. the class can be in a seperate file.
we will name it

inside the main app:
import the from
create instance of the form
render a template and passing the from to it

in the template file, you can access the from like this: