templates/admin/fields/OrderSummaryField.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 class="row blokrij01">
  7.         <div id="record" class="col-5">
  8.         <table id="table11" class="table datagrid">
  9.             <thead>
  10.                 <tr class="d-flex">
  11.                     <th colspan="2" class="col-12">
  12.                         <div class="">
  13.                             <p class="ps-2 mb-1">Record</p>
  14.                         </div>
  15.                     </th>
  16.                 </tr>
  17.             </thead>
  18.             
  19.             <tbody>
  20.                 {% for key, value in field.formattedValue['orderOverzicht'][0] %}
  21.                     <tr class="d-flex">
  22.                         <td class="col-3">
  23.                             <div class="">
  24.                                 <p class="float-start mb-0" style="{{field.formattedValue['orderOverzicht'][3][key]}}">{{ key|capitalize|raw }}:</p>
  25.                             </div>
  26.                         </td>
  27.                         <td class="col-9">
  28.                             <div class="">
  29.                                 <p class="float-start mb-0" style="{{ field.formattedValue['orderOverzicht'][3][key] }}">{{ value|raw|nl2br }}</p>
  30.                             </div>
  31.                         </td>
  32.                         {# <div class='col-1 float-start {{ field.formattedValue['orderOverzicht'][1][key] }}'>P</div> #}
  33.                     </tr>
  34.                     {#
  35.                                     <tr><td>
  36.                                         <div class="col-6 bg-secundary">
  37.                                             <p class="mb-0">{{ field.formattedValue['orderOverzicht'][2][key]|raw|nl2br }}</p>
  38.                                         </div>
  39.                                         </td>
  40.                                         </tr>
  41.                                     </tr>
  42.                                     #}
  43.                 {% endfor %}
  44.             </tbody>
  45.         </table>
  46.         </div>
  47.         <div id="basisgegevens" class="col-7">
  48.         <table id="table12" class="table datagrid">
  49.             <thead>
  50.                 <tr class="d-flex">
  51.                     <th colspan="2" class="col-12 ">
  52.                         <div class="">
  53.                             <p class="ps-2 mb-1">Basisgegevens</p>
  54.                         </div>
  55.                     </th>
  56.                 </tr>
  57.             </thead>
  58.             <tbody>
  59.                 {% for key, value in field.formattedValue['orderBasisgegevens'][0] %}
  60.                     {% set emphasisClass = 'text-secondary' %}
  61.                     {% set emphasisStyle = '' %}
  62.                     {% if (key == 'Opmerkingen') and (value|trim is not empty)  %}
  63.                         {% set emphasisClass = 'font-weight-bold' %}
  64.                         {% set emphasisStyle = 'style="color:red;"' %}
  65.                         {# set emphasisStyle = 'style="color:red;font-weight: bold;"' #}
  66.                     {% endif %}
  67.                     <tr class="d-flex">
  68.                         <td class="col-3">
  69.                             <div class="">
  70.                                 <p class="float-start mb-0 {# emphasisClass #} " {# emphasisStyle | raw #} style="{{field.formattedValue['orderBasisgegevens'][3][key]}}">{{ key | raw}}:</p>
  71.                             </div>
  72.                         </td>
  73.                         <td class="col-9">
  74.                             <div class="">
  75.                                 <p class="float-start mb-0" style="{{ field.formattedValue['orderBasisgegevens'][3][key] }}">{{ value|raw|nl2br }}</p>
  76.                             </div>
  77.                         </td>
  78.                         {#<div class='col-1 float-start {{ field.formattedValue['orderBasisgegevens'][1][key] }}'>P</div>#}
  79.                     </tr>
  80.                     {#<tr>
  81.                                     <td>
  82.                                         <div class="col-6 ">
  83.                                             <p class="mb-0">{{ field.formattedValue['orderBasisgegevens'][2][key]|raw|nl2br }}bla</p>
  84.                                         </div>
  85.                                         </td>
  86.                     
  87.                                     </tr>
  88.                                     #}
  89.                 {% endfor %}
  90.             </tbody>
  91.         </table>
  92.         </div>
  93.     </div>
  94. </div>
  95. {#http://localhost/admin?crudAction=getUitgelichteAfbeelding&crudControllerFqcn=App%5CController%5CAdmin%5COrderCrudController&entityId=177&menuIndex=3&referrer=http://localhost/admin?crudAction%3Dindex%26crudControllerFqcn%3DApp%255CController%255CAdmin%255COrderCrudController%26entityFqcn%3DApp%255CEntity%255COr'> #}