templates/shop/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Shop index{% endblock %}
  3. {% block body %}
  4. <div class="d-flex justify-content-between align-items-center">
  5.     <h1>{{ "Shops"|trans }}</h1>
  6. </div>
  7.     <table class="table table-bordered table-striped">
  8.         <thead>
  9.             <tr>
  10.                 <th>Id</th>
  11.                 <th>{{ "Name"|trans }}</th>
  12.                 <th>Channel</th>
  13.                 <th>Wtt Markeplace</th>
  14.                 <th></th>
  15.                 <th></th>
  16.                 <th></th>
  17.                 <th></th>
  18.             </tr>
  19.         </thead>
  20.         <tbody>
  21.         {% for shop in shops %}
  22.             <tr>
  23.                 <td>{{ shop.id }}</td>
  24.                 <td><a href="{{ path('app_shop_switch', {'id':shop.id}) }}">{{ shop.name }}</a></td>
  25.                 <td>{{ shop.channel }}</td>
  26.                 <td>{{ marketplaces[shop.wttId] }}</td>
  27.                 <td>
  28.                     <a href="{{ path('app_stock_admin_list') }}?shop={{ shop.id }}">{{ "Stock"|trans }}</a>
  29.                 </td>
  30.                 <td>
  31.                     <a href="{{ path('app_shop_orders', {'id': shop.id}) }}">{{ "Orders"|trans }}</a>
  32.                 </td>
  33.                 <td>
  34.                     <a href="{{ path('app_shop_users', {'id': shop.id}) }}">{{ "Users"|trans }}</a>
  35.                 </td>
  36.                 <td>
  37.                     <a href="{{ path('app_shop_edit', {'id': shop.id}) }}">edit</a>
  38.                 </td>
  39.             </tr>
  40.         {% else %}
  41.             <tr>
  42.                 <td colspan="7">{{ "no records found"|trans }}</td>
  43.             </tr>
  44.         {% endfor %}
  45.         </tbody>
  46.     </table>
  47.     <a class="btn btn-primary"  href="{{ path('app_shop_new') }}">{{ "Create new"|trans }}</a>
  48. {% endblock %}