diff --git a/hub/services/static/js/price-calculator/ui-manager.js b/hub/services/static/js/price-calculator/ui-manager.js index 9b6a500..729c069 100644 --- a/hub/services/static/js/price-calculator/ui-manager.js +++ b/hub/services/static/js/price-calculator/ui-manager.js @@ -87,22 +87,22 @@ class UIManager { updateAddonPricingDisplay(domManager, mandatoryAddons, selectedOptionalAddons) { // Get references to the managed service includes elements const managedServiceIncludesContainer = domManager.get('managedServiceIncludesContainer'); - const managedServiceToggleButton = domManager.get('managedServiceToggleButton'); if (managedServiceIncludesContainer) { // Clear existing content managedServiceIncludesContainer.innerHTML = ''; - // Show/hide the toggle button based on mandatory addons - const hasMandatoryAddons = mandatoryAddons && mandatoryAddons.length > 0; - - // Only control button visibility - let Bootstrap handle collapse behavior completely - if (managedServiceToggleButton) { - managedServiceToggleButton.style.display = hasMandatoryAddons ? 'inline-block' : 'none'; - } + // Always add "Compute" as the first item + const computeRow = document.createElement('div'); + computeRow.className = 'd-flex justify-content-between small text-muted mb-1'; + computeRow.innerHTML = ` + Compute (vCPUs & Memory) + Included + `; + managedServiceIncludesContainer.appendChild(computeRow); // Add mandatory addons to the managed service includes section - if (hasMandatoryAddons) { + if (mandatoryAddons && mandatoryAddons.length > 0) { mandatoryAddons.forEach(addon => { const addonRow = document.createElement('div'); addonRow.className = 'd-flex justify-content-between small text-muted mb-1'; @@ -126,10 +126,10 @@ class UIManager { if (selectedOptionalAddons && selectedOptionalAddons.length > 0) { selectedOptionalAddons.forEach(addon => { const addonRow = document.createElement('div'); - addonRow.className = 'd-flex justify-content-between mb-2'; + addonRow.className = 'd-flex justify-content-between align-items-center mb-2'; addonRow.innerHTML = ` - Add-on: ${addon.name} - CHF ${addon.price} + Add-on: ${addon.name} + CHF ${addon.price} `; addonPricingContainer.appendChild(addonRow); }); diff --git a/hub/services/templates/services/offering_detail.html b/hub/services/templates/services/offering_detail.html index c0020dc..c0db7d3 100644 --- a/hub/services/templates/services/offering_detail.html +++ b/hub/services/templates/services/offering_detail.html @@ -440,13 +440,13 @@ function selectPlan(element) {