fixes to mandatory addon display

This commit is contained in:
Tobias Brunner 2025-07-16 11:38:49 +02:00
parent 27c41a6187
commit d3e0fdd941
Signed by: tobru
SSH key fingerprint: SHA256:kOXg1R6c11XW3/Pt9dbLdQvOJGFAy+B2K6v6PtRWBGQ
3 changed files with 15 additions and 16 deletions

View file

@ -9,7 +9,6 @@
{% block extra_js %}
{% if debug %}
<!-- Development: Load individual modules for easier debugging -->
{% compress js inline %}
<script src="{% static 'js/price-calculator/dom-manager.js' %}"></script>
<script src="{% static 'js/price-calculator/pricing-data-manager.js' %}"></script>
<script src="{% static 'js/price-calculator/plan-manager.js' %}"></script>
@ -51,7 +50,6 @@ function selectPlan(element) {
}
}
</script>
{% endcompress %}
{% else %}
<!-- Production: Load compressed bundle -->
{% compress js %}
@ -444,7 +442,7 @@ function selectPlan(element) {
<div class="d-flex justify-content-between align-items-center mb-2">
<div class="d-flex align-items-center">
<span>Managed Service (incl. Compute)</span>
<button class="btn btn-link btn-sm p-0 ms-2 text-muted" type="button" data-bs-toggle="collapse" data-bs-target="#managedServiceIncludes" aria-expanded="false" aria-controls="managedServiceIncludes" title="Show what's included" style="display: none;">
<button class="btn btn-link btn-sm p-0 ms-2 text-muted" type="button" data-bs-toggle="collapse" data-bs-target="#managedServiceIncludes" aria-expanded="false" aria-controls="managedServiceIncludes" title="Show included mandatory add-ons" style="display: none;">
<i class="bi bi-info-circle" id="managedServiceToggleIcon"></i>
</button>
</div>
@ -452,12 +450,8 @@ function selectPlan(element) {
</div>
<!-- What's included in managed service (collapsible) -->
<div class="collapse" id="managedServiceIncludes" style="display: none;">
<div class="ps-3 border-start border-2 border-success-subtle">
<div class="small text-muted mb-2">
<i class="bi bi-check-circle-fill text-success me-1"></i>
<em>Included in managed service price:</em>
</div>
<div class="collapse" id="managedServiceIncludes">
<div class="ps-3 border-start border-2 border-subtle">
<div id="managedServiceIncludesContainer">
<!-- Required add-ons will be dynamically added here -->
</div>