only show relevant filters on service listing
This commit is contained in:
parent
7f76948875
commit
b11fa2c21b
2 changed files with 109 additions and 44 deletions
|
@ -86,12 +86,12 @@
|
|||
<div>
|
||||
<select class="form-select" id="category" name="category" @change="submitForm()">
|
||||
<option value="">All Categories</option>
|
||||
{% for category in categories %}
|
||||
{% for category in available_categories %}
|
||||
<option value="{{ category.id }}" {% if request.GET.category == category.id|stringformat:'i' %}selected{% endif %}>
|
||||
{{ category.name }}
|
||||
</option>
|
||||
{% if category.children.all %}
|
||||
{% for subcategory in category.children.all %}
|
||||
{% if category.available_children %}
|
||||
{% for subcategory in category.available_children %}
|
||||
<option value="{{ subcategory.id }}" {% if request.GET.category == subcategory.id|stringformat:'i' %}selected{% endif %}>
|
||||
{{ subcategory.name }}
|
||||
</option>
|
||||
|
@ -110,7 +110,7 @@
|
|||
<div>
|
||||
<select class="form-select" id="consulting_partner" name="consulting_partner" @change="submitForm()">
|
||||
<option value="">All Partners</option>
|
||||
{% for partner in consulting_partners %}
|
||||
{% for partner in available_consulting_partners %}
|
||||
<option value="{{ partner.id }}" {% if request.GET.consulting_partner == partner.id|stringformat:'i' %}selected{% endif %}>
|
||||
{{ partner.name }}
|
||||
</option>
|
||||
|
@ -127,7 +127,7 @@
|
|||
<div>
|
||||
<select class="form-select" id="cloud_provider" name="cloud_provider" @change="submitForm()">
|
||||
<option value="">All Providers</option>
|
||||
{% for provider in cloud_providers %}
|
||||
{% for provider in available_cloud_providers %}
|
||||
<option value="{{ provider.id }}" {% if request.GET.cloud_provider == provider.id|stringformat:'i' %}selected{% endif %}>
|
||||
{{ provider.name }}
|
||||
</option>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue