templates/admin/fields/orderInfoRecordField.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. <table>
  5. <tbody>
  6. {% if ea.crud.currentAction == 'detail' %}
  7.     {% for key, value in field.formattedValue.record %}
  8.     <tr><td style="text-align:right; vertical-align:top;color:gray;width:250px ">{{ key|raw }}:</td><td style="padding-left:10px">{{ value|raw|nl2br }}</td></tr>
  9.     {% endfor %}
  10.     <tr><td style="text-align:right; vertical-align:top;color:gray;width:250px "></td><td style="padding-left:10px">&nbsp;</td></tr>
  11.     {% for key, value in field.formattedValue.status %}
  12.     <tr><td style="text-align:right; vertical-align:top;color:gray;width:250px ">{{ key|raw }}:</td><td style="padding-left:10px">{{ value|raw|nl2br }}</td></tr>
  13.     {% endfor %}
  14. {% else %}
  15.     <span title="Message">"Use only on Detailpage"</span>
  16. {% endif %}
  17. </tbody>
  18. </table>