templates: add missing space between select attributes (#81659)
This commit is contained in:
parent
a18aafcdcd
commit
3b7fdb82bf
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue