{% extends 'admin/layouts/base.html.twig' %}

{% block title %}Admin - {{ context.get['app'] ? context.get['app'].name : company_name }} - {{ title }}{% endblock %}
{% block pageheader %}
    <div class="page-header page-header-light">
        <div class="page-header-content header-elements-md-inline">
            <div class="page-title d-flex">
                <h4><i class="icon-users mr-2"></i>
                    <span class="font-weight-semibold">Locataires</span>
                </h4>
                <a href="javascript:" class="header-elements-toggle text-default d-md-none">
                    <i class="icon-more"></i>
                </a>
            </div>

            <div class="header-elements d-none">
                <div class="d-flex justify-content-center">
                    <a data-toggle="tooltip" title="{{ libelle_ajouter }}"
                       href="{{ path('admin.acteurs.locataires.new') }}" class="btn btn-success btn-sm btn-icon">
                        <i class="icon-user-plus"></i>
                    </a>
                </div>
            </div>
        </div>

        <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
            {{ fil_arial(title, 'Locataires') }}
        </div>
    </div>
{% endblock %}
{% block body %}
    <div class="mb-3 pt-2">
        <h6 class="mb-0 font-weight-semibold">
            {{ title }}
        </h6>
        <span class="text-muted d-block">Liste de tous les locataires enregistrés.</span>
    </div>

    <div class="row">
        {% for locataire in locataires %}
            {% include 'admin/acteurs/locataires/_partials/_card.html.twig' %}
        {% else %}
            <p class="text-center">Aucun locataire à afficher</p>
        {% endfor %}
    </div>
{% endblock %}

