I am having some trouble theming a textarea.
I have created a separate theme file with the following themes:
{% block text_widget %}
<div class="text_widget">
{% set type = type|default('text') %}
{{ block('field_widget') }}
</div>
{% endblock %}
{% block textarea_widget %}
<div class="textarea_widget">
{#{% set type = type|default('text') %}#}
{{ block('textarea_widget') }}
</div>
{% endblock %}
The first block theme works (text_widget), but the second causes the page not to load at all. It works if I change the block line to
{{ block('field_widget') }}
but then twig renders a normal text field. According to https://github.com/symfony/symfony/tree/master/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form I should be able to use textarea_widget.
Any ideas?
no?