This commit is contained in:
anto
2025-01-09 10:12:17 +01:00
parent 2de78999f7
commit 648460a967
9 changed files with 208 additions and 184 deletions

View File

@@ -15,7 +15,7 @@ function display_projects() {
<th>${global_project_list[i].name}</th>
<th>${formatDate(global_project_list[i].start_date)}</th>
<th>${global_project_list[i].status}</th>
<th><button class="project_detail btn btn-primary">détails de ${global_project_list[i].titre}</button></th>
<th><button class="project_detail btn btn-primary">détails de ${global_project_list[i].name}</button></th>
</tr>`;
}
table.innerHTML = datas;
@@ -34,7 +34,7 @@ function display_projects() {
});
}
}
getDataProjectFromApi()
getAllProject()
.then(project_list => {
global_project_list = project_list;
// Call the next function here