templates/admin/field/lineas.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>Nombre</th>
  8.             <th>Unidades</th>
  9.             <th>Precio</th>
  10.         </tr>
  11.         {% for value in field.value %}
  12.         <tr>
  13.             <td class="{{ not value.parent ? '' : 'ps-4' }}">{{ value.descripcion }}</td>
  14.             <td>{{ value.unidades }}</td>
  15.             <td>$ {{ value.preciototal }}</td>
  16.         </tr>
  17.         {% endfor %}
  18.     </table>
  19. {% else %}
  20.     <span class="badge badge-secondary">{{ field.formattedValue }}</span>
  21. {% endif %}