templates/comments/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Retour d'éxpériences
  3. {% endblock %}
  4. {% block content %}
  5.     <h1 class="text-center m-5">Retour d'éxpérience :</h1>
  6.     <a href="{{ path('app_let_comment')}}" class="btn btn-info btn-gradient p-3 m-2 font-weight-bold text-center">
  7.         <img src="{{ asset('assets/images/iconComment.png') }}" alt="mes commentaires"><br>
  8.         Racontez-nous votre expérience
  9.     </a>
  10.     <div class="d-flex flex-row row comments">
  11.         {% for comment in comments %}
  12.             {% if comment.isValid == 1 %}
  13.                 <div class="d-block col-lg-6 col-md-6 col-sm-12 text-center">
  14.                     <h2 class="col-md-12 commentTilte">{{comment.author}}</h2>
  15.                     <div class="gallery-item col-md-12  d-block">
  16.                         <img src="/uploads/comments/{{ comment.illustration }}" class="mb-2" alt="test3" loading="lazy">
  17.                     </div>
  18.                     <div class=" d-block">{{comment.comment}}</div>
  19.                 </div>
  20.             {% endif %}
  21.         {% endfor %}
  22.     </div>
  23. </div>{% endblock %}