mirror of
https://github.com/ae-utbm/sith.git
synced 2025-10-09 08:14:39 +00:00
remove spaces from autocomplete selects
This commit is contained in:
@@ -1,23 +1,25 @@
|
|||||||
{% for js in statics.js %}
|
{% spaceless %}
|
||||||
<script-once type="module" src="{{ js }}"></script-once>
|
{% for js in statics.js %}
|
||||||
{% endfor %}
|
<script-once type="module" src="{{ js }}"></script-once>
|
||||||
{% for css in statics.css %}
|
|
||||||
<link-once rel="stylesheet" type="text/css" href="{{ css }}" defer></link-once>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
<{{ component }} name="{{ widget.name }}" {% include "django/forms/widgets/attrs.html" %}>
|
|
||||||
{% for group_name, group_choices, group_index in widget.optgroups %}
|
|
||||||
{% if group_name %}
|
|
||||||
<optgroup label="{{ group_name }}">
|
|
||||||
{% endif %}
|
|
||||||
{% for widget in group_choices %}
|
|
||||||
{% include widget.template_name %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if group_name %}
|
{% for css in statics.css %}
|
||||||
</optgroup>
|
<link-once rel="stylesheet" type="text/css" href="{{ css }}" defer></link-once>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
<{{ component }} name="{{ widget.name }}" {% include "django/forms/widgets/attrs.html" %}>
|
||||||
|
{% for group_name, group_choices, group_index in widget.optgroups %}
|
||||||
|
{% if group_name %}
|
||||||
|
<optgroup label="{{ group_name }}">
|
||||||
|
{% endif %}
|
||||||
|
{% for widget in group_choices %}
|
||||||
|
{% include widget.template_name %}
|
||||||
|
{% endfor %}
|
||||||
|
{% if group_name %}
|
||||||
|
</optgroup>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% if initial %}
|
||||||
|
<slot style="display:none" name="initial">{{ initial }}</slot>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
</{{ component }}>
|
||||||
{% if initial %}
|
{% endspaceless %}
|
||||||
<slot style="display:none" name="initial">{{ initial }}</slot>
|
|
||||||
{% endif %}
|
|
||||||
</{{ component }}>
|
|
@@ -67,13 +67,13 @@
|
|||||||
<option value="FIN">{% trans %}Confirm (FIN){% endtrans %}</option>
|
<option value="FIN">{% trans %}Confirm (FIN){% endtrans %}</option>
|
||||||
<option value="ANN">{% trans %}Cancel (ANN){% endtrans %}</option>
|
<option value="ANN">{% trans %}Cancel (ANN){% endtrans %}</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
{% for category in categories.keys() %}
|
{%- for category in categories.keys() -%}
|
||||||
<optgroup label="{{ category }}">
|
<optgroup label="{{ category }}">
|
||||||
{% for product in categories[category] %}
|
{%- for product in categories[category] -%}
|
||||||
<option value="{{ product.id }}">{{ product }}</option>
|
<option value="{{ product.id }}">{{ product }}</option>
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
</optgroup>
|
</optgroup>
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
</counter-product-select>
|
</counter-product-select>
|
||||||
|
|
||||||
<input type="submit" value="{% trans %}Go{% endtrans %}"/>
|
<input type="submit" value="{% trans %}Go{% endtrans %}"/>
|
||||||
|
Reference in New Issue
Block a user