I'm not understanding how to make the "Edit" button work within modal ...
Screen (clicking on details opens this mode where you have the edit button): Mymodal: informationcontainedwithinthemodal:
You have to create / call some action on the EDIT button.
You can do this using JavaScript.
<button type="button" onclick="suafuncaoJS()" class="btn btn-dark">Editar</button>
I recommend making an ajax request. Search a little about it.
You can also put a href on it and send it to another page.
<button type="button" href="#paginadedestino" class="btn btn-dark">Editar</button>