minor #19676 [Bridge] [Twig] replaces tabs by spaces in Twig form themes templates. (hhamon)
This PR was merged into the 3.2-dev branch.
Discussion
----------
[Bridge] [Twig] replaces tabs by spaces in Twig form themes templates.
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | ~
| License | MIT
| Doc PR | ~
Commits
-------
d88f2a4
[Bridge] [Twig] replaces tabs by spaces in Twig form themes templates.
This commit is contained in:
commit
94078a09ac
@ -87,24 +87,24 @@
|
||||
{% endif %}
|
||||
{%- endblock time_widget %}
|
||||
|
||||
{% block dateinterval_widget %}
|
||||
{% if widget == 'single_text' %}
|
||||
{{- block('form_widget_simple') -}}
|
||||
{% else %}
|
||||
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-inline')|trim}) %}
|
||||
<div {{ block('widget_container_attributes') }}>
|
||||
{{ form_errors(form) }}
|
||||
{% if with_years %}{{ form_widget(form.years) }}{% endif %}
|
||||
{% if with_months %}{{ form_widget(form.months) }}{% endif %}
|
||||
{% if with_weeks %}{{ form_widget(form.weeks) }}{% endif %}
|
||||
{% if with_days %}{{ form_widget(form.days) }}{% endif %}
|
||||
{% if with_hours %}{{ form_widget(form.hours) }}{% endif %}
|
||||
{% if with_minutes %}{{ form_widget(form.minutes) }}{% endif %}
|
||||
{% if with_seconds %}{{ form_widget(form.seconds) }}{% endif %}
|
||||
{% if with_invert %}{{ form_widget(form.invert) }}{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock dateinterval_widget %}
|
||||
{%- block dateinterval_widget -%}
|
||||
{%- if widget == 'single_text' -%}
|
||||
{{- block('form_widget_simple') -}}
|
||||
{%- else -%}
|
||||
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-inline')|trim}) -%}
|
||||
<div {{ block('widget_container_attributes') }}>
|
||||
{{- form_errors(form) -}}
|
||||
{%- if with_years %}{{ form_widget(form.years) }}{% endif -%}
|
||||
{%- if with_months %}{{ form_widget(form.months) }}{% endif -%}
|
||||
{%- if with_weeks %}{{ form_widget(form.weeks) }}{% endif -%}
|
||||
{%- if with_days %}{{ form_widget(form.days) }}{% endif -%}
|
||||
{%- if with_hours %}{{ form_widget(form.hours) }}{% endif -%}
|
||||
{%- if with_minutes %}{{ form_widget(form.minutes) }}{% endif -%}
|
||||
{%- if with_seconds %}{{ form_widget(form.seconds) }}{% endif -%}
|
||||
{%- if with_invert %}{{ form_widget(form.invert) }}{% endif -%}
|
||||
</div>
|
||||
{%- endif -%}
|
||||
{%- endblock dateinterval_widget -%}
|
||||
|
||||
{% block choice_widget_collapsed -%}
|
||||
{% set attr = attr|merge({class: (attr.class|default('') ~ ' form-control')|trim}) %}
|
||||
|
@ -130,23 +130,23 @@
|
||||
{%- endif -%}
|
||||
{%- endblock time_widget -%}
|
||||
|
||||
{% block dateinterval_widget %}
|
||||
{% if widget == 'single_text' %}
|
||||
{{- block('form_widget_simple') -}}
|
||||
{% else %}
|
||||
<div {{ block('widget_container_attributes') }}>
|
||||
{{ form_errors(form) }}
|
||||
{% if with_years %}{{ form_widget(form.years) }}{% endif %}
|
||||
{% if with_months %}{{ form_widget(form.months) }}{% endif %}
|
||||
{% if with_weeks %}{{ form_widget(form.weeks) }}{% endif %}
|
||||
{% if with_days %}{{ form_widget(form.days) }}{% endif %}
|
||||
{% if with_hours %}{{ form_widget(form.hours) }}{% endif %}
|
||||
{% if with_minutes %}{{ form_widget(form.minutes) }}{% endif %}
|
||||
{% if with_seconds %}{{ form_widget(form.seconds) }}{% endif %}
|
||||
{% if with_invert %}{{ form_widget(form.invert) }}{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock dateinterval_widget %}
|
||||
{%- block dateinterval_widget -%}
|
||||
{%- if widget == 'single_text' -%}
|
||||
{{- block('form_widget_simple') -}}
|
||||
{%- else -%}
|
||||
<div {{ block('widget_container_attributes') }}>
|
||||
{{- form_errors(form) -}}
|
||||
{%- if with_years %}{{ form_widget(form.years) }}{% endif -%}
|
||||
{%- if with_months %}{{ form_widget(form.months) }}{% endif -%}
|
||||
{%- if with_weeks %}{{ form_widget(form.weeks) }}{% endif -%}
|
||||
{%- if with_days %}{{ form_widget(form.days) }}{% endif -%}
|
||||
{%- if with_hours %}{{ form_widget(form.hours) }}{% endif -%}
|
||||
{%- if with_minutes %}{{ form_widget(form.minutes) }}{% endif -%}
|
||||
{%- if with_seconds %}{{ form_widget(form.seconds) }}{% endif -%}
|
||||
{%- if with_invert %}{{ form_widget(form.invert) }}{% endif -%}
|
||||
</div>
|
||||
{%- endif -%}
|
||||
{%- endblock dateinterval_widget -%}
|
||||
|
||||
{%- block number_widget -%}
|
||||
{# type="number" doesn't work with floats #}
|
||||
|
Reference in New Issue
Block a user