Skip to content

Commit

Permalink
bug #1441 [Autocomplete Form Type] Show parent row block features (yc…
Browse files Browse the repository at this point in the history
…eruto)

This PR was merged into the master branch.

Discussion
----------

[Autocomplete Form Type] Show parent row block features

Fixing https://github.com/javiereguiluz/EasyAdminBundle/issues/1438

Commits
-------

6b1493d show parent row block features
  • Loading branch information
javiereguiluz committed Dec 23, 2016
2 parents e0dce64 + 6b1493d commit 24c33c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/views/form/bootstrap_3_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@
{% endblock easyadmin_widget %}

{# EasyAdminAutocomplete form type #}
{% block easyadmin_autocomplete_row %}
{{ form_row(form.autocomplete, {
{% block easyadmin_autocomplete_widget %}
{{ form_widget(form.autocomplete, {
attr: attr|merge({
'data-easyadmin-autocomplete-max-results': easyadmin_config('show.max_results'),
'data-easyadmin-autocomplete-url' : path('easyadmin', {
Expand All @@ -507,7 +507,7 @@
})|raw })
})
}}
{% endblock easyadmin_autocomplete_row %}
{% endblock easyadmin_autocomplete_widget %}

{% block easyadmin_autocomplete_inner_label %}
{% set name = form.parent.vars.name %}
Expand Down

0 comments on commit 24c33c6

Please sign in to comment.