src/templates/Recluta/table_pdf.html.twig line 1

Open in your IDE?
  1. {% block table_data %}  
  2.     <div class="pdfsubtitlefont">
  3.             Datos personales
  4.     </div>
  5.     <table width="100%">
  6.         <tr>
  7.             <td width="75%" >
  8.                 <table width="100%" class="table table-bordered pdffont">
  9.                     <tr>
  10.                         <td width="30%" style="font-weight: bold;">
  11.                             {% trans from 'crud' %} recluta.fields.cedula {% endtrans %}
  12.                         </td>
  13.                         <td width="70%">
  14.                             {{ entity.identificacion }}
  15.                         </td>
  16.                     </tr>
  17.                     <tr>
  18.                         <td style="font-weight: bold;">
  19.                             {% trans from 'crud' %} recluta.fields.nombres {% endtrans %}
  20.                         </td>
  21.                         <td>
  22.                             {{ entity.nombreCompleto }}
  23.                         </td>
  24.                     </tr>
  25.                     <tr>
  26.                         <td style="font-weight: bold;">
  27.                             {% trans from 'crud' %} recluta.fields.sexo {% endtrans %}
  28.                         </td>
  29.                         <td>
  30.                             {{ entity.sexo }}
  31.                         </td>
  32.                     </tr>
  33.                     <tr>
  34.                         <td style="font-weight: bold;">
  35.                             {% trans from 'crud' %} recluta.fields.estadoCivil {% endtrans %}
  36.                         </td>
  37.                         <td>
  38.                             {{ entity.estadoCivil }}
  39.                         </td>
  40.                     </tr>
  41.                     <tr>
  42.                         <td style="font-weight: bold;">
  43.                             {% trans from 'crud' %} recluta.fields.telefono {% endtrans %}
  44.                         </td>
  45.                         <td>
  46.                             {{ entity.telefono }}
  47.                         </td>
  48.                     </tr>
  49.                     <tr>
  50.                         <td style="font-weight: bold;">
  51.                             {% trans from 'crud' %} recluta.fields.email {% endtrans %}
  52.                         </td>
  53.                         <td>
  54.                             {{ entity.email }}
  55.                         </td>
  56.                     </tr>
  57.                     <tr>
  58.                         <td style="font-weight: bold;">
  59.                             {% trans from 'crud' %} recluta.fields.estatura {% endtrans %}
  60.                         </td>
  61.                         <td>
  62.                             {{ entity.estatura }}
  63.                         </td>
  64.                     </tr>
  65.                 </table>
  66.             </td>
  67.             <td width="30%" style="text-align: center; vertical-align:top">  
  68.                 {% if entity.getFoto() %}  
  69.                     <img height="140px" src="{{ absolute_url(entity.getFoto().getUrl()) }}">               
  70.                 {% else %}
  71.                     {% if entity.sexo=='Masculino' %}
  72.                         <img height="140px" src="{{ absolute_url(asset('images/foto_hombre.jpg')) }}">
  73.                     {% else %}
  74.                         <img height="140px" src="{{ absolute_url(asset('images/foto_mujer.jpg')) }}">
  75.                     {% endif %}
  76.                 {% endif %}
  77.             </td>
  78.         </tr>
  79.     </table>
  80.                     
  81. {% endblock table_data %}