remove all provider and all service option from pricelist
This commit is contained in:
parent
033eea92cd
commit
fbca67ef66
2 changed files with 8 additions and 8 deletions
|
@ -228,22 +228,16 @@
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label for="cloud_provider" class="form-label">Cloud Provider</label>
|
<label for="cloud_provider" class="form-label">Cloud Provider</label>
|
||||||
<select name="cloud_provider" id="cloud_provider" class="form-select filter-select">
|
<select name="cloud_provider" id="cloud_provider" class="form-select filter-select">
|
||||||
<option value="">All Providers</option>
|
|
||||||
{% for provider in all_cloud_providers %}
|
{% for provider in all_cloud_providers %}
|
||||||
<option value="{{ provider }}" {% if provider == filter_cloud_provider %}selected{% endif %}>
|
<option value="{{ provider }}" {% if provider == filter_cloud_provider %}selected{% endif %}>{{ provider }}</option>
|
||||||
{{ provider }}
|
|
||||||
</option>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<label for="service" class="form-label">Service</label>
|
<label for="service" class="form-label">Service</label>
|
||||||
<select name="service" id="service" class="form-select filter-select">
|
<select name="service" id="service" class="form-select filter-select">
|
||||||
<option value="">All Services</option>
|
|
||||||
{% for service in all_services %}
|
{% for service in all_services %}
|
||||||
<option value="{{ service }}" {% if service == filter_service %}selected{% endif %}>
|
<option value="{{ service }}" {% if service == filter_service %}selected{% endif %}>{{ service }}</option>
|
||||||
{{ service }}
|
|
||||||
</option>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -544,6 +544,12 @@ def pricelist(request):
|
||||||
all_compute_plan_groups.append("No Group") # Add option for plans without groups
|
all_compute_plan_groups.append("No Group") # Add option for plans without groups
|
||||||
all_service_levels = [choice[1] for choice in VSHNAppCatPrice.ServiceLevel.choices]
|
all_service_levels = [choice[1] for choice in VSHNAppCatPrice.ServiceLevel.choices]
|
||||||
|
|
||||||
|
# If no filter is specified, select the first available provider/service by default
|
||||||
|
if not filter_cloud_provider and all_cloud_providers:
|
||||||
|
filter_cloud_provider = all_cloud_providers[0]
|
||||||
|
if not filter_service and all_services:
|
||||||
|
filter_service = all_services[0]
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
"pricing_data_by_group_and_service_level": final_context_data,
|
"pricing_data_by_group_and_service_level": final_context_data,
|
||||||
"show_discount_details": show_discount_details,
|
"show_discount_details": show_discount_details,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue