edit_boolean.html.twig 885 B

1234567891011121314151617181920212223242526272829
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. <div>
  8. <div class="sonata-ba-field {% if field_element.vars.errors|length > 0 %}sonata-ba-field-error{% endif %}">
  9. {% block field %}{{ form_widget(field_element) }}{% endblock %}
  10. {% block label %}
  11. {% if field_description.options.name is defined %}
  12. {{ form_label(field_element, field_description.options.name) }}
  13. {% else %}
  14. {{ form_label(field_element) }}
  15. {% endif %}
  16. <br>
  17. {% endblock %}
  18. <div class="sonata-ba-field-error-messages">
  19. {% block errors %}{{ form_errors(field_element) }}{% endblock %}
  20. </div>
  21. </div>
  22. </div>