templates/auction/list.html.twig line 1

Open in your IDE?
  1. {% extends 'page.html.twig' %}
  2.         {% form_theme filter 'form/mirco.html.twig' %}
  3.         {% import 'macros/button.macro.twig' as button %}
  4.         {% block content %}
  5.             <div class="py-6 mx-auto bg-white max-w-8xl">
  6.                 <div class="container mx-auto max-w-screen-3xl">
  7.                     <div class="py-12">
  8.                         <h2 class="mb-6 text-2xl font-medium uppercase">
  9.                             {{ 'auction-overview'|trans }}
  10.                         </h2>
  11.                         <div class="mb-12">{{pimcore_wysiwyg('description',{
  12.             "height": 200,
  13.         } )}}</div>
  14.                         {{ form_start(filter, { attr: {'data-controller': 'autosubmit'}}) }}
  15.                         <div class="grid items-baseline gap-6 my-6 lg:grid-cols-3">
  16.                             {{ form_row(filter.auctionhouse) }}
  17.                             {{ form_row(filter.type) }}
  18.                         </div>
  19.                         <div>
  20.                             {% set period = filter.vars.value.period is defined ? filter.vars.value.period : 'future' %}
  21.                             <input type="hidden" name="period" value="{{ filter.vars.value.period }}">
  22.                             {{
  23.             button.submit(
  24.               'future.auctions'|trans,
  25.               period == 'future' ? 'primary' : 'neutral',
  26.               { size: 'sm', attr: { name: 'period', value: 'future' } }
  27.             )
  28.           }}
  29.                             {{
  30.             button.submit(
  31.               'past.auctions'|trans,
  32.               period == 'past' ? 'primary' : 'neutral',
  33.               { size: 'sm', attr: { name: 'period', value: 'past' } }
  34.             )
  35.           }}
  36.                         </div>
  37.                         {{ form_end(filter, { render_rest: false }) }}
  38.                     </div>
  39.                     <div class="grid grid-cols-12 xl:gap-12">
  40.                         <div class="grid col-span-12 gap-4 xl:col-span-8 auto-rows-min">
  41.                             {% for auction in pagination %}
  42.                                 {% if auction.auctionhouse %}
  43.                                     
  44.                                 {% include 'auction/auction_card.html.twig' with {
  45.               auction: auction
  46.             } %}
  47.                                 {% endif %}
  48.                             {% else %}
  49.                                 <div class="mb-10 text-2xl font-medium uppercase text-neutral-600">
  50.                                     {{ 'no-filter-results'|trans }}
  51.                                 </div>
  52.                             {% endfor %}
  53.                             {% if pagination.count %}
  54.                                 <div class="grid my-12 mb-20 place-items-center">
  55.                                     {% include 'component/pagination.html.twig' with { pagination: pagination } %}
  56.                                 </div>
  57.                             {% endif %}
  58.                         </div>
  59.                         <div class="col-span-12 xl:col-span-4">
  60.                             {% include 'component/areablock-column-layout.html.twig' with {
  61.             areablockname: 'pagethreeright'
  62.           } %}
  63.                         </div>
  64.                     </div>
  65.                 </div>
  66.                 <div class="container my-8">
  67.                     <h2 class="mb-6 text-2xl font-medium uppercase">
  68.                         {{ 'auction.list.timelinepost.overview'|trans }}
  69.                     </h2>
  70.                     {% for post in timelineposts %}
  71.                         {# <turbo-frame id="frame-timeline-post-{{ post.id }}" src="{{ path('timeline_card_reduced', { _locale: app.request.locale, postId: post.id }) }}">
  72.                             {% include 'network/profile/timeline/card_skeleton.html.twig' %}
  73.                         </turbo-frame> #}
  74.                         <div {{
  75.                           react_component(
  76.                             'LazyCard',
  77.                             {
  78.                               postId: post.id,
  79.                               locale: app.request.locale,
  80.                               embedded: true,
  81.                               user: app.user ? {
  82.                                 id: app.user.id,
  83.                                 name: app.user.name,
  84.                                 avatar: app.user.avatar ? app.user.avatar.frontendFullPath
  85.                               }
  86.                             }
  87.                           )
  88.                           }}></div>
  89.                     {% else %}
  90.                         {% include 'network/profile/timeline/no_activity.html.twig' with { showButton: false } %}
  91.                     {% endfor %}
  92.                 </div>
  93.             </div>
  94.         {% endblock %}