templates/content/customers.html.twig line 1

Open in your IDE?
  1. {% extends 'layout.html.twig' %}
  2. {% block content %}
  3.     <div class="customers-info">
  4.         <table class="table table-striped table-bordered">
  5.             <thead>
  6.             <tr>
  7.                 <th>S.No</th>
  8.                 <th>Customer FirstName</th>
  9.                 <th>Customer LastName</th>
  10.                 <th>Customer Status</th>
  11.                 <th>Customers Email-Address</th>
  12.                 <th>Action</th>
  13.             </tr>
  14.             </thead>
  15.             <tbody>
  16.          {% for customers in customersList %}
  17.                 {#                {% if product.product_id is empty %}#}
  18.                 {#                    {% continue %}#}
  19.                 {#                {% endif %}#}
  20.                 <tr>
  21.                     <td>{{ customers.customers_id|e }}</td>
  22.                     <td>{{ customers.customers_firstname|e }}</td>
  23.                     <td>{{ customers.customers_lastname|e }}</td>
  24.                     <td>{{ customers.customers_status|e }}</td>
  25.                     <td>{{ customers.customers_email_address|e }}</td>
  26.                     <td><a href="{{ path('customers', {'id': customers.customers_id}) }}"class="btn btn-success btn-sm">
  27.                             View Details</a></td>
  28.                 </tr>
  29.             {% endfor %}
  30.             </tbody>
  31.         </table>
  32.         {% for customers in paginator %}
  33.         {% endfor %}
  34.         <br />
  35.         {% include 'content/pagination.html.twig' %}
  36.     </div>
  37. {% endblock %}