templates/admin/field/status.html.twig line 1

Open in your IDE?
  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. {% if ea.crud.currentAction == 'detail' %}
  5.     <table class="table table-striped">
  6.         <tr>
  7.             <th>Estado</th>
  8.             <th>Usuario</th>
  9.             <th>Fecha y Hora</th>
  10.         </tr>
  11.         {% for value in field.value %}
  12.         <tr>
  13.             <td>{{ value.estado }}</td>
  14.             <td>{{ value.user }} {% if value.user is null %}BITCUBO-BOT{% endif %}</td>
  15.             <td>{{ value.createdAt | date('d-m-Y H:i:s') }}</td>
  16.         </tr>
  17.         {% endfor %}
  18.     </table>
  19. {% else %}
  20.     <span class="badge badge-secondary">{{ field.formattedValue }}</span>
  21. {% endif %}