templates/entreprise/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
    {% block title %}
        {{ 'entreprise.home' | trans }}| {{ parent() }}
    {% endblock title %}
    {% block contenu_propre  %}
        {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
        {% else %}
    
          <section id="hero">
        <div id="heroCarousel" data-bs-interval="5000" class="carousel slide carousel-fade" data-bs-ride="carousel">
    
          <ol class="carousel-indicators" id="hero-carousel-indicators"></ol>
    
          <div class="carousel-inner" role="listbox">
    
            <!-- Slide 1 -->
            <div class="carousel-item active" style="background-image: url({{ asset('image/logo.jpeg') }})">
              <div class="carousel-container">
                <div class="container">
                  <h2 class="animate__animated animate__fadeInDown">{{  app_name }}, la gestion optimisée de votre usine</h2>
                  <p class="animate__animated animate__fadeInUp"></p>
                </div>
              </div>
            </div>
    
             <!-- Slide 1 -->
            <div class="carousel-item active" style="background-image: url({{ asset('image/logo.jpeg') }})">
              <div class="carousel-container">
                <div class="container">
                  <h2 class="animate__animated animate__fadeInDown">{{  app_name }}, la gestion optimisée de votre usine</h2>
                  <p class="animate__animated animate__fadeInUp"></p>
                </div>
              </div>
            </div>
    
    
               <!-- Slide 1 -->
            <div class="carousel-item active" style="background-image: url({{ asset('image/logo.jpeg') }})">
              <div class="carousel-container">
                <div class="container">
                  <h2 class="animate__animated animate__fadeInDown">{{  app_name }}, la gestion optimisée de votre usine</h2>
                  <p class="animate__animated animate__fadeInUp"></p>
                </div>
              </div>
            </div>
    
           
          </div>
    
          <a class="carousel-control-prev" href="#heroCarousel" role="button" data-bs-slide="prev">
            <span class="carousel-control-prev-icon bi bi-chevron-left" aria-hidden="true"></span>
          </a>
    
          <a class="carousel-control-next" href="#heroCarousel" role="button" data-bs-slide="next">
            <span class="carousel-control-next-icon bi bi-chevron-right" aria-hidden="true"></span>
          </a>
    
        </div>
      </section><!-- End Hero -->
    
        <br>
        <br>
        <br>
    
    
    
      {% endif %}
        
        <br>
        <br>
        <br/>
        <br/>
        <br/>
        <br/>
        {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
            <div class="container">
                <div class="row">
                    {% for userEntreprise in userEntreprises %}
                    <div class="col-md-4">
                        <a href="{{ path('admin_afficher_entreprise', {'slug': userEntreprise.entreprise.slug}) }}">
                            <div class="card">
                                <div class="card-body">
                                    <p class="text-center">
                                    <img class="img-fluid" src="{{ asset(userEntreprise.entreprise.logo.url) }}" />
                                    </p>
                                    <h3>
                                        
                                            {{ userEntreprise.entreprise.nom }}
                                    
                                    </h3>
                                </div>
                                <div class="card-footer">
                                    {{ 'entreprise.role' | trans }}: {{ userEntreprise.role }}
                                </div>
                            </div>
                    </a>
                    </div>
                    {% endfor %}
                </div>
            </div>
        {% else %}
        {% endif %}
        <br/>
    {% endblock contenu_propre  %}