<div class="alert">
    <p><strong>{{ result.entityConfig.label }}</strong></p>
    <h3><a href="{{ result.recordUrl }}">{{ result.recordTitle }}</a></h3>
    {{ result.recordText|highlight_trim(searchString)|raw }}
</div>

{#
    Available variables:
    * entity - instance of user entity Oro\Bundle\UserBundle\Entity\User
    * url    - url for current entity
#}
{% set user = entity %}
{% set format = get_user_value('oro_user.name_format') %}

{% import 'OroUserBundle::macros.html.twig' as macros %}

<div class="span9">
    <div class="customer-info well-small">
        <div class="visual"><img src="{{ user.imagePath ? user.imagePath | imagine_filter('avatar_med') : asset('bundles/oroui/img/info-usser.png') }}" alt="{{ user.fullname(format) }}"/></div>
        <div class="customer-content pull-left">
            <div class="clearfix">
                <div class="pull-left">
                    <h1 class="usser-name"><a href="{{ url }}">{{ user.fullname(format)|default('N/A') }}</a></h1>
                </div>
                <div class="status-enabled pull-left">
                    {% if user.enabled %}
                        <div class="badge badge-enabled status-enabled"><i class="icon-status-enabled"></i>{{ 'Active'|trans }}</div>
                    {% else %}
                        <div class="badge badge-enabled status-disabled"><i class="icon-status-disabled"></i>{{ 'Inactive'|trans }}</div>
                    {% endif %}
                </div>
            </div>
            <div class="clearfix">
                <ul class="inline">
                    <li>{{ 'Created'|trans }}: {{ user.createdAt ? macros.time(user.createdAt) : 'N/A' }}</li>
                    <li>{{ 'Updated'|trans }}: {{ user.updatedAt ? macros.time(user.updatedAt) : 'N/A' }}</li>
                    <li>{{ 'Last logged in'|trans }}: {{ user.lastLogin ? macros.time(user.lastLogin) : 'N/A' }}</li>
                    <li>{{ 'Login count'|trans }}: {{ user.loginCount|default(0) }}</li>
                </ul>
            </div>
        </div>
    </div>
</div>


Fix and apply entities templates to render entities using templates on datagrid - fixed search result template
BAP-788: Fix and apply entities templates to render entities using templates on datagrid
 - fixed search result template
