{"action":"created","issue":{"url":"https://api.github.com/repos/EasyCorp/EasyAdminBundle/issues/2303","repository_url":"https://api.github.com/repos/EasyCorp/EasyAdminBundle","labels_url":"https://api.github.com/repos/EasyCorp/EasyAdminBundle/issues/2303/labels{/name}","comments_url":"https://api.github.com/repos/EasyCorp/EasyAdminBundle/issues/2303/comments","events_url":"https://api.github.com/repos/EasyCorp/EasyAdminBundle/issues/2303/events","html_url":"https://github.com/EasyCorp/EasyAdminBundle/issues/2303","id":345728886,"node_id":"MDU6SXNzdWUzNDU3Mjg4ODY=","number":2303,"title":"Extending easyadmin list search not working?","user":{"login":"devkbsc","id":10415306,"node_id":"MDQ6VXNlcjEwNDE1MzA2","avatar_url":"https://avatars3.githubusercontent.com/u/10415306?v=4","gravatar_id":"","url":"https://api.github.com/users/devkbsc","html_url":"https://github.com/devkbsc","followers_url":"https://api.github.com/users/devkbsc/followers","following_url":"https://api.github.com/users/devkbsc/following{/other_user}","gists_url":"https://api.github.com/users/devkbsc/gists{/gist_id}","starred_url":"https://api.github.com/users/devkbsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devkbsc/subscriptions","organizations_url":"https://api.github.com/users/devkbsc/orgs","repos_url":"https://api.github.com/users/devkbsc/repos","events_url":"https://api.github.com/users/devkbsc/events{/privacy}","received_events_url":"https://api.github.com/users/devkbsc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-30T12:03:55Z","updated_at":"2018-09-30T17:57:19Z","closed_at":"2018-09-30T17:57:19Z","author_association":"NONE","body":"Hello, \r\nI have reproduced the easyadmin view in my CRUD of an entity. But I couldn't see the search box! \r\n\r\nIs there any possibilities the extend the search box as below , in my list.html.twig??\r\n![capture](https://user-images.githubusercontent.com/10415306/43396284-642ad4cc-9401-11e8-8dea-c4553ec4a7dd.PNG)\r\n\r\n\r\n**list.html.twig**\r\n```\r\n{#{% include('@EasyAdmin/default/layout.html.twig') %}#}\r\n<!DOCTYPE html>\r\n<html lang=\"{{ app.request.locale|split('_')|first|default('fr') }}\">\r\n    <head>\r\n        <meta charset=\"utf-8\">\r\n        <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n        <meta name=\"robots\" content=\"noindex, nofollow, noarchive, nosnippet, noodp, noimageindex, notranslate, nocache\" />\r\n        <meta content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\" name=\"viewport\">\r\n        <meta name=\"generator\" content=\"EasyAdmin\" />\r\n\r\n        <title>{% block page_title %}{{ block('content_title')|striptags|raw }}{% endblock %}</title>\r\n\r\n        {% block head_stylesheets %}\r\n            <link rel=\"stylesheet\" href=\"{{ asset('bundles/easyadmin/stylesheet/easyadmin-all.min.css') }}\">\r\n            <style>\r\n                {{ easyadmin_config('_internal.custom_css')|raw }}\r\n            </style>\r\n        {% endblock %}\r\n\r\n        {% for css_asset in easyadmin_config('design.assets.css') %}\r\n            <link rel=\"stylesheet\" href=\"{{ asset(css_asset) }}\">\r\n        {% endfor %}\r\n\r\n        {% block head_favicon %}\r\n            {% set favicon = easyadmin_config('design.assets.favicon') %}\r\n            <link rel=\"icon\" type=\"{{ favicon.mime_type }}\" href=\"{{ asset(favicon.path) }}\" />\r\n        {% endblock %}\r\n\r\n        {% block head_javascript %}\r\n            {% block adminlte_options %}\r\n                <script type=\"text/javascript\">\r\n                    var AdminLTEOptions = {\r\n                        animationSpeed: 'normal',\r\n                        sidebarExpandOnHover: false,\r\n                        enableBoxRefresh: false,\r\n                        enableBSToppltip: false,\r\n                        enableFastclick: false,\r\n                        enableControlSidebar: false,\r\n                        enableBoxWidget: false\r\n                    };\r\n                </script>\r\n            {% endblock %}\r\n\r\n            <script src=\"{{ asset('bundles/easyadmin/javascript/easyadmin-all.min.js') }}\"></script>\r\n        {% endblock head_javascript %}\r\n\r\n        {% if easyadmin_config('design.rtl') %}\r\n            <link rel=\"stylesheet\" href=\"{{ asset('bundles/easyadmin/stylesheet/bootstrap-rtl.min.css') }}\">\r\n            <link rel=\"stylesheet\" href=\"{{ asset('bundles/easyadmin/stylesheet/adminlte-rtl.min.css') }}\">\r\n        {% endif %}\r\n    </head>\r\n\r\n    {% block body %}\r\n        <body id=\"{% block body_id %}{% endblock %}\" class=\"easyadmin sidebar-mini {% block body_class %}{% endblock %} {{ app.request.cookies.has('_easyadmin_navigation_iscollapsed') ? 'sidebar-collapse' }}\">\r\n\r\n\r\n\r\n            <div class=\"wrapper\">\r\n                {% block wrapper %}\r\n                    <header class=\"main-header\">\r\n                        {% block header %}\r\n                            <nav class=\"navbar\" role=\"navigation\">\r\n                                <a href=\"#\" class=\"sidebar-toggle\" data-toggle=\"push-menu\" role=\"button\">\r\n                                    <span class=\"sr-only\">{{ 'toggle_navigation'|trans(domain = 'EasyAdminBundle') }}</span>\r\n                                </a>\r\n\r\n                                <div id=\"header-logo\">\r\n                                    {% block header_logo %}\r\n                                        <a class=\"logo {{ easyadmin_config('site_name')|length > 14 ? 'logo-long' }}\" title=\"{{ easyadmin_config('site_name')|striptags }}\" href=\"{{ path('easyadmin') }}\">\r\n                                            {{ easyadmin_config('site_name')|raw }}\r\n                                        </a>\r\n                                    {% endblock header_logo %}\r\n                                </div>\r\n\r\n                                <div class=\"navbar-custom-menu\">\r\n                                    {% block header_custom_menu %}\r\n                                        {% set _logout_path = easyadmin_logout_path() %}\r\n                                        <ul class=\"nav navbar-nav\">\r\n                                            <li class=\"dropdown user user-menu\">\r\n                                                {% block user_menu %}\r\n                                                    <span class=\"sr-only\">{{ 'user.logged_in_as'|trans(domain = 'EasyAdminBundle') }}</span>\r\n\r\n                                                    {% if app.user|default(false) == false %}\r\n                                                        <i class=\"hidden-xs fa fa-user-times\"></i>\r\n                                                        {{ 'user.anonymous'|trans(domain = 'EasyAdminBundle') }}\r\n                                                    {% elseif not _logout_path %}\r\n                                                        <i class=\"hidden-xs fa fa-user\"></i>\r\n                                                        {{ app.user.username|default('user.unnamed'|trans(domain = 'EasyAdminBundle')) }}\r\n                                                    {% else %}\r\n                                                        <div class=\"btn-group\">\r\n                                                            <button type=\"button\" class=\"btn\" data-toggle=\"dropdown\">\r\n                                                                <i class=\"hidden-xs fa fa-user\"></i>\r\n                                                                {{ app.user.username|default('user.unnamed'|trans(domain = 'EasyAdminBundle')) }}\r\n                                                            </button>\r\n                                                            <button type=\"button\" class=\"btn dropdown-toggle\" data-toggle=\"dropdown\" aria-expanded=\"false\">\r\n                                                                <span class=\"caret\"></span>\r\n                                                            </button>\r\n                                                            <ul class=\"dropdown-menu\" role=\"menu\">\r\n                                                                {% block user_menu_dropdown %}\r\n                                                                    <li>\r\n                                                                        <a href=\"{{ _logout_path }}\"><i class=\"fa fa-sign-out\"></i> {{ 'user.signout'|trans(domain = 'EasyAdminBundle') }}</a>\r\n                                                                    </li>\r\n                                                                    {% if is_granted('ROLE_PREVIOUS_ADMIN') %}\r\n                                                                        <li>\r\n                                                                            <a href=\"?_switch_user=_exit\"><i class=\"fa fa-sign-out\"></i> {{ 'user.exit_impersonation'|trans(domain = 'EasyAdminBundle') }}</a>\r\n                                                                        </li>\r\n                                                                    {% endif %}\r\n                                                                {% endblock user_menu_dropdown %}\r\n                                                            </ul>\r\n                                                        </div>\r\n                                                    {% endif %}\r\n                                                {% endblock user_menu %}\r\n                                            </li>\r\n                                        </ul>\r\n                                    {% endblock header_custom_menu %}\r\n                                </div>\r\n                            </nav>\r\n                        {% endblock header %}\r\n                    </header>\r\n\r\n                    <aside class=\"main-sidebar\">\r\n                        {% block sidebar %}\r\n                            <section class=\"sidebar\">\r\n                                {% block main_menu_wrapper %}\r\n                                    {{ include([\r\n                            _entity_config is defined ? _entity_config.templates.menu,\r\n                            easyadmin_config('design.templates.menu'),\r\n                            '@EasyAdmin/default/menu.html.twig'\r\n                        ]) }}\r\n                                {% endblock main_menu_wrapper %}\r\n                            </section>\r\n                        {% endblock sidebar %}\r\n                    </aside>\r\n\r\n                    <div class=\"content-wrapper\">\r\n                        {% block content %}\r\n                            {% block flash_messages %}\r\n                                {{ include(_entity_config is defined ? _entity_config.templates.flash_messages : '@EasyAdmin/default/flash_messages.html.twig') }}\r\n                            {% endblock flash_messages %}\r\n\r\n                            <section class=\"content-header\">\r\n\r\n                                {% block content_header %}\r\n                                    <h1 class=\"title\">{% block content_title %}{% endblock %}</h1>\r\n                                    \r\n                                {% endblock content_header %}\r\n                                {% block content_help %}\r\n                                    {% if _entity_config is defined and _entity_config[app.request.query.get('action')]['help']|default(false) %}\r\n                                        <div class=\"box box-widget help-entity\">\r\n                                            <div class=\"box-body\">\r\n                                                {{ _entity_config[app.request.query.get('action')]['help']|trans|raw }}\r\n                                            </div>\r\n                                        </div>\r\n                                    {% endif %}\r\n                                {% endblock content_help %}\r\n                            </section>\r\n\r\n                            <section id=\"main\" class=\"content\">\r\n                                {% block main %}\r\n                                    <div class=\"row\" id=\"heading\">\r\n                                        <div class=\"col-md-1 text-center\"><strong>#Id</strong></div>\r\n                                        <div class=\"col-md-2 text-center\"><strong>Nom </strong></div>\r\n                                        <div class=\"col-md-2 text-center\"><strong>Téléphone</strong></div>\r\n                                        <div class=\"col-md-2 text-center\"><strong>Portable</strong></div>\r\n                                        <div class=\"col-md-2 text-center\"><strong>Ville</strong></div>\r\n                                        <div class=\"col-md-2 text-center\"><strong>Roles</strong></div>\r\n                                        <div class=\"col-md-1 text-center\" class=\"col-md-2\"><strong>Action</strong></div>\r\n                                        {#<div class=\"w-100\"></div>#}\r\n                                    </div>\r\n\r\n                                    {% for user in users %}\r\n                                        <div class=\"row text-center\" id=\"list-of-posts\" style=\"margin: 10px 0px 10px 0px;\">\r\n                                            <div class=\"col-md-1\">{{ user.id }}</div>\r\n                                            <div class=\"col-md-2\">{{ user.civilite }}. {{ user.nom }}</div>\r\n                                            <div class=\"col-md-2\">{{ user.telephone }}</div>\r\n                                            <div class=\"col-md-2\">{{ user.portable }}</div>\r\n                                            <div class=\"col-md-2\">{{ user.ville | capitalize }}</div> \r\n                                            <div class=\"col-md-2\" style=\"font-size:80%;\">\r\n                                                {% set roles = user.roles %}\r\n                                                {% for role in roles %}\r\n                                                    {{ role }},\r\n                                                {% endfor %}\r\n                                            </div>\r\n                                            <div class=\"col-md-1 text-right\">\r\n                                                {#<a class=\"btn btn-danger btn-sm\" href=\"{{ path('utilisateur_show', { 'id': user.id }) }}\">Voir</a>#}\r\n                                                <a class=\"btn btn-danger btn-sm\"  href=\"{{ path('utilisateur_edit', { 'id': user.id }) }}\"><i class='fa fa-pencil'></i></a>\r\n                                            </div>\r\n                                            <div class=\"w-100\"></div>\r\n                                        </div>\r\n                                    {% endfor %}\r\n                                {% endblock %}\r\n                            </section>\r\n                        {% endblock content %}\r\n                    </div>\r\n                {% endblock wrapper %}\r\n            </div>\r\n\r\n        {% block body_javascript %}{% endblock body_javascript %}\r\n        {% for js_asset in easyadmin_config('design.assets.js') %}\r\n            <script src=\"{{ asset(js_asset) }}\"></script>\r\n        {% endfor %}\r\n\r\n    </body>\r\n{% endblock body %}\r\n</html>\r\n\r\n```\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/EasyCorp/EasyAdminBundle/issues/comments/425738905","html_url":"https://github.com/EasyCorp/EasyAdminBundle/issues/2303#issuecomment-425738905","issue_url":"https://api.github.com/repos/EasyCorp/EasyAdminBundle/issues/2303","id":425738905,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTczODkwNQ==","user":{"login":"javiereguiluz","id":73419,"node_id":"MDQ6VXNlcjczNDE5","avatar_url":"https://avatars3.githubusercontent.com/u/73419?v=4","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"created_at":"2018-09-30T17:57:19Z","updated_at":"2018-09-30T17:57:19Z","author_association":"COLLABORATOR","body":"I'm afraid I don't understand this issue. There's a `search_action` Twig block inside the `list.html.twig` template:\r\n\r\nhttps://github.com/EasyCorp/EasyAdminBundle/blob/82c1c3cce0f81fd30ba703405b362d232eaa972c/src/Resources/views/default/list.html.twig#L57-L79\r\n\r\nIn any case, let's close this because it's an old issue, so it's probably no longer relevant."}}
{"actor":{"display_login":"javiereguiluz"}}