diff --git a/src/servala/frontend/forms/service.py b/src/servala/frontend/forms/service.py index 6047293..d7ea60f 100644 --- a/src/servala/frontend/forms/service.py +++ b/src/servala/frontend/forms/service.py @@ -17,6 +17,6 @@ class ServiceFilterForm(forms.Form): queryset = queryset.filter(category=category) if cloud_provider := self.cleaned_data.get("cloud_provider"): queryset = queryset.filter( - service_offerings__control_planes__cloud_provider=cloud_provider + offerings__control_planes__cloud_provider=cloud_provider ) return queryset diff --git a/src/servala/frontend/templates/frontend/organizations/services.html b/src/servala/frontend/templates/frontend/organizations/services.html index 6c6bba9..0e8fd16 100644 --- a/src/servala/frontend/templates/frontend/organizations/services.html +++ b/src/servala/frontend/templates/frontend/organizations/services.html @@ -5,35 +5,44 @@ {% translate "Services" %} {% endblock page_title %} {% endblock html_title %} -{% block card_content %} -
- {{ filter_form }} -
- {% for service in services %} -
-
-
-
-
- {% if service.logo %} - {{ service.name }} - {% endif %} -
{{ service.name }}
-
- {% if service.description %}

{{ service.description }}

{% endif %} -
- +{% block content %} +
+
+
+
+
+ {{ filter_form }} +
- {% empty %} -

{% translate "No services found." %}

- {% endfor %} + {% for service in services %} +
+
+
+ {% if service.logo %} + {{ service.name }} + {% endif %} +
+

{{ service.name }}

+ {{ service.category }} +
+
+
+ {% if service.description %}

{{ service.description }}

{% endif %} +
+ +
+
+ {% empty %} +

{% translate "No services found." %}

+ {% endfor %} +
-{% endblock card_content %} +{% endblock content %}