templates/ecom/citybrands.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3.   <div class="container-fluid main-holder px-5 bg-light">
  4.     <div class="row">
  5.       <div class="col-lg-3">
  6.         <select class="form-select rounded-pill py-3 px-3 shadow-none border-0 fs-5 bg-transparent fw-bold mb-3" id="citydropdown" onchange="city_select(this)">
  7.           <option selected>Select a City</option>
  8.           {% for c in ecomvariables.cities() %}
  9.           <option value="{{ c.id }}" {% if (c.name == app.session.get('mycity')) %}selected{% endif %}>{{ c.name }}</option>
  10.           {% endfor %}
  11.         </select>
  12.       </div>
  13.       <div class="col-lg-4 position-relative mb-3"> <i data-feather="search" class="iconsize position-absolute search-icon"></i>
  14.         <input class="form-control border rounded-pill py-3 px-3 ps-5 shadow-none" type="text" id="" placeholder="Search">
  15.       </div>
  16.     </div>
  17.   </div>
  18.   <div class="container-fluid px-5 mt-5">
  19.     <div class="row">
  20.       <div class="col-lg-12">
  21.         <h1 class="fw-bolder">{{ city.name }} Brands</h1>
  22.         <h6>{{ city.name }} Current Favourite Brands</h6>
  23.       </div>
  24.     </div>
  25.     <div class="row">
  26.       {% for b in brands %}
  27.       <div class="col-lg-3 mt-4"> <a href="{{ path('sajong_ecom_brand_categories', {'brand':b.title~'_'~b.id }) }}">
  28.         <div class="card border-0 rounded-5 p-0 overflow-hidden shadow-sm"> <img src="{{ asset('uploads/brand/' ~ b.image) }}" alt="" class="img-fluid"> </div>
  29.         <h6 class="fw-bold mt-3 mb-4">{{ b.title }}</h6>
  30.         </a> 
  31.       </div>
  32.       {% endfor %}
  33.     </div>
  34.   </div>
  35.   <div class="container-fluid px-5 bg-primary py-4 mt-4">
  36.     <div class="row">
  37.       <div class="col-md-4 position-relative mb-3 "> <i data-feather="search" class="iconsize position-absolute search-icon"></i>
  38.         <input class="form-control border rounded-pill py-3 px-3 ps-5 shadow-none" type="text" id="" placeholder="Search">
  39.       </div>
  40.       <div class="col-lg-6 pt-3 pb-3"> <a href="#0" class="bg-secondary text-white px-4 py-4 rounded-pill me-3">View All Brands</a> <a href="#0" class="bg-secondary text-white px-4 py-4 rounded-pill">Request a Brand</a> </div>
  41.     </div>
  42.   </div>
  43. {% endblock %}