[TwigBridge] Remove use spaceless tag
This commit is contained in:
parent
e9c8e19f46
commit
2ee178b5c5
@ -1,25 +1,19 @@
|
|||||||
{% block _text_id_widget %}
|
{% block _text_id_widget -%}
|
||||||
{% spaceless %}
|
|
||||||
<div id="container">
|
<div id="container">
|
||||||
{{ form_widget(form) }}
|
{{- form_widget(form) -}}
|
||||||
</div>
|
</div>
|
||||||
{% endspaceless %}
|
{%- endblock _text_id_widget %}
|
||||||
{% endblock _text_id_widget %}
|
|
||||||
|
|
||||||
{% block _names_entry_label %}
|
{% block _names_entry_label -%}
|
||||||
{% spaceless %}
|
|
||||||
{% if label is empty %}
|
{% if label is empty %}
|
||||||
{% set label = name|humanize %}
|
{%- set label = name|humanize -%}
|
||||||
{% endif %}
|
{% endif -%}
|
||||||
<label>Custom label: {{ label|trans({}, translation_domain) }}</label>
|
<label>Custom label: {{ label|trans({}, translation_domain) }}</label>
|
||||||
{% endspaceless %}
|
{%- endblock _names_entry_label %}
|
||||||
{% endblock _names_entry_label %}
|
|
||||||
|
|
||||||
{% block _name_c_entry_label %}
|
{% block _name_c_entry_label -%}
|
||||||
{% spaceless %}
|
|
||||||
{% if label is empty %}
|
{% if label is empty %}
|
||||||
{% set label = name|humanize %}
|
{%- set label = name|humanize -%}
|
||||||
{% endif %}
|
{% endif -%}
|
||||||
<label>Custom name label: {{ label|trans({}, translation_domain) }}</label>
|
<label>Custom name label: {{ label|trans({}, translation_domain) }}</label>
|
||||||
{% endspaceless %}
|
{%- endblock _name_c_entry_label %}
|
||||||
{% endblock _name_c_entry_label %}
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
{% block form_widget_simple %}
|
{% block form_widget_simple %}
|
||||||
{% spaceless %}
|
{%- set type = type|default('text') -%}
|
||||||
{% set type = type|default('text') %}
|
|
||||||
<input type="{{ type }}" {{ block('widget_attributes') }} value="{{ value }}" rel="theme" />
|
<input type="{{ type }}" {{ block('widget_attributes') }} value="{{ value }}" rel="theme" />
|
||||||
{% endspaceless %}
|
{%- endblock form_widget_simple %}
|
||||||
{% endblock form_widget_simple %}
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
{% extends 'form_div_layout.html.twig' %}
|
{% extends 'form_div_layout.html.twig' %}
|
||||||
|
|
||||||
{% block form_widget_simple %}
|
{% block form_widget_simple %}
|
||||||
{% spaceless %}
|
{%- set type = type|default('text') -%}
|
||||||
{% set type = type|default('text') %}
|
|
||||||
<input type="{{ type }}" {{ block('widget_attributes') }} value="{{ value }}" rel="theme" />
|
<input type="{{ type }}" {{ block('widget_attributes') }} value="{{ value }}" rel="theme" />
|
||||||
{% endspaceless %}
|
{%- endblock form_widget_simple %}
|
||||||
{% endblock form_widget_simple %}
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
{% use 'form_div_layout.html.twig' %}
|
{% use 'form_div_layout.html.twig' %}
|
||||||
|
|
||||||
{% block form_widget_simple %}
|
{% block form_widget_simple %}
|
||||||
{% spaceless %}
|
{%- set type = type|default('text') -%}
|
||||||
{% set type = type|default('text') %}
|
|
||||||
<input type="{{ type }}" {{ block('widget_attributes') }} value="{{ value }}" rel="theme" />
|
<input type="{{ type }}" {{ block('widget_attributes') }} value="{{ value }}" rel="theme" />
|
||||||
{% endspaceless %}
|
{%- endblock form_widget_simple %}
|
||||||
{% endblock form_widget_simple %}
|
|
||||||
|
Reference in New Issue
Block a user