Skip to content

Commit

Permalink
bug #2756 Form tabs - handling css_class parameter for form tabs (Ale…
Browse files Browse the repository at this point in the history
…xandre Desseaux)

This PR was merged into the 2.0.x-dev branch.

Discussion
----------

Form tabs - handling css_class parameter for form tabs

Handling the `css_class` parameter for the form tabs elements.

As mentionned in the doc bellow:
https://symfony.com/doc/master/bundles/EasyAdminBundle/book/edit-new-configuration.html#form-tabs

Commits
-------

52a81d9 Fix Form tabs - handling css_class parameter for form tabs
  • Loading branch information
javiereguiluz committed Jun 30, 2019
2 parents 9cb2b44 + 52a81d9 commit 51a92cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/form/bootstrap_4.html.twig
Expand Up @@ -401,7 +401,7 @@
</ul>
<div class="tab-content">
{% for tab_name, tab_config in easyadmin_form_tabs %}
<div id="{{ tab_config['id'] }}" class="tab-pane {% if tab_config.active %}active{% endif %}">
<div id="{{ tab_config['id'] }}" class="tab-pane {% if tab_config.active %}active{% endif %} {{ tab_config['css_class']|default('') }}">
{% if tab_config['help']|default(false) %}
<div class="content-header-help tab-help">
{{ tab_config['help']|trans(domain = _translation_domain)|raw }}
Expand Down

0 comments on commit 51a92cb

Please sign in to comment.