only show plans when available

This commit is contained in:
Tobias Brunner 2025-04-07 16:33:49 +02:00
parent 63ac43a045
commit 12fdf7ed87
No known key found for this signature in database

View file

@ -142,6 +142,7 @@
{% endif %}
<!-- Plans -->
{% if offering.plans.all %}
<div class="pt-24" id="plans" style="scroll-margin-top: 30px;">
<h3 class="fs-24 fw-semibold lh-1 mb-12">Available Plans</h3>
<div class="row">
@ -179,6 +180,13 @@
</div>
{% endfor %}
</div>
{% else %}
<div class="col-12" id="interest" style="scroll-margin-top: 30px;">
<h4 class="mb-3">I'm interested in this offering</h4>
{% load contact_tags %}
{% embedded_contact_form source="Offering Interest" service=offering.service offering_id=offering.id %}
</div>
{% endif %}
{% if offering.plans.exists %}
<div class="pt-40">