Selaa lähdekoodia

Fixed sonata_help to be displayed on sonata_type_model_list

Hugo Briand 10 vuotta sitten
vanhempi
commit
52e84f8085
1 muutettua tiedostoa jossa 9 lisäystä ja 3 poistoa
  1. 9 3
      Resources/views/Form/form_admin_fields.html.twig

+ 9 - 3
Resources/views/Form/form_admin_fields.html.twig

@@ -23,11 +23,17 @@ file that was distributed with this source code.
     {% endif %}
 {%- endblock form_errors %}
 
+{% block sonata_help %}
+{% spaceless %}
+{% if sonata_help is defined and sonata_help %}
+    <span class="help-block sonata-ba-field-widget-help">{{ sonata_help|raw }}</span>
+{% endif %}
+{% endspaceless %}
+{% endblock %}
+
 {% block form_widget -%}
     {{ parent() }}
-    {% if sonata_help is defined and sonata_help %}
-        <span class="help-block sonata-ba-field-widget-help">{{ sonata_help|raw }}</span>
-    {% endif %}
+    {{ block('sonata_help') }}
 {%- endblock form_widget %}
 
 {% block form_widget_simple %}