templates/reprendre_entreprise/fragments/feuille_route_repreneur/main.html.twig line 1

Open in your IDE?
  1.  
  2. {% set isExemple = ( grillePostMer.id_annonce == idAnnonceExempleFeuilleRoute ) %}
  3. {% set hideInfos = app.request.cookies.get('hide_infos_banner') == 'true' %}
  4. {% set affichGrille = app.request.cookies.get('feuille_de_route_repreneur') == 'true' %}
  5. {% set fakeObjectAnnonce = { 'id_annonce': grillePostMer.id_annonce, 'type_annonce': 'vendeur' } %}
  6. {# acces elite ou feuille de route commandé #}
  7. {% set accessGrille = is_granted('ROLE_FEUILLE_ROUTE_STRATEGIQUE', fakeObjectAnnonce) or (isExemple) %}
  8. {% set urlPdf = (grillePostMer is defined and grillePostMer is not null) ? path('consulter_feuille_de_route', {'codePays': codePaysWithUnderScore, 'type_raprochement': 'cession', 'id_annonce': grillePostMer.id_annonce}) : '#' %}
  9. {% set isClickedModeEmploi = ( app.request.query.get('section') == 'mode-emploi'  ) %}
  10.  
  11.  
  12. <div id="affichGrille" class="card my-3 no_shadow onglet toggle-onglet-15  d-none" style="border-color: #cccccc;">
  13.     <div class="card-header" style="background-color:#003366; color: #003366; border-bottom: none;">
  14.         <a href="{{ lienElitePresentation }}" title="Découvrez FUSACQ Elite">
  15.             <img src="/images/logo_fusacq_atouts.png"></a>&nbsp;&nbsp;&nbsp;
  16.         <span class="d-block d-lg-none"></span>
  17.         {% if  isExemple %} 
  18.             <span class="blanc">Exemple de feuille de route stratégique</span>
  19.         {% else %} 
  20.             <span class="blanc">Feuille de route stratégique</span>
  21.         {% endif %} 
  22.     </div>
  23.     <div class="card-body   {% if   ( accessGrille ) and  ( hideInfos or affichGrille or isExemple ) and ( not isClickedModeEmploi  )  %} bg_border_elite   {% endif %} ">
  24.         <div class="row ">
  25.             <div class="col-12 px-3 mt-3 py-3"  style="text-align:justify"><!--col-sm-10 offset-sm-1 -->
  26.                 <div class="row">
  27.                     {% if app.user|default   %} 
  28.                         {% if accessGrille %}      {# acces elite ou feuille de route commandé #}
  29.                             {% if (hideInfos or affichGrille or isExemple ) and ( not isClickedModeEmploi  ) %} 
  30.                                 {% include 'reprendre_entreprise/fragments/feuille_route_repreneur/auth_elite.html.twig' with {'grillePostMer': grillePostMer} %} 
  31.                             {% else %} 
  32.                                 {% include 'reprendre_entreprise/fragments/feuille_route_repreneur/mode_emploi.html.twig'  %} 
  33.                             {% endif %} 
  34.                         {% else %}
  35.                             {% include 'reprendre_entreprise/fragments/feuille_route_repreneur/auth_non_elite.html.twig'   %}  
  36.                         {% endif %}
  37.                     {% else %}
  38.                         {% if accessGrille   %} 
  39.                              {% if (hideInfos or affichGrille or isExemple ) and ( not isClickedModeEmploi  ) %} 
  40.                                 {% include 'reprendre_entreprise/fragments/feuille_route_repreneur/auth_elite.html.twig' with {'grillePostMer': grillePostMer} %} 
  41.                             {% else %}  
  42.                                 {% include 'reprendre_entreprise/fragments/feuille_route_repreneur/mode_emploi.html.twig'  %} 
  43.                             {% endif %} 
  44.                         {% else  %} 
  45.                             {% include 'reprendre_entreprise/fragments/feuille_route_repreneur/non_auth.html.twig'   %} 
  46.                         {% endif  %} 
  47.                     {% endif   %} 
  48.                 </div>
  49.             </div>
  50.         </div>
  51.     </div>
  52. </div>
  53. <!--  feedback-->
  54.  {% if app.user|default  and affichGrille   %}
  55.         {{ render_esi(controller( 'App\\Controller\\GrilleAnalysePostMerController::feedbacks',
  56.             { "lang": lang,"codePays": codePays,"feuille_route_id":grillePostMer.id } )) | spaceless 
  57.         }}
  58. {% endif   %} 
  59. <!-- feedback -->
  60. <script   type="module" src="{{ asset('build/js/annonces/elite/feuille_route_repreneur.js') }}"   ></script>