我为我的表单设置主题,如果该字段是复选框,我希望不显示标签
{% form_theme form with _self %}
{% block form_row %}
{% spaceless %}
<div class="mygroup">
{{form_label(form)}} # hide if checkbox
{{form_errors(form)}}
{{form_widget(form)}}
</div>
{% endspaceless %}
{% endblock %}