From b5599b3e0e47746d2150df4048ada05abfef5c35 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 25 Feb 2025 11:01:37 +0100 Subject: [PATCH] style offering detail page --- .../templates/services/offering_detail.html | 215 ++++++++++++------ 1 file changed, 144 insertions(+), 71 deletions(-) diff --git a/hub/services/templates/services/offering_detail.html b/hub/services/templates/services/offering_detail.html index 32c4eb7..a51c4ad 100644 --- a/hub/services/templates/services/offering_detail.html +++ b/hub/services/templates/services/offering_detail.html @@ -1,87 +1,160 @@ {% extends 'services/base.html' %} {% block content %} -
-
-
-
- {% if offering.service.logo %} - {{ offering.service.name }} logo - {% endif %} -
-

{{ offering.service.name }}

-

- on - - {{ offering.cloud_provider.name }} - -

+
+
+
+ +
+
+ +
+ {% if offering.service.logo %} + {{ offering.service.name }} logo + {% endif %} +
+ + + {% if offering.highlights.exists %} +
+

Highlights

+ +
+ {% endif %} + + + {% if offering.service.consulting_partners.exists %} +
+

Consulting Partners

+ +
+ {% endif %} + + + {% if offering.service.external_links.exists %} +
+

External Links

+ +
+ {% endif %}
- {% if offering.cloud_provider.logo %} - {{ offering.cloud_provider.name }} logo - {% endif %} -
-
- {{ offering.description|safe }} -
-
-
- - -
-
-

Available Plans

-
- {% for plan in offering.plans.all %} -
-
- {% if plan.is_default %} -
- Recommended Plan -
- {% endif %} -
-

{{ plan.name }}

- -
- {{ plan.description|safe }} -
- - {% if plan.features %} -
- {{ plan.features|safe }} -
+ +
+
+ +
+
+ {% if offering.cloud_provider.logo %} +

+ {{ offering.cloud_provider.name }} logo +

{% endif %} +

{{ offering.service.name }}

+
+
+ {% for category in offering.service.categories.all %} + + {% endfor %} +
+
+ {{ offering.short_description|safe }} +
+
-
- {% for price in plan.prices.all %} -
- {{ price.currency.symbol }}{{ price.price }} - {{ price.currency.code }} per {{ price.term.name }} + +
+

Overview

+
+ {{ offering.description|safe }} +
+
+ + +
+

Available Plans

+
+ {% for plan in offering.plans.all %} +
+
+
+

{{ plan.description|safe }}

- {% endfor %} +
+

{{ plan.name }}

+
+
    + {% for price in plan.prices.all %} +
  • {{ price.currency.symbol }}{{ price.price }} {{ price.currency.code }} per {{ price.term.name }}
  • + {% endfor %} +
+
+
+ +
- - Select This Plan + {% empty %} +
+
+ No plans available yet. + Show Interest +
+
+ {% endfor %}
- {% empty %} -
-
- No plans available yet. - Show Interest -
-
- {% endfor %} +
-
+ {% endblock %} \ No newline at end of file