Skip to content

Commit

Permalink
Minor tweak to HTML structure when 'multiple' is enabled. Potential B…
Browse files Browse the repository at this point in the history
…C for users that have custom CSS that targeted .lifo-typeahead-wrapper or .lifo-typeahead-list classes.
  • Loading branch information
lifo101 committed Dec 24, 2013
1 parent d4cc547 commit 43bb407
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Resources/views/Form/fields.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% block entity_typeahead_widget %}
{% spaceless %}
{% if multiple %}
<div class="lifo-typeahead-wrapper">
{% endif %}

{% set required, main_full_name, main_id, main_value, main_attr = false, full_name, id, value, attr %}

{# create visible autocomplete input #}
Expand Down Expand Up @@ -36,14 +40,15 @@
{% if multiple %}
{% set id, full_name = main_id, main_full_name %}
{{ block('entity_typeahead_multiple_widget') }}
</div>{# end of .lifo-typeahead-wrapper #}
{% endif %}
{% endspaceless %}
{% endblock %}

{% block entity_typeahead_multiple_widget %}
{% spaceless %}
<div class="lifo-typeahead-wrapper">
<ul class="lifo-typeahead-list" id="{{ id }}_list">
<div class="lifo-typeahead-list">
<ul id="{{ id }}_list">
{% for child in form.vars.data if child is not null %}
{{ block('entity_typeahead_list_widget') }}
{% endfor %}
Expand Down

0 comments on commit 43bb407

Please sign in to comment.