Commit ce7ff521 authored by Mat's avatar Mat

wip.. placement de l'offre dans la liste des actus

parent 2fef7bcd
......@@ -18,6 +18,8 @@ function reloadGridInfos()
let div = buildItemLettreInfos(json[i]);
sortable.appendChild(div);
}
let offre = getDisplayOffreLegumes(id_lettre);
sortable.appendChild(offre);
});
}
......@@ -28,7 +30,7 @@ function reloadGridInfos()
*/
function buildItemLettreInfos(jsonRow)
{
//console.log(jsonRow);
console.log(jsonRow);
let div = document.createElement('div');
div.classList.add('ui-state-default', 'info');
......@@ -40,6 +42,22 @@ function buildItemLettreInfos(jsonRow)
}
/*
* Récupère et affiche l'offre
*/
function getDisplayOffreLegumes(id_lettre)
{
console.log(id_lettre);
let div = document.createElement('div');
div.classList.add('ui-state-default', 'info', 'offre');
div.dataset.infoId = -1;
div.textContent = "OFFRE DE LEGUMES";
return div;
}
/*
* =================================
* Initialise l'affichage de la page
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment