templates/network/auction/sections/auction_section_attendees.html.twig line 42

Open in your IDE?
  1. <turbo-frame id="tab_content">
  2.   {# {% if (auction.attendees|length) > 0 %} #}
  3.   {% do section_navigation_add({ name: 'auction-attendees', anchor: 'event-attendees' }) %}
  4.   <section id="event-attendees"
  5.     class="container p-4 overflow-x-hidden bg-white shadow-xl sm:p-8 xl:p-16"
  6.     {{ live_event_subscriber('auction-attendees-' ~ auction.id) }}>
  7.     <h2 class="text-lg font-medium uppercase md:text-xl font-headline mb-7">
  8.       {{ 'attendees-with-count'|trans({ '%count': auction.attendees|length }) }}
  9.     </h2>
  10.     <div class="overflow-x-auto" id="event-{{ auction.id }}-attendees-full">
  11.       {# {% include 'profile/attendees_full.html.twig' with { event: auction } %} #}
  12.       {% for profileCategory, profiles in attendees %}
  13.         <div>
  14.           <div class="flex items-center gap-2 mb-2 text-base font-medium uppercase w-min font-headline">
  15.             {% include 'icons/subprofile-' ~ profileCategory ~ '.svg.twig' with {
  16.               class: 'w-6 h-6'
  17.             } %}
  18.             <span>{{ profileCategory|capitalize }}</span>
  19.           </div>
  20.           <div class="grid grid-cols-1 gap-4 md:grid-cols-2">
  21.             {% for attendee in profiles %}
  22.               {% include 'network/profile/components/profile_card_network.html.twig' with {
  23.                 profile: attendee,
  24.                 class: 'bg-neutral-50',
  25.                 showContact: false
  26.               } only %}
  27.             {% endfor %}
  28.           </div>
  29.         </div>
  30.       {% else %}
  31.         <div>
  32.           {{ 'no.auction.attendees.available'|trans }}
  33.         </div>
  34.       {% endfor %}
  35.     </div>
  36.   </section>
  37.   <turbo-stream action="replace" target="tab_navigation">
  38.     <template>
  39.       {% include 'network/auction/components/tab_navigation_component.html.twig' with {
  40.         auction: auction,
  41.         highlightedTab: app.request.pathInfo
  42.       } %}
  43.     </template>
  44.   </turbo-stream>
  45. </turbo-frame>