templates/network/auction/sections/auction_section_horses.html.twig line 35

Open in your IDE?
  1. <turbo-frame id="tab_content">
  2.   <section id="horses-at-auction"
  3.     class="container p-4 overflow-x-hidden bg-white shadow-xl scroll-mt-12 sm:p-8 xl:p-16"
  4.     style="">
  5.     {% if (auction.horses|length) > 0 %}
  6.       {% do section_navigation_add({ name: 'horses-at-auction', anchor: 'horses-at-auction' }) %}
  7.       <h2 class="text-lg font-medium uppercase md:text-xl font-headline mb-7">
  8.         {{ 'horses-at-auction-with-count'|trans({ '%count': auction.horses|length }) }}
  9.       </h2>
  10.       <div class="overflow-x-auto">
  11.         <div class="grid gap-4 lg:grid-cols-1">
  12.           {% for horse in auction.horses %}
  13.             {# <div class=""> #}
  14.             {% include 'network/auction/components/horse_event_tile.html.twig' with {
  15.               horse: horse.object
  16.             } %}
  17.             {# </div> #}
  18.           {% endfor %}
  19.         </div>
  20.       </div>
  21.     {% else %}
  22.       <div class="text-black">
  23.         <h2 class="text-lg font-medium uppercase md:text-xl font-headline mb-7">
  24.           {{ 'horses-at-auction-with-count'|trans({ '%count': auction.horses|length }) }}
  25.         </h2>
  26.         {{ 'no.auction.horses.available'|trans }}
  27.       </div>
  28.     {% endif %}
  29.   </section>
  30.   <turbo-stream action="replace" target="tab_navigation">
  31.     <template>
  32.       {% include 'network/auction/components/tab_navigation_component.html.twig' with {
  33.         auction: auction,
  34.         highlightedTab: app.request.pathInfo
  35.       } %}
  36.     </template>
  37.   </turbo-stream>
  38. </turbo-frame>