Frappe Add new Record from web view

Hello. I am fairly new to frappe framework. i created a custom html page in my /www folder.
But i want to be able to add a new record to my doctype from the webview.
Simply put, i want the “New” button in screenshot 1 to be in screenshot 2
screenshot 1:

screenshot 2: