Tell us what you are trying to do?
I'm cycling through several posts in a table on a page I'm having and I want to add a button to each item in the table to open the form I've made in a modal to edit the information from the front end. I've been trying to read through the documentation you have about adding a form to a layout and I don't think it's the same thing to have it recur for each item.
Note: Please replace "slug-of-the-edit-form" with the actual slug/name of your edit form.
The first part of the code will show the button to open the popup for each result, while the second part will show the edit form for each result inside the modal.
I hope this helps and please let me know if you need any further assistance around this.