{% 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">
                    <a data-toggle="tooltip" title="{{ libelle_liste }}"
                       href="{{ path('admin.administrateurs.index') }}" class="btn btn-primary btn-sm btn-icon mr-2">
                        <i class="icon-list"></i>
                    </a>
                    <a data-toggle="tooltip" title="Fiche administrateur"
                       href="{{ path('admin.administrateurs.show', {'id': administrateur.id}) }}"
                       class="btn btn-warning btn-sm btn-icon mr-2">
                        <i class="icon-folder2"></i>
                    </a>
                    <a data-toggle="tooltip" title="{{ libelle_ajouter }}"
                       href="{{ path('admin.administrateurs.new') }}" class="btn btn-success btn-sm btn-icon">
                        <i class="icon-plus3"></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-8 offset-2">
            <div class="card">
                <div class="card-header header-elements-inline">
                    <h6 class="card-title"><i class="icon-users"></i> {{ title }}</h6>
                </div>

                <div class="card-body">
                    {{ include ('admin/security/users/administrateurs/_form.html.twig', {form: form, button_label: 'Sauvegarder les informations'}) }}
                </div>
            </div>
        </div>
    </div>
{% endblock %}


