From be71eb274b16cd510b724fbeed70550075fa3cd5 Mon Sep 17 00:00:00 2001 From: myoualid Date: Fri, 6 Sep 2024 12:08:45 +0100 Subject: [PATCH] display cost schedule predefined type in web ui --- src/bonsai/bonsai/bim/data/webui/static/js/cost.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bonsai/bonsai/bim/data/webui/static/js/cost.js b/src/bonsai/bonsai/bim/data/webui/static/js/cost.js index 2b78e031c3..b9e2f29919 100644 --- a/src/bonsai/bonsai/bim/data/webui/static/js/cost.js +++ b/src/bonsai/bonsai/bim/data/webui/static/js/cost.js @@ -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); }); }