Started work on AJAX with a different approach, this is WIP but edit contact currently uses it. with this approach your dont have to touch the js or modal template just the ajax

This commit is contained in:
johnnyq
2025-02-15 00:50:52 -05:00
parent 117861034a
commit 74a1603943
9 changed files with 557 additions and 290 deletions

View File

@@ -0,0 +1,19 @@
<!-- Static Modal Container -->
<div class="modal fade" id="editContactModal" tabindex="-1" role="dialog" aria-labelledby="editContactModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<!-- Modal Header with Dynamic Title -->
<div class="modal-header">
<h5 class="modal-title" id="editContactModalLabel">Edit Contact</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<!-- Modal Body: Content will be loaded via AJAX -->
<div class="modal-body" id="editContactModalContent">
<!-- Loading message shown until AJAX returns -->
<p>Loading...</p>
</div>
</div>
</div>
</div>