templates/content/product.html.twig line 1

Open in your IDE?
  1. {% extends 'layout.html.twig' %}
  2. {% block content %}
  3.     <div class="product-info">
  4.         <table align="center" class="table table-striped table-bordered ">
  5.             <thead>
  6.             <tr>
  7.                 <th>Serial No</th>
  8.                 <th>Product Name</th>
  9.                 <th>Product Price</th>
  10.                 <th>Product Viewed</th>
  11.                 <th>Product Orderd</th>
  12.                 <th>Product Status:</th>
  13.                 <th>Product Image</th>
  14.                 <th>Action</th>
  15.             </tr>
  16.             </thead>
  17.             <tbody>
  18.             {% for product in proList %}
  19.                 <tr>
  20.                     <td>{{ product.product_id|e }}</td>
  21.                     <td>{{ product.products_name|e }}</td>
  22.                     <td>{{ product.products_price|e }}</td>
  23.                     <td>{{ product.products_viewed|e }}</td>
  24.                     <td>{{ product.products_ordered|e }}</td>
  25.                     <td>{{ product.products_status|e }}</td>
  26.                     <td> {% if product.products_image is not empty %}<img  width="100px" src="{{ asset('/var/assets/' ~ product.products_image) }}"/>{% endif %}</td>
  27.                     <td><a href="{{ path('Productdetail', {'id': product.product_id}) }}"class="btn btn-success btn-sm">View Details</a></td>
  28. {#                    {{ dump(product.product_id) }}#}
  29.                 </tr>
  30.             {% endfor %}
  31.             </tbody>
  32.         </table>
  33.         {% for product in paginator %}
  34.         {% endfor %}
  35.         <br />
  36.         {% include 'content/pagination.html.twig' %}
  37.        </div>
  38. {% endblock %}