edit_boolean.html.twig 874 B

12345678910111213141516171819202122232425262728293031
  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.haserrors %}sonata-ba-field-error{% endif %}">
  9. {% block field %}{{ form_field(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>