From 12fdf7ed8727c26f45bb5fa93c9af6e50b908449 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 7 Apr 2025 16:33:49 +0200 Subject: [PATCH] only show plans when available --- hub/services/templates/services/offering_detail.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hub/services/templates/services/offering_detail.html b/hub/services/templates/services/offering_detail.html index 36c2a4d..bfe3441 100644 --- a/hub/services/templates/services/offering_detail.html +++ b/hub/services/templates/services/offering_detail.html @@ -142,6 +142,7 @@ {% endif %} + {% if offering.plans.all %}

Available Plans

@@ -179,6 +180,13 @@
{% endfor %}
+ {% else %} +
+

I'm interested in this offering

+ {% load contact_tags %} + {% embedded_contact_form source="Offering Interest" service=offering.service offering_id=offering.id %} +
+ {% endif %} {% if offering.plans.exists %}