templates/formationPdf.html.twig line 1

Open in your IDE?
  1. <page backtop="0mm" backleft="0mm" backright="0mm" backbottom="20mm" footer="page;">
  2. <page_footer><img src="https://deamonerp.fr/cpi2/public/footer.png" style="width:122%;position:relative;right:-95px "></page_footer>
  3. <div style="width:120%; background:#0515F5; height:300px;  margin-top:-20px;  margin-left:-20px">
  4. <style>
  5. body {
  6.         font-family: 'dejavusans', sans-serif;
  7.         font-size:10px;
  8.     }
  9. .td1{
  10.     width:600px
  11. }
  12. .td2{
  13.     width:375px;
  14. }
  15. .td3{
  16.     width:240px;
  17.     background:#f2f2f2;
  18.     padding:11px;
  19. }
  20. ul{
  21.    font-size:10px;
  22.        line-height:10px;
  23.        margin-bottom:5px;
  24.        margin-top:5px;
  25. }
  26. li{
  27.     line-height:10px;
  28.     margin-top:5px;
  29.     margin-bottom:5px;
  30. }
  31. li::before {content: "•";font-size:10px;}
  32. p{
  33.     line-height:15px;
  34. }
  35. .menu .ligneBleu {
  36.   background-color: blue;
  37.   width: 95%;
  38.   height: 4px;
  39.   margin-left: 20px;
  40. }
  41. .titreRond {
  42.   font-weight: bold;
  43.   border-radius: 10px;
  44.   font-size: 12px;
  45.   color: white;
  46.   padding: 4px;
  47.   background: blue;
  48.   background-repeat:no-repeat;
  49.   font-size:12px;
  50.   width:170px;
  51. }
  52. .tab{
  53.     font-size:10px
  54. }
  55. </style>
  56. <table border="0" style="margin:60px; height:400px; margin-top:10px; margin-bottom:10px">
  57. <tr>
  58. <td class="td1">
  59.     <table border="0">
  60.         <tr>
  61.             <td style="width:300px">
  62.             
  63.                 <img src="https://deamonerp.fr/cpi2/public/uploads/formations/{{formations.image}}" style="width:100%; border: solid 1px;border-radius: 30px 30px 30px 30px!important;">
  64.           
  65.             
  66.             </td>
  67.             <td style="width:20px"></td>
  68.             <td style="width:330px">
  69.                 <table>
  70.                     <tr>
  71.                         <td style="width:100px">
  72.                             <div style="border: solid 1px #fff; background:#0515F5; width:100%; color:#fff;font-size:10px; border-radius:10px; padding:5px; text-transform:uppercase">{% if app.request.locale == 'fr' %}{{formations.sujetsFormations.titreFr}}{% else %}{{formations.sujetsFormations.titreEn}}{% endif %}</div>
  73.                         </td>
  74.                         <td style="width:100px">
  75.                             <span class="text-center text-md-start" style="padding-left:20px;font-size:8px;margin-top:7px;  color:#7393fa">{{formations.reference}}</span>
  76.                         </td>
  77.                     </tr>
  78.                 </table>
  79.             <h1 style="font-size: 22px; font-weight: bold; margin-top:30px; color:#fff">{% if app.request.locale == 'fr' %}{{formations.titreFr}}{% else %}{{formations.titreEn}}{% endif %}</h1>
  80.             <hr style="opacity: 0.5;
  81.                         height: 1px !important;
  82.                         border: solid 0.5px #475AF6;
  83.                         margin-top: 0px;
  84.                         margin-bottom: 10px;">
  85.            <div style="font-size:10px ; margin-top:20px; color:#fff;line-height:15px; font-weight: 100!important;">{% if app.request.locale == 'fr' %}{{formations.texteFr|raw}}{% else %}{{formations.texteEn|raw}}{% endif %}</div>
  86.             </td>
  87.         </tr>
  88.     </table>
  89. </td>
  90. </tr>
  91. </table>
  92. </div>
  93. <table border="0" style="margin-top:40px; margin-left:40px">
  94.         <tr>
  95.         <td style="width:160px">
  96.             <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/sand-clock.png" style="width:7px;margin-left:1px;" alt=""> 
  97.             <small style="font-size: 8px !important;font-weight: bold;color: black !important;margin-left:8px;">{% if app.request.locale == 'fr' %}DURÉE{% else %}DURATION{% endif %}</small><br>
  98.              <div style="width:14px;height:2px;background-color:blue"></div> 
  99.         <small style="text-align:right;font-size: 6px !important;color: black !important;">{% if app.request.locale == 'fr' %}{{formations.duree}}{% else %}{{formations.dureeEn}}{% endif %}</small>
  100.         </td>
  101.              <td style="width:160px">
  102.              <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/user-add.png" style="width:12px;margin-left:1px;" alt=""> 
  103.             <small style="font-size: 8px !important;font-weight: bold;color: black !important;margin-left:4px;">{% if app.request.locale == 'fr' %}PARTICIPANTS{% else %}ATTENDEES{% endif %}</small><br>
  104.              <div style="width:14px;height:2px;background-color:blue"></div> 
  105.         <small style="text-align:right;font-size: 6px !important;color: black !important;">{% if app.request.locale == 'fr' %}{{formations.nbParticipants}}{% else %}{{formations.nbParticipantsEn}}{% endif %}</small>
  106.         </td>
  107.        
  108.            
  109.         <td style="width:160px">
  110.             <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/user-add.png" style="width:12px;margin-left:1px;" alt=""> 
  111.            <small style="font-size: 8px !important;font-weight: bold;color: black !important;margin-left:4px;">{% if app.request.locale == 'fr' %}DÉLAIS D'ACCÈS{% else %}ACCESS TIME{% endif %}</small><br>
  112.              <div style="width:14px;height:2px;background-color:blue"></div> 
  113.         <small style="text-align:right;font-size: 6px !important;color: black !important;">{% if app.request.locale == 'fr' %}{{formations.delaiFr}}{% else %}{{formations.delaiEn}}{% endif %}</small>
  114.         </td>
  115.         
  116.    
  117.        
  118.         <td style="width:160px">
  119.                <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/user-add.png" style="width:12px;margin-left:1px;" alt=""> 
  120.             <small style="font-size: 8px !important;font-weight: bold;color: black !important;margin-left:4px;">{% if app.request.locale == 'fr' %}CATÉGORIE{% else %}CATEGORY{% endif %}</small><br>
  121.              <div style="width:14px;height:2px;background-color:blue"></div> 
  122.         <small style="text-align:right;font-size: 6px !important;color: black !important;">{% if app.request.locale == 'fr' %}{{formations.categoriesFormations.titreFr}}{% else %}{{formations.categoriesFormations.titreEn}}{% endif %}</small>
  123.         </td>
  124.         </tr>
  125.         
  126.     </table>
  127. <table border="0" style="margin:40px; margin-top:30px; margin-bottom:10px">
  128. <tr>
  129. <td class="td2" valign="top" style="padding-right:5px">
  130.             <div class="menu mb-5">
  131.                     <div class="ligneBleu"></div>
  132.                     <div class="titreRond" style="margin-top: -14.5px; width:105px; font-size:12px">{% if app.request.locale == 'fr' %}OBJECTIFS{% else %}OBJECTIVES{% endif %}</div>
  133.                     <div style="margin-top:15px; font-size:11px">
  134.                         {% if app.request.locale == 'fr' %}{{formations.objectifsFr|raw}}{% else %}{{formations.objectifsEn|raw}}{% endif %}
  135.                     </div>
  136.             </div>
  137.             <br><br>
  138.             <div class="menu mb-5">
  139.                     <div class="ligneBleu"></div>
  140.                     <div class="titreRond" style="margin-top: -14.5px; width:105px; font-size:12px">{% if app.request.locale == 'fr' %}PREREQUIS{% else %}REQUIREMENTS{% endif %}</div>
  141.                     <style>
  142.                        
  143.                          .liste p{
  144.                             margin-top:10px!important;
  145.                             padding-top:10px!important;
  146.                         }
  147.                     </style>
  148.                     
  149.                     <div class="liste" style="margin-top:15px; font-size:11px">
  150.                 
  151.                         {% if app.request.locale == 'fr' %}{{formations.prerequisFr|raw}}{% else %}{{formations.prerequisEn|raw}}{% endif %}
  152.                     </div>
  153.             </div>
  154.             <br><br>
  155.               <div class="menu mb-5">
  156.                     <div class="ligneBleu"></div>
  157.                     <div class="titreRond" style="margin-top: -14.5px; width:105px; font-size:12px">{% if app.request.locale == 'fr' %}CONTENUS{% else %}CONTENTS{% endif %}</div>
  158.                     <div style="margin-top:15px;position:relative;right:10px; font-size:11px">
  159.                        {% if app.request.locale == 'fr' %}{{formations.contenusFr|raw}}{% else %}{{formations.contenusEn|raw}}{% endif %}
  160.                     </div>
  161.             </div>
  162.               <br><br>
  163.             
  164. </td>
  165. <td class="td3" valign="top">
  166.     
  167. <hr style="opacity: 0.5;height: 1px !important;border: solid 0.5px #E9E9E9;">
  168.     <table border="0">
  169.         <tr>
  170.         <td style="width:120px">
  171.             <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/boy.png" style="width:12px;margin-left:1px;" alt=""> 
  172.             <small style="font-size: 8px !important;font-weight: bold;color: black !important;margin-left:4px;">PUBLIC</small><br>
  173.             <div style="width:14px;height:2px;background-color:blue"></div> 
  174.  
  175.         </td>
  176.         <td style="width:120px; text-align:right"><small style="text-align:right;font-size: 6px !important;font-weight: bold;color: black !important;"></small>
  177.        
  178.         </td>
  179.         </tr>
  180.         
  181.     </table>
  182.  <div>
  183.       {% if app.request.locale == 'fr' %}{{formations.publicFr|raw}}{% else %}{{formations.publicEn|raw}}{% endif %}
  184.       
  185.         </div>
  186. <hr style="opacity: 0.5;height: 1px !important;border: solid 0.5px #E9E9E9;">
  187.   <table border="0">
  188.         <tr>
  189.         <td style="width:150px">
  190.             <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/toolbox.png" style="width:12px;margin-left:1px;" alt=""> 
  191.             <small style="font-size: 8px !important;font-weight: bold;color: black !important;margin-left:4px;">{% if app.request.locale == 'fr' %}MOYENS ET MÉTHODES{% else %}MEANS AND METHODS{% endif %}</small><br>
  192.                           <div style="width:14px;height:2px;background-color:blue"></div> 
  193.  
  194.         </td>
  195.         <td style="width:105px; text-align:right"><small style="text-align:right;font-size: 6px !important;font-weight: bold;color: black !important;"></small>
  196.        
  197.         </td>
  198.         </tr>
  199.         
  200.     </table>
  201.  <div>
  202.         {% if app.request.locale == 'fr' %}{{formations.moyenFr|raw}}{% else %}{{formations.moyenEn|raw}}{% endif %}
  203.         </div>
  204. <hr style="opacity: 0.5;height: 1px !important;border: solid 0.5px #E9E9E9;">
  205. <table border="0">
  206.         <tr>
  207.          <td style="width:150px">
  208.             <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/play-list-check.png" style="width:12px;margin-left:1px;" alt=""> 
  209.             <small style="font-size: 8px !important;font-weight: bold;color: black !important;margin-left:4px;">{% if app.request.locale == 'fr' %}SUIVI ET ÉVALUATION{% else %}MONITORING AND EVALUATION{% endif %}</small><br>
  210.                           <div style="width:14px;height:2px;background-color:blue"></div> 
  211.  
  212.         </td>
  213.        
  214.       
  215.         </tr>
  216.         
  217.     </table>
  218.  <div>
  219.         {{formations.SuviFr|raw}}
  220.       
  221.         </div>
  222.         
  223. <hr style="opacity: 0.5;height: 1px !important;border: solid 0.5px #E9E9E9;">
  224.   <table border="0">
  225.         <tr>
  226.         <td style="width:150px">
  227.             <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/controller.png" style="width:12px;margin-left:1px;" alt=""> 
  228.             <small style="font-size: 8px !important;font-weight: bold;color: black !important;margin-left:4px;">{% if app.request.locale == 'fr' %}ACCESSIBILITÉ{% else %}ACCESSIBILITY{% endif %}</small><br>
  229.                           <div style="width:14px;height:2px;background-color:blue"></div> 
  230.  
  231.         </td>
  232.        
  233.         </tr>
  234.         
  235.     </table>
  236.  <div style="font-size:10px;margin-top:8px;">
  237.     {% if app.request.locale == 'fr' %}{{formations.accessibiliteFr|raw}}{% else %}{{formations.accessibiliteEn|raw}}{% endif %}
  238.         </div>
  239. </td>
  240. </tr>
  241. </table>
  242. </page>
  243. <page backtop="0mm" backleft="0mm" backright="0mm" backbottom="20mm" footer="page;">
  244. <page_footer><img src="https://deamonerp.fr/cpi2/public/footer.png" style="width:122%;position:relative;right:-95px "></page_footer>
  245. <div style="width:120%; background:#0515F5; height:300px;  margin-top:-20px;  margin-left:-20px">
  246. <table border="0" style="margin:60px; height:400px; margin-top:10px; margin-bottom:10px">
  247. <tr>
  248. <td class="td1">
  249.     <table border="0">
  250.         <tr>
  251.             <td style="width:300px">
  252.             
  253.                 <img src="https://deamonerp.fr/cpi2/public/uploads/formations/{{formations.image}}" style="width:100%; border: solid 1px;border-radius: 30px 30px 30px 30px!important;">
  254.           
  255.             
  256.             </td>
  257.             <td style="width:20px"></td>
  258.             <td style="width:330px">
  259.                 <table>
  260.                     <tr>
  261.                         <td style="width:100px">
  262.                             <div style="border: solid 1px #fff; background:#0515F5; width:100%; color:#fff;font-size:10px; border-radius:10px; padding:5px; text-transform:uppercase">{% if app.request.locale == 'fr' %}{{formations.sujetsFormations.titreFr}}{% else %}{{formations.sujetsFormations.titreEn}}{% endif %}</div>
  263.                         </td>
  264.                         <td style="width:100px">
  265.                             <span class="text-center text-md-start" style="padding-left:20px;font-size:8px;margin-top:7px;  color:#7393fa">{{formations.reference}}</span>
  266.                         </td>
  267.                     </tr>
  268.                 </table>
  269.             <h1 style="font-size: 22px; font-weight: bold; margin-top:30px; color:#fff">{% if app.request.locale == 'fr' %}{{formations.titreFr}}{% else %}{{formations.titreEn}}{% endif %}</h1>
  270.             <hr style="opacity: 0.5;
  271.                         height: 1px !important;
  272.                         border: solid 0.5px #475AF6;
  273.                         margin-top: 0px;
  274.                         margin-bottom: 10px;">
  275.            <div style="font-size:10px ; margin-top:20px; color:#fff;line-height:15px; font-weight: 100!important;">{% if app.request.locale == 'fr' %}{{formations.texteFr|raw}}{% else %}{{formations.texteEn|raw}}{% endif %}</div>
  276.             </td>
  277.         </tr>
  278.     </table>
  279. </td>
  280. </tr>
  281. </table>
  282. </div>
  283. <div class="menu mb-5" style="margin-left:40px; margin-top:40px">
  284.                     <div class="ligneBleu" style="width:93%;"></div>
  285.                     <div class="titreRond" style="margin-top: -14.5px; width:150px; font-size:12px">{% if app.request.locale == 'fr' %}LES SESSIONS A VENIR{% else %}UPCOMING SESSIONS{% endif %}</div>
  286.                     <div style="margin-top:20px; font-size:10px">
  287.                         <table class="table table-striped" style="border-collapse:collapse">
  288.                         <thead>
  289.                             <tr class="tab" style="margin-bottom:30px;!important">
  290.                                                             <th scope="row" width="110" >  <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/calendar.png" style="width:9px;margin-right:3px;" alt=""><a style="text-decoration:none;color:black;"><b>Date</b></a><br><div style="width:14px;height:2px;background-color:blue;margin-top:2px;"></div></th>
  291.                                                             <td width="110" >  <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/comment.png" style="width:9px;margin-right:3px;" alt=""><a style="text-decoration:none;color:black;"><b>{% if app.request.locale == 'fr' %}Langue{% else %}Language{% endif %}</b></a><br><div style="width:14px;height:2px;background-color:blue;margin-top:2px;"></div></td>
  292.                                                             <td width="110" >  <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/comment.png" style="width:9px;;margin-right:3px;" alt=""><a style="text-decoration:none;color:black;"><b>Type</b></a><br><div style="width:14px;height:2px;background-color:blue;margin-top:2px;"></div></td>
  293.                                                             <td width="130" >  <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/pin.png" style="width:9px;margin-right:3px;" alt=""><a style="text-decoration:none;color:black;"><b>{% if app.request.locale == 'fr' %}Lieu{% else %}Location{% endif %}</b></a><br><div style="width:14px;height:2px;background-color:blue;margin-top:2px;"></div></td>
  294.                                                             <td width="210" >  <img class="img-fluid" src="https://deamonerp.fr/cpi2/public/img/formations/euro.png" style="width:9px;margin-right:1px;" alt=""><a style="text-decoration:none;color:black;"> <b>{% if app.request.locale == 'fr' %}Tarifs{% else %}Price{% endif %}</b></a><br><div style="width:14px;height:2px;background-color:blue;margin-top:2px;"></div></td>
  295.                             </tr>
  296.                             
  297.                         </thead>
  298.                         
  299.                                                 <tbody style="padding-top:40px">
  300.                                                     <tr style="background:#fff;  margin-top:50px;">
  301.                                                         <th scope="row" width="60" style="padding-top:5px; padding-bottom:5px" align="start"></th>
  302.                                                         <td width="40" style="padding-top:5px; padding-bottom:5px" align="start"></td>
  303.                                                         <td width="30" style="padding-top:5px; padding-bottom:5px" align="start"></td>
  304.                                                         <td width="90" style="padding-top:5px; padding-bottom:5px" align="start"></td>
  305.                                                         <td width="130" style="padding-top:5px; padding-bottom:5px" align="start"><b></b></td>
  306.                                                     </tr>
  307.                                                    {% set i = 0  %} 
  308.                                                     {% for res in formations.sessionsFormations %}
  309.                                                     {% set i= i +1 %}
  310.                                                     
  311.                                                         <tr style="background:{% if i is odd %}#EFEFEF{% else %}#fff{% endif %};  margin-top:50px;">
  312.                                                             <th scope="row" width="60" style="padding-top:5px; padding-bottom:5px;padding-left:10px;" >{{ res.date|date('d/m/Y') }}</th>
  313.                                                             <td width="30" style="padding-top:5px; padding-bottom:5px" align="start">{% if app.request.locale == 'fr' %}{{res.languesFr|raw}}{% else %}{{res.languesEn|raw}}{% endif %}</td>
  314.                                                             <td width="30" style="padding-top:5px; padding-bottom:5px" align="start">{% if app.request.locale == 'fr' %}{{res.typesFormations.titreFr|raw}}{% else %}{{res.typesFormations.titreEn|raw}}{% endif %}</td>
  315.                                                                 <td width="90" style="padding-top:5px; padding-bottom:5px" align="start">{{res.lieu|raw}}</td>
  316.                                                             <td width="130" style="padding-top:5px; padding-bottom:5px" align="start"><b>{{res.tarifs|raw}}</b></td>
  317.                                                         </tr>
  318.                                                     {% endfor %}
  319.                                                     
  320.                                                   
  321.                                                                                                                                     
  322.                                                 </tbody>
  323.                                                 </table>
  324.                     </div>
  325.             </div>
  326. </page>