display cost schedule predefined type in web ui

This commit is contained in:
myoualid
2024-09-06 12:08:45 +01:00
parent 008e2c01c3
commit be71eb274b
@@ -211,10 +211,15 @@ function handleCostSchedulesData(data) {
costScheduleDiv.innerHTML = "";
costSchedules.forEach((costSchedule) => {
costSchedule.UpdateDate = new Date(costSchedule.UpdateDate);
const mainContainer = CostUI.text("Updated On: " + costSchedule.UpdateDate);
const predefinedType = CostUI.text("Predefined Type: " + costSchedule.PredefinedType)
const updatedOn = CostUI.text("Updated On: " + costSchedule.UpdateDate);
const div = document.createElement("div");
div.appendChild(predefinedType);
div.appendChild(updatedOn);
const callback = () => loadCostSchedule(costSchedule.id, blenderId);
const card = CostUI.createCard(costSchedule.Name, mainContainer, callback);
const card = CostUI.createCard(costSchedule.Name, div, callback);
costScheduleDiv.append(card);
});
}