cleanup cta on service detail

This commit is contained in:
Tobias Brunner 2025-02-28 16:05:59 +01:00
parent 9371b86470
commit baaa7ab908
No known key found for this signature in database

View file

@ -116,25 +116,22 @@
{% endif %}
<!-- CTA -->
{% if service.is_coming_soon %}
<div class="pt-24">
<div class="page-action">
{% if service.is_coming_soon %}
<a class="btn btn-primary btn-lg mr-md-17 mb-17 mb-md-0px mb-lg-17 mb-xl-0 w-100 w-md-auto" href="{% url 'services:create_lead' service.slug %}"
role="button">I'm interested in this service</a>
{% elif service.offerings.exists %}
{% for offering in service.offerings.all %}
<a class="btn btn-primary btn-lg mr-md-17 mb-17 mb-md-0px mb-lg-17 mb-xl-0 w-100 w-md-auto" href="{% url 'services:offering_detail' offering.cloud_provider.slug offering.service.slug %}"
role="button">Get it on {{ offering.cloud_provider.name }}</a>
{% endfor %}
{% else %}
<a class="btn btn-primary btn-lg mr-md-17 mb-17 mb-md-0px mb-lg-17 mb-xl-0 w-100 w-md-auto" href="{% url 'services:create_lead' service.slug %}"
role="button">I'm interested in this service</a>
{% endif %}
</div>
</div>
{% endif %}
{% if service.offerings.exists %}
<div class="pt-24">
<div class="page-action">
{% for offering in service.offerings.all %}
<a class="btn btn-primary btn-lg mr-md-17 mb-17 mb-md-0px mb-lg-17 mb-xl-0 w-100 w-md-auto" href="{% url 'services:offering_detail' offering.cloud_provider.slug offering.service.slug %}"
role="button">Get it on {{ offering.cloud_provider.name }}</a>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
</div>