{% extends '@ajax-layout/layout.twig' %}

{% block body %}
<div id="entityContent">
<div id="{{idDivLeft}}">

{% for entity in entitys %}
	<li class="SyncLists" data-codeValue="{{entity[primaryKey]}}">{{entity[libelle]}} ({{entity[primaryKey]}})</li>
{% endfor %}

<script>
    $("#{{idDivRight}} li").each(function(i)
    {
        $('#{{idDivLeft}} li[data-codevalue="' + $(this).attr("data-codevalue") +'"]').remove();
    });
</script>
</div>

<div id="entityContentPagination">
<script>
    $("#{{idDiv}}").scrollTop(0);
</script>{{ paginations(path('Outil.MultiSelect.searchEntity'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, idDivLeft) }}</div>
</div>

{% endblock %}