templates/bundles/SyliusAdminBundle/Customer/Show/_reduction_products.html.twig line 1

Open in your IDE?
  1. <div id="reduction_products">
  2.     <h4 class="ui top attached large header">{{ 'app.ui.reduction_products'|trans }}</h4>
  3.     <div class="ui attached segment">
  4.         {% if customer.reductionProducts | length > 0 %}
  5.             <table class="ui celled table">
  6.                 <thead>
  7.                     <tr>
  8.                         <th>{{ 'app.ui.reduction_type' | trans }}</th>
  9.                         <th>{{ 'sylius.ui.products' | trans }}</th>
  10.                         <th>{{ 'app.ui.reduction_value' | trans }}</th>
  11.                     </tr>
  12.                 </thead>
  13.                 <tbody>
  14.                     {% for reductionProducts in customer.reductionProducts %}
  15.                         <tr>
  16.                             <td>{{ ('app.ui.'~ reductionProducts.reductionType)| trans }}</td>
  17.                             <td>
  18.                                 {% for product in  reductionProducts.products %}
  19.                                     <span class="ui label">{{ product }}</span>
  20.                                 {% endfor %}
  21.                             </td>
  22.                             <td>{{ reductionProducts.reductionValue }}</td>
  23.                         </tr>
  24.                     {% endfor %}
  25.                 </tbody>
  26.             </table>
  27.         {% else %}
  28.             <div class="ui brown message">{{ 'app.ui.no_discounts_available' | trans }}.</div>
  29.         {% endif %}
  30.     </div>
  31. </div>