{% extends 'layout.twig' %}

{% block body %}

    <div class="contenu clearfix">
    
        {% include '@Utilisateur/Common/Component/SubNavbar.twig' 
            with {
                hasBackup: hasBackup,
                current_route: 'accueil',
            } only
        %}
        
        <h2>{{ 'Gérer vos paramètres de page d\'accueil' | trad }}</h2>
        
        <ul class="nav nav-tabs sous_onglet">
            <li onClick="window.location.href='{{ path('Utilisateur.MonAccueil.monAccueil') }}';" class="active"><a data-toggle="tab">{{ 'Accueil' | trad }}</a></li>
            <li onClick="window.location.href='{{ path('Utilisateur.MonAccueil.TableauDeBord') }}';"><a>{{ 'Tableau de bord' | trad }}</a></li>
        </ul>
        
        <div class="tab-pane fade in active clearfix padding15 box-form">
            <form method="post" name="monAcceuil" id="monAcceuil" class="clearfix">
            
                <h3 class="separateur_bottom">{{ 'Page d\'accueil' | trad }}</h3>
                
                <div class="clearfix">
                    <div class="colonne2">
                        <div class="row">
                        {{ inputSelect('Page d\'accueil' | trad,"ACC", tabMenu, accueil ,'','','',true,'','','',false) }}
                        </div>
                    </div>
                </div>

                {% if listeFAV %}
                    <h3 class="separateur_bottom">{{ 'Vos favoris' | trad }}</h3>
                    
                    <div class="colonne2">
                        <div class="row">
                            {{ inputSelect("Favoris 1" | trad,"FAV1", listeFAV, listeMyFav.0.ID_FAV ,'','','',true,'','','',false) }}
                        </div>
                        <div class="row">
                            {{ inputSelect("Favoris 3" | trad,"FAV3", listeFAV, listeMyFav.2.ID_FAV,'','','',true,'','','',false) }}
                        </div>
                        <div class="row">
                            {{ inputSelect("Favoris 5" | trad,"FAV5", listeFAV, listeMyFav.4.ID_FAV,'','','',true,'','','',false) }}
                        </div>
                    </div>
                    <div class="colonne2 last">
                        <div class="row">
                            {{ inputSelect("Favoris 2" | trad,"FAV2", listeFAV, listeMyFav.1.ID_FAV,'','','',true,'','','',false) }}
                        </div>
                        <div class="row">
                            {{ inputSelect("Favoris 4" | trad,"FAV4", listeFAV, listeMyFav.3.ID_FAV,'','','',true,'','','',false) }}
                        </div>
                        <div class="row">
                            {{ inputSelect("Favoris 6" | trad,"FAV6", listeFAV, listeMyFav.5.ID_FAV,'','','',true,'','','',false) }}
                        </div>
                    </div>
                {% endif %}	

                <div class="button_right full validation_modal">
                    <button class="principal button button_right" onClick="activeLoader();">{{ 'Enregistrer' | trad }}</button>
                </div>
                
            </form>
        </div>
    
    </div>
    
{% endblock %}

