templates: add missing space between select attributes (#81659) #726

Merged
fpeters merged 1 commits from wip/81659-attr-space into main 2023-09-29 07:35:00 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
<!-- backoffice compat: {{ request.quixote_request.is_in_backoffice|pprint }} -->
<!-- substitution variable: {{ example_url }} -->
<select id="form_{{widget.name}}" name="{{widget.name}}"
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}>
{% for attr in widget.attrs.items %} {{attr.0}}="{{attr.1}}"{% endfor %}>
<option value="">---</option>
{% for option in widget.get_options %}
<option{% for attr in option.attrs.items %} {{attr.0}}="{{attr.1}}"{% endfor %}

View File

@ -2,7 +2,7 @@
{% load qommon i18n %}
{% block widget-control %}
<select style="display: none" id="form_{{widget.get_name_for_id}}" name="{{widget.name}}"
{% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}>
{% for attr in widget.attrs.items %} {{attr.0}}="{{attr.1}}"{% endfor %}>
<option value="">---</option>
{% for option in widget.get_options %}
{% with datetime=option.options.datetime|parse_datetime %}

View File

@ -3,7 +3,7 @@
<select id="form_{{widget.get_name_for_id}}" name="{{widget.name}}"
{% if widget.select2 %}data-autocomplete="true"{% endif %}
{% if widget.required %}required data-required="true"{% endif %}
{% for attr in widget.attrs.items %}{% if attr.0 != 'readonly' %}{{attr.0}}="{{attr.1}}"{% endif %}{% endfor %}>
{% for attr in widget.attrs.items %}{% if attr.0 != 'readonly' %} {{attr.0}}="{{attr.1}}"{% endif %}{% endfor %}>
{% if not widget.separate_hint and widget.hint %}
<option value="" data-hint="{{ widget.hint }}">{% if not widget.select2 %}{{ widget.hint }}{% endif %}</option>
{% endif %}