소스 검색

Merge pull request #3523 from pulzarraider/form_attr_block

Added new Twig block sonata_form_attributes into base_edit_form.html.twig
Thomas 9 년 전
부모
커밋
3e302f807e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Resources/views/CRUD/base_edit_form.html.twig

+ 1 - 0
Resources/views/CRUD/base_edit_form.html.twig

@@ -15,6 +15,7 @@
               {% if form.vars.multipart %} enctype="multipart/form-data"{% endif %}
               method="POST"
               {% if not sonata_admin.adminPool.getOption('html5_validate') %}novalidate="novalidate"{% endif %}
+              {% block sonata_form_attributes %}{% endblock %}
               >
             {% if form.vars.errors|length > 0 %}
                 <div class="sonata-ba-form-error">