templates/admin/mymarket/show.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3.     AFI Market {{ mymarket.name }}
  4.     {% if flag == '1' %}
  5.         {{ categories[0].name }}
  6.     {% endif %}
  7. {% endblock %}
  8. {% block body %}
  9.     <hr>
  10.     {% if flag == '1' %}
  11.         {{ include('partials/title_section_1.html.twig',{'icon':'fa fa-check','title':mymarket.name~' Market - '~categories[0].name|trans,'sousTitle':'product market, any market, category market'|trans,'name': mymarket.name~' Market - '~categories[0].name|trans}) }}
  12.     {% else %}
  13.         {{ include('partials/title_section_1.html.twig',{'icon':'fa fa-check','title':mymarket.name~' Market'|trans,'sousTitle':'product market, any market, category market'|trans,'name': mymarket.name~' Market'|trans}) }}
  14.     {% endif %}
  15.     <br>
  16.     <div class="container" style="min-height: 480px">
  17.         <div class="row">
  18.             <div class="col-xl-3 col-lg-4 col-md-4 col-sm-4 col-xs-4 col-4 col-4">
  19.                 <div class="img-thumbnail text-center">
  20.                     <img height="100" width="100" src="{{ asset('/assets/uploads/mymarket/'~mymarket.image)}}">
  21.                 </div>
  22.             </div>
  23.             <div class="col-xl-9 col-lg-8 col-md-8 col-sm-8 col-xs-8 col-8">
  24.                 <div class="img-thumbnail font-monospace" style="padding: 38px;font-weight: bold; font-size: 14pt; background: #e9f5ff">
  25.                     {% if flag == '0' %}
  26.                         <div class="row">
  27.                             <div class="col-xl-8 text-left">
  28.                                 ALL  CATEGORIES
  29.                             </div>
  30.                             <div class="col-xl-4  justify-content-md-end">
  31.                                 {{ mymarket.name|upper }}
  32.                             </div>
  33.                         </div>
  34.                     {% else %}
  35.                         <div class="row">
  36.                             <div class="col-xl-8 text-left">
  37.                                 CATEGORY PRODUCTS
  38.                             </div>
  39.                             <div class="col-xl-4 justify-content-md-end">
  40.                                 {{ categories[0].name|upper }}
  41.                             </div>
  42.                         </div>
  43.                     {% endif %}
  44.                 </div>
  45.             </div>
  46.         </div>
  47.         <div class="row">
  48.             <div class="col-xl-3 col-lg-4 col-md-4 col-sm-4 col-xs-4 col-4">
  49.                 <div style="min-height: 160px">
  50.                     <div class="font-monospace fs-6 mt-4  text-dark">
  51.                         <i class="fa fa-check-circle"></i> {{ 'Categories market'|trans|upper }}
  52.                     </div>
  53.                     <hr>
  54.                     <div class=" row justify-content-center" >
  55.                         {% for category in mymarket.categories %}
  56.                             <span class="mt-1 m-1 fs-6">
  57.                                <a href="{{ path('mymarket_show_category',{'id': mymarket.id,'category':category.id}) }}"  class="badge badge-pill badge-primary font-weight-bold">
  58.                                <span class="badge badge-pill badge-light"><i class="fa fa-circle"></i></span> {{ category.name|trans }}
  59.                             </a>
  60.                            </span>
  61.                         {% endfor %}
  62.                     </div>
  63.                 </div>
  64.                 <div class="font-monospace fs-6 mt-3 text-dark">
  65.                     <i class="fa fa-check-circle"></i> {{ 'Markets'|trans|upper }}
  66.                 </div>
  67.                 <hr>
  68.                 <div>
  69.                     {% for mymarket in mymarkets|shuffle|slice(0,7) %}
  70.                         <a href="{{ path('mymarket_show',{'id':mymarket.id}) }}" data-spm="d13" data-id="13">
  71.                             <div class="category-item category-banner-ta mt-2">
  72.                                 <div class="img-thumbnail" style="background: #f6f6f6">
  73.                                     <span class="img image-avatar"><img style="border-radius: 10px" height="30" width="35" src="{{ asset('/assets/uploads/mymarket/'~mymarket.image)}}"></span>
  74.                                     <span class="txt font-weight-bold" style="overflow:hidden; text-overflow-ellipsis: ellipsis ">&nbsp;{{ mymarket.name|trans }}</span>
  75.                                 </div>
  76.                                 <i class="sc-hd-prefix2-icon sc-hd-prefix2-icon-arrow-right"></i>
  77.                             </div>
  78.                         </a>
  79.                     {% endfor %}
  80.                 </div>
  81.             </div>
  82.             <div class="col-xl-9 col-lg-8 col-md-8 col-sm-8 col-xs-8 col-8">
  83.                 <div class="row mt-3 justify-content-center">
  84.                     {% for category in categories %}
  85.                         {% for product in category.products %}
  86.                             <div class="col-xl-4 col-lg-6 col-md-6 col-sm-12 col-xs-12 col-12">
  87.                                 {{ include('partials/product.html.twig',{'product':product}) }}
  88.                             </div>
  89.                         {% endfor %}
  90.                     {% else %}
  91.                         <div class="text-center col-12">
  92.                             {{ 'No products on this category'|trans }}
  93.                         </div>
  94.                     {% endfor %}
  95.                 </div>
  96.             </div>
  97.         </div>
  98.     </div>
  99.     <div class="container">
  100.         <div class="row">
  101.             <div class="col-md-12 product_index">
  102.                 <h2>{{ 'AFI SARL'|trans }} <b>{{ 'Import Export'|trans }}</b></h2>
  103.             </div>
  104.         </div>
  105.     </div>
  106.     {{ include('partials/modalQuickView.html.twig') }}
  107. {% endblock %}