Skip to content
Snippets Groups Projects
Commit 6e0d7581 authored by Andrii Chyrskyi's avatar Andrii Chyrskyi Committed by Tiago Siqueira
Browse files

Issue #3269485: Socialbase 2.1.5 - WSOD - A template that extends another one...

Issue #3269485: Socialbase 2.1.5 - WSOD - A template that extends another one cannot include content outside Twig blocks.
parent ced0fdbe
No related branches found
No related merge requests found
......@@ -2,8 +2,8 @@
{% set attributes = attributes.addClass('btn--comment-submit') %}
{% apply spaceless %}
{% block input %}
{% block input %}
{% apply spaceless %}
<button{{ attributes.addClass(classes) }}>
<span class="label">{{ label }}</span>
<svg class="btn-icon" aria-hidden="true">
......@@ -12,6 +12,5 @@
</svg>
</button>{{ children }}
{% endblock %}
{% endapply %}
{% endapply %}
{% endblock %}
......@@ -22,8 +22,8 @@
* @ingroup templates
*/
#}
{% apply spaceless %}
{% block input %}
{% block input %}
{% apply spaceless %}
{% if default_button %}
{% if icon_only %}
<button{{ attributes.addClass(classes, 'icon-only') }}>
......@@ -58,5 +58,5 @@
<span class="sr-only">{{ 'Toggle Dropdown'|t }}</span>
</button>
{{ children }}
{% endblock %}
{% endapply %}
{% endapply %}
{% endblock %}
......@@ -22,8 +22,8 @@
* @ingroup templates
*/
#}
{% apply spaceless %}
{% block input %}
{% block input %}
{% spaceless %}
{% if icon_only %}
<button{{ attributes.addClass(classes, 'icon-only') }}>
<span class="sr-only">{{ label }}</span>
......@@ -45,5 +45,5 @@
</span>
{% endif %}
{{ children }}
{% endblock %}
{% endapply %}
{% endspaceless %}
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment