templates/front/home.html.twig line 1

Open in your IDE?
  1. {% extends 'security/layout.html.twig' %}
  2. {% block title %}{{ 'front.welcome'|trans({}, 'front') }}{% endblock %}
  3. {% block stylesheets %}
  4.     {{ parent()}}
  5.     {{ encore_entry_link_tags('css/front') }}
  6.     <style>
  7.         .footer_wfo_wrapper {
  8.             display: contents
  9.         }
  10.         .get_footer_div {
  11.             margin-top: 20px;
  12.         }
  13.         .netisse_wfo_footer {
  14.             border-top: none;
  15.         }
  16.     </style>    
  17. {% endblock %}
  18.   
  19. {% block body %} 
  20.     <div class="bg_outline_cnx">
  21.         <img alt="Netisse" src="{{ asset('img/outline_shape.svg') }}"/>
  22.     </div>
  23.     <div class="do_margin_home mt-47">
  24.         <div class="container ">
  25.             <div class="col-md-12 ">
  26.                 {% for key, survey in surveys %}
  27.                     <style>
  28.                         .get_color-{{ key }}::before{
  29.                             background:  linear-gradient(-379deg, {{ survey.bgColor }} -73%, #F6F6F600 81%)
  30.                         }
  31.                     </style>
  32.                     <div class="col-md-5 mr-4" style="display:inline-block">
  33.                         <div class="card-nos-solution get_color-{{ key }}  text-center">
  34.                             {% if  survey.path %} 
  35.                                 <img  src="{{ asset(uploads_directory ~ survey.path ~ '/' ~ survey.file) }}"  alt="" class="img-fluid def-height" >
  36.                             {% else %}
  37.                             
  38.                             <div class="img-fluid def-height"></div>
  39.                             {% endif %}
  40.                             <div class="card-body text-left nopad">
  41.                                 <h5>
  42.                                     {{survey.valueText }}
  43.                                 </h5>
  44.                                 <p class="card-text">
  45.                                     {% if survey.description %} 
  46.                                         {{survey.description|slice(0, 145) | raw  }} 
  47.                                         {% if survey.description|length > 145 %}...{% endif %}
  48.                                     {% endif %}    
  49.                                 </p>
  50.                             </div>
  51.                             {% if survey.isEnable and survey.isDisplay %}
  52.                                 <a     class="btn card-all-agence" href="{{ path('front_request_index', { 'refSuffix' : survey.refSuffix })}}" > 
  53.                                     {{ 'front.action.know_more'|trans({}, 'front') }}
  54.                                 </a>
  55.                             {% endif %}    
  56.                         </div>
  57.                     </div>
  58.                 {% endfor %}    
  59.             </div>
  60.         </div>
  61.     </div>
  62.     <!-- COOKIES -->
  63.     {{ include('front/layouts/cookies.html.twig') }}
  64.     {{ include('front/cookies/preferences.html.twig') }}
  65. {% endblock %}
  66. {% block footer %}
  67.     {% set forHome = true %}
  68.     {{ include('front/layouts/footer.html.twig') }}
  69. {% endblock %}
  70. {% block javascripts %}
  71.     {{ parent() }} 
  72. {% endblock %}