Search


Example without keywords filled in

search
{% import '@leviy-templates/macros/search.html.twig' as search %}
<div class="card mt-4">
    {% set searchQuery = '' %}
    {{ search.table_filter(searchQuery, path('clear_route'), 'q') }}
</div>

Example with keywords filled in

search close
Results for 'Search keywords'
Name Username
Pieter Post piet@example.com
{% import '@leviy-templates/macros/search.html.twig' as search %}
<div class="card mt-4">
    {% set searchQuery = 'Search keywords' %}
    {{ search.table_filter(searchQuery, path('clear_route'), 'q') }}

    <table class="table table-hover table-pager table-striped">
        <thead>
            <tr>
                <th scope="col">Name</th>
                <th scope="col">Username</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Pieter Post</td>
                <td>piet@example.com</td>
            </tr>
        </tbody>
    </table>
</div>