diff --git a/hub/services/migrations/0017_service_tagline.py b/hub/services/migrations/0017_service_tagline.py new file mode 100644 index 0000000..e207609 --- /dev/null +++ b/hub/services/migrations/0017_service_tagline.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.5 on 2025-03-03 16:52 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("services", "0016_cloudprovider_disable_listing_and_more"), + ] + + operations = [ + migrations.AddField( + model_name="service", + name="tagline", + field=models.TextField(blank=True, max_length=500, null=True), + ), + ] diff --git a/hub/services/models.py b/hub/services/models.py index 7035fd3..9b126bd 100644 --- a/hub/services/models.py +++ b/hub/services/models.py @@ -116,6 +116,7 @@ class Service(models.Model): name = models.CharField(max_length=200) slug = models.SlugField(max_length=250, unique=True) description = ProseEditorField() + tagline = models.TextField(max_length=500, blank=True, null=True) logo = models.ImageField( upload_to="service_logos/", validators=[validate_image_size], diff --git a/hub/services/templates/services/embedded_contact_form.html b/hub/services/templates/services/embedded_contact_form.html index d0f719d..660be51 100644 --- a/hub/services/templates/services/embedded_contact_form.html +++ b/hub/services/templates/services/embedded_contact_form.html @@ -8,6 +8,13 @@ {% if details %} {% endif %} + + +
+ + +
+ {% if service %} @@ -54,6 +61,17 @@ {% endif %} + {% if choices %} +
+ + +
+ {% endif %} +
{{ form.message|addclass:"form-control" }} diff --git a/hub/services/templates/services/homepage.html b/hub/services/templates/services/homepage.html index 91d9b46..258ccbc 100644 --- a/hub/services/templates/services/homepage.html +++ b/hub/services/templates/services/homepage.html @@ -1,7 +1,7 @@ {% extends 'services/base.html' %} {% load static %} -{% block title %}The Cloud Native Services Hub{% endblock %} +{% block title %}Open Cloud Native Services Hub{% endblock %} {% block content %}
@@ -9,7 +9,7 @@
-

Servala - The Cloud Native Service Hub

+

Servala - Open Cloud Native Service Hub

Unlock the Power of Cloud Native Applications.

Servala connects businesses, developers, and cloud service providers on one unique hub with secure, scalable, and easy-to-use cloud-native services.

@@ -169,7 +169,7 @@
-

Servala - The Cloud Native Service Hub

+

Servala - Open Cloud Native Service Hub

Servala connects businesses, developers, and cloud service providers on one unique hub with secure, scalable, and easy-to-use cloud-native services.

Discover:

diff --git a/hub/services/templates/services/offering_detail.html b/hub/services/templates/services/offering_detail.html index 9fbd3e0..daae63c 100644 --- a/hub/services/templates/services/offering_detail.html +++ b/hub/services/templates/services/offering_detail.html @@ -149,11 +149,6 @@
{% endif %}
-
-

Order This Plan

- {% load contact_tags %} - {% embedded_contact_form source="Plan Order" service=offering.service offering_id=offering.id plan_id=plan.id %} -
{% empty %} @@ -167,6 +162,18 @@ {% endfor %} + + {% if offering.plans.exists %} +
+

I'm interested in a plan

+
+
+ {% load contact_tags %} + {% embedded_contact_form source="Plan Order" service=offering.service offering_id=offering.id choices=offering.plans.all choice_label="Select a Plan" %} +
+
+
+ {% endif %} diff --git a/hub/services/templates/services/partner_list.html b/hub/services/templates/services/partner_list.html index 812551d..c4ccdc1 100644 --- a/hub/services/templates/services/partner_list.html +++ b/hub/services/templates/services/partner_list.html @@ -85,7 +85,7 @@
- - {% for provider in cloud_providers %} - - {% endfor %} - -
- -
Clear diff --git a/hub/services/templates/services/service_detail.html b/hub/services/templates/services/service_detail.html index a68433a..a0e0552 100644 --- a/hub/services/templates/services/service_detail.html +++ b/hub/services/templates/services/service_detail.html @@ -106,6 +106,13 @@ {% endfor %}
+ {% if service.tagline %} +
+

+ "{{ service.tagline }}" +

+
+ {% endif %} diff --git a/hub/services/templates/services/service_list.html b/hub/services/templates/services/service_list.html index 1fbc7f0..25a0bf6 100644 --- a/hub/services/templates/services/service_list.html +++ b/hub/services/templates/services/service_list.html @@ -86,12 +86,12 @@
- {% for partner in consulting_partners %} + {% for partner in available_consulting_partners %} @@ -127,7 +127,7 @@