Hello Grav community,
Can you please briefly explain what steps are necessary to create a dialog that displays a form and a 'save' button? After pushing the 'save' button, the data should be saved somewhere in the plugin. The result should be similar to the 'New Page' dialog in the admin panel.
Now, I'm utterly new to Grav, so a brief overview would be very helpful. A few a few more specific questions are:
How can the dialog be created and displayed?
How to display a form in the dialog?
Where should the form be stored in the plugin? I.e. at which directory?
How can the data be saved in one of the plugins subdirectories after the 'save' button has been pushed?
How to dismiss the dialog if the cancel/x is pushed?
I took a closer look at the source code of the admin plugin, but could not figure out how to display the dialog, so a brief overview what needs to be done would be very helpful. Thank you.
__