{% extends 'base_backend_admin.html.twig' %}

{% block title %} Partenaire {% endblock %}

{% block content %}
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
    <h1 class="h3 mb-0 text-gray-800">Partenaire</h1>
    <ol class="breadcrumb float-sm-right">
        <li class="breadcrumb-item">Partenaire</li>
    </ol>
</div>


<!-- Begin Page Content -->
<div class="container-fluid">
    
    {% include 'backend_admin/basic/notice.html.twig' %}

    <!-- DataTales Example -->
    <div class="card shadow mb-4">
       
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary">Ajouter un nouveau partenaire</h6>
        </div>
        <div class="card-body">
            <div class="row">
                {{ form_start(form) }}
                    {{ form_errors(form) }}
                    
                    <div class="col-7 my-3">
                        {{ form_label(form.societe, 'Société', {'attr': {'class': 'form-label'}}) }}
                        <div class="input-group">
                            <span class="input-group-text"><i class="fa-solid fa-building"></i></span>
                            {{ form_widget(form.societe, {'attr': {'class': 'form-control select-filter select2bs4 select-filter-speaker'}}) }}
                            <div class="invalid-feedback">
                                {{ form_errors(form.societe) }}
                            </div>
                        </div>
                    </div>
            
                    <div class="col-7 my-5">
                        {{ form_label(form.partenaire, 'Partenaire', {'attr': {'class': 'form-label'}}) }}
                        <div class="input-group">
                            <span class="input-group-text"><i class="fa-solid fa-building"></i></span>
                            {{ form_widget(form.partenaire, {'attr': {'class': 'form-control select-filter select2bs4 select-filter-speaker'}}) }}
                            <div class="invalid-feedback">
                                {{ form_errors(form.partenaire) }}
                            </div>
                        </div>
                    </div>
             
                    <div class="col-4">
                        {{ form_widget(form.save, {'label': "Ajouter", 'attr': {'class': 'w-90 btn btn-primary '}}) }} 
                    </div>

                {{ form_end(form) }}
            </div>
        </div>
    </div>
</div>
{% endblock %}