test
This commit is contained in:
@@ -5,13 +5,17 @@ function display_projects() {
|
||||
let datas = `<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Date</th>
|
||||
<th>Status</th>
|
||||
<th>Actions</th>
|
||||
</tr> `;
|
||||
for (let i = 0; i < global_project_list.rows.length; i++) {
|
||||
datas += `<tr>
|
||||
<th>${global_project_list.rows[i].id}</th>
|
||||
<th>${global_project_list.rows[i].name}</th>
|
||||
<th><button class="project_detail btn btn-primary">détails de ${global_project_list.rows[i].name}</button></th>
|
||||
<th>${global_project_list.rows[i].titre}</th>
|
||||
<th>${formatDate(global_project_list.rows[i].creation)}</th>
|
||||
<th>${global_project_list.rows[i].status}</th>
|
||||
<th><button class="project_detail btn btn-primary">détails de ${global_project_list.rows[i].titre}</button></th>
|
||||
</tr>`;
|
||||
}
|
||||
table.innerHTML = datas;
|
||||
|
||||
Reference in New Issue
Block a user