{% 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 border-bottom-2 border-bottom-danger">
        <div class="page-header-content header-elements-md-inline">
            <div class="page-title d-flex">
                {% include 'admin/security/users/administrateurs/partials/__header_title.html.twig' %}
                <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="modal" data-target="#modal_large" class="btn btn-success btn-sm btn-icon ml-5">
                        <i data-toggle="tooltip" title="{{ libelle_ajouter }}" class="icon-user-plus"></i>
                    </a>
                </div>
            </div>
        </div>

        <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
            {{ fil_arial(title, 'Administrateurs') }}
        </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-users"></i> {{ title }}</h6>
                </div>

                {% include 'admin/security/users/administrateurs/partials/_table.html.twig' %}
            </div>
        </div>
    </div>

    <!-- Large modal -->
    <div id="modal_large" class="modal fade" tabindex="-1">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">{{ libelle_ajouter }}</h5>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <div class="modal-body">
                    {{ include ('admin/security/users/administrateurs/_form.html.twig', {form: form, button_label: 'Enregistrer'}) }}
                </div>
            </div>
        </div>
    </div>
    <!-- /large modal -->
{% endblock %}


