remove spaces from autocomplete selects

This commit is contained in:
imperosol
2025-09-29 17:43:50 +02:00
parent 543a424258
commit 40c3276c3c
2 changed files with 27 additions and 25 deletions

View File

@@ -1,3 +1,4 @@
{% spaceless %}
{% for js in statics.js %}
<script-once type="module" src="{{ js }}"></script-once>
{% endfor %}
@@ -21,3 +22,4 @@
<slot style="display:none" name="initial">{{ initial }}</slot>
{% endif %}
</{{ component }}>
{% endspaceless %}

View File

@@ -67,13 +67,13 @@
<option value="FIN">{% trans %}Confirm (FIN){% endtrans %}</option>
<option value="ANN">{% trans %}Cancel (ANN){% endtrans %}</option>
</optgroup>
{% for category in categories.keys() %}
{%- for category in categories.keys() -%}
<optgroup label="{{ category }}">
{% for product in categories[category] %}
{%- for product in categories[category] -%}
<option value="{{ product.id }}">{{ product }}</option>
{% endfor %}
{%- endfor -%}
</optgroup>
{% endfor %}
{%- endfor -%}
</counter-product-select>
<input type="submit" value="{% trans %}Go{% endtrans %}"/>