templates/admin/fields/OrderSummaryWorkflowField.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. {% set colorRgb =  entity.instance.vestiging.colorRgb %}
  5. {#<div class="container  border border-1 border-success rounded pt-2 pb-2" style="--bs-success-rgb: {{colorRgb}};">#}
  6.     <div class="container  border border-1 border-success rounded pt-2 pb-2" style="--bs-success-rgb: {{colorRgb}};"> <div id="record" class="col-12">
  7.         <table id="table21" class="table datagrid">
  8.             <thead>
  9.                 <tr class="d-flex">
  10.                     <th colspan="3" class="col-12">
  11.                         <div class="">
  12.                             <p class="ps-2 mb-1">Workflow overzicht</p>
  13.                         </div>
  14.                     </th>
  15.                 </tr>
  16.             </thead>
  17.             <tbody>
  18.                 {% for key, value in field.formattedValue[0] %}
  19.                     <tr class="d-flex">
  20.                         <td class="col-3">
  21.                             <div class="">
  22.                                 <p class="float-end mb-0 text-secondary">{{ key|raw }}:</p>
  23.                             </div>
  24.                         </td>
  25.                         <td class="col-8">
  26.                             <div class="">
  27.                                 <p class="float-start mb-0" style="{{ field.formattedValue[3][key] }}">{{ value|raw|nl2br }}</p>
  28.                             </div>
  29.                         </td>
  30.                         <td class="col-1">
  31.                             <div class=' float-start {{ field.formattedValue[1][key] }}'></div>
  32.                         </td>
  33.                     </tr>
  34.                     {% if field.formattedValue[2][key] %}
  35.                     <tr class="d-flex">
  36.                         <td class="col-3">
  37.                             <div>
  38.                                 <p></p>
  39.                             </div>
  40.                         </td>
  41.                         <td colspan="2" class="col-9">
  42.                             <p class="mb-0">{{ field.formattedValue[2][key]|raw|nl2br }}</p>
  43.                         </td>
  44.                     </tr>
  45.                     {% endif %}
  46.                 {% endfor %}
  47.             </table>
  48.         </tbody>
  49.     </div>
  50. </div>