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

{% block title %} Admin - {{ app.user ? app.user.username : 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">Démarcheurs</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">
                    {% include 'admin/partials/_action_global_btn.html.twig' %}
                    <a data-toggle="tooltip" title="{{ libelle_ajouter }}" href="{{ path('admin.demarcheurs.new') }}"
                       class="btn btn-success btn-sm btn-icon ml-5">
                        <i class="icon-plus2"></i>
                    </a>
                </div>
            </div>
        </div>

       
    </div>
{% endblock %}
{% block body %}
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header header-elements-inline">
                    <h6 class="card-title"><i class="icon-list-ordered"></i> {{ title }}</h6>
                </div>
                {% include 'admin/properties/demarcheurs/_partials/_table.html.twig' %}
            </div>
        </div>
    </div>
{% endblock %}
{% block javascripts %}
    <script type="module">
        import Save from "{{ asset('js/modules/module.js') }}";
        Save('/admin/api/properties/check-status')
    </script> 
{% endblock %}
