src/Flexy/ShopBundle/templates/orders/field/logHistoryData.html.twig line 1

  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
  3. {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
  4. <ul class="list-group">
  5.   
  6.   {% for key, singleData in field.value %}
  7.     <li class="list-group-item">{{key|trans({},"admin")}} : 
  8.     {% if singleData.timestamp is defined %}
  9.         {{ singleData|date('m/d/Y H:i') }}
  10.     {% else %}
  11.       
  12.         {% if singleData is iterable %}
  13.             {% for singleValue in singleData %}
  14.                 {% if key == "customer" %}
  15.                     {{ shopProvider.getCustomerById(singleValue) }}
  16.                 {% else %}
  17.                     {{ singleValue }},
  18.                  {% endif %}
  19.             {% endfor %}
  20.         {% else %}
  21.             {% if key == "customer" %}
  22.                 {{ shopProvider.getCustomerById(singleData) }}
  23.             {% else %}
  24.             
  25.                 {{ singleData }}
  26.             {% endif %}
  27.              {{ singleData }}
  28.         {% endif %}
  29.     {% endif %}
  30.     
  31.     
  32.     </li>
  33.   {% endfor %}
  34. </ul>