templates/front/Testimony/list.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% trans_default_domain 'Testimony' %}
  3. {% block body %}
  4.     {{ parent() }}
  5.     {% include 'components/breadcrumb.html.twig' with {pages: [{label: 'testimony'}]} %}
  6.     {% include 'components/intro.html.twig' with {title: 'intro.title'|trans, subTitle: 'intro.subTitle'|trans, description: 'intro.description'|trans, icon: 'scroll.svg'} %}
  7.     <div class="testimony-page">
  8.         <div class="testimony-list">
  9.             {% for testimony in testimonys %}
  10.                 <div class="testimony-card">
  11.                     {% include 'components/notation.html.twig' with {rating: testimony.rating} %}
  12.                     <p class="text">{{ testimony.testimony }}.</p>
  13.                     <p class="name">{{ testimony.firstName }} {{ testimony.name|first|upper }}.</p>
  14.                 </div>
  15.             {% endfor %}
  16.             {{ include("components/pagination.html.twig", { pager: testimonys } ) }}
  17.         </div>
  18.         <div class="testimony-form">
  19.             <h2 class="title">{{ 'form.title'|trans }}</h2>
  20.             <p class="summary">{{ 'form.summary'|trans }}</p>
  21.             {% include 'forms/testimony.html.twig' %}
  22.         </div>
  23.     </div>
  24. {% endblock %}