diff --git a/assets/app.js b/assets/app.js index 213dbd3..353aae1 100644 --- a/assets/app.js +++ b/assets/app.js @@ -4,32 +4,7 @@ * This file will be included onto the page via the importmap() Twig function, * which should already be in your base.html.twig. */ +import './bootstrap.js'; +import './vendor/bootstrap/bootstrap.index.js'; +import './vendor/bootstrap/dist/css/bootstrap.min.css'; import './styles/app.css'; - -function filterCasesByUser(userId) { - fetch('/index.php/api/filter-cases-by-user', { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ userId: userId }) - }) - .then(response => response.json()) - .then(data => { - const caseList = document.getElementById('case-list'); - caseList.innerHTML = ''; - data.forEach(c => { - caseList.innerHTML += ` -