templates/bundles/SyliusShopBundle/Product/Index/sizebar.html.twig line 1

Open in your IDE?
  1. {% set sizes = ['xs','s','m','l','xl'] %}
  2. <div>
  3.     <div class="title-state-div"><h4>Taille</h4><span class="toggle-btn-4" id="button-div" onclick="toggleDiv('div-size-bar', 'toggle-btn-4')">-</span></div>
  4.     <div class="div-size-bar">
  5.         <div class="" id="sylius_product_size">
  6.             {% for size in sizes %}
  7.                 <div class="div-size">
  8. {#                    <label for=""></label>#}
  9.                     <input type="checkbox" name="size-product[]" value="{{ size }}" class="product_size">
  10.                     <div>
  11.                         <h4>{{ size }}</h4>
  12.                     </div>
  13.                 </div>
  14.             {% endfor %}
  15.         </div>
  16.     </div>
  17. </div>
  18. <style>
  19.     /*.div-size, .div-brand, .div-location, .div-vendor_type{*/
  20.     /*    position: relative;*/
  21.     /*    margin: 0 0.5rem;*/
  22.     /*}*/
  23.     /*.div-size > div {*/
  24.     /*    position: absolute;*/
  25.     /*    top: 0;*/
  26.     /*    z-index: 1;*/
  27.     /*    width: 4rem;*/
  28.     /*    display: flex;*/
  29.     /*    align-items: center;*/
  30.     /*    justify-content: center;*/
  31.     /*    height: 100%;*/
  32.     /*}*/
  33.     /*.div-size > input[type=checkbox], .div-brand > input[type=checkbox], .div-location > input[type=checkbox], .div-vendor_type > input[type=checkbox], .div-vendor_category > input[type=checkbox] {*/
  34.     /*    z-index: 2;*/
  35.     /*    cursor: pointer;*/
  36.     /*}*/
  37.     /*.div-size input[type=checkbox]:checked ~ div, .feature2 input[type=checkbox]:hover ~ div, .div-brand input[type=checkbox]:checked ~ div, .div-location input[type=checkbox]:checked ~ div, .div-vendor_type input[type=checkbox]:checked ~ div {*/
  38.     /*    border: 2px solid black;*/
  39.     /*    background-color: black;*/
  40.     /*    color: white;*/
  41.     /*}*/
  42.     /*.div-size input[type=checkbox] ~ div, .div-brand input[type=checkbox] ~ div, .div-location input[type=checkbox] ~ div, .div-vendor_type input[type=checkbox] ~ div{*/
  43.     /*    border: 2px solid black;*/
  44.     /*    border-radius: 0.5rem;*/
  45.     /*    text-align: center;*/
  46.     /*    cursor: pointer;*/
  47.     /*}*/
  48.     /*.product_size, .product_brand, .product_location, .product_vendor_type{*/
  49.     /*    -webkit-appearance: none;*/
  50.     /*    border-radius: 0.5rem;*/
  51.     /*    display: inline-block;*/
  52.     /*    position: relative;*/
  53.     /*    padding: 0.5rem 1rem;*/
  54.     /*    border: 2px solid transparent;*/
  55.     /*    width: 4rem;*/
  56.     /*    height: 2rem;*/
  57.     /*}*/
  58.     /*#sylius_product_size, #sylius_product_brand, #sylius_product_location, #sylius_product_vendor_type{*/
  59.     /*    display: flex;*/
  60.     /*    flex-direction: row;*/
  61.     /*    gap: 1rem 0;*/
  62.     /*    flex-wrap: wrap;*/
  63.     /*}*/
  64. </style>