templates/accueil/nous.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block title %}{{ parent() }} | Notre histoire{% endblock %}
  3. {% block stylesheets %}<link rel="stylesheet" href="{{ asset('css/nous.css') }}">{% endblock %}
  4. {% block h1 %}Notre histoire{% endblock %}
  5. {% block content %}
  6.        
  7.         <div class="wrapper col-12 d-flex flex-column ">
  8.         {% for presentationActive  in  presentationActives %}
  9.              {% if loop.index is odd %}
  10.                 <div class="col-12 d-flex flex-lg-row flex-column">
  11.                     <div class="col-lg-6 col-12">
  12.                             <img class ="image_presentation"  src="{{ asset('img/photoLifeUpload/' ~ presentationActive.getPhotoLives.first())}}" alt="phto de presentation">
  13.                     </div>
  14.                     <div class="col-lg-5 col-10 d-flex flex-column justify-content-start align-items-center mx-auto mb-5 presentation">
  15.                         <div class="titre">{{ presentationActive.titre }}</div>
  16.                         <div class="sstitre">{{ presentationActive.sstitre }}</div>
  17.                         <div class = "text">{{ presentationActive.presentation|raw }}</div> 
  18.                     </div>
  19.                 </div>
  20.                     {% if loop.index == 1 %}
  21.                             <div class="box_contact d-flex justify-content-center align-items-centers">
  22.                                     <a href="mailto:contact@lebiodelo.com" class="mail_contact">CONTACT@LEBIODELO.COM</a>
  23.                             </div>
  24.                     {% endif %}
  25.              {% else %}
  26.                 <div class="col-12 d-flex flex-lg-row flex-column">
  27.                     <div class="col-lg-5 col-10 d-flex flex-column justify-content-start align-items-center mx-auto mb-5 presentation">
  28.                         <div class="titre">{{ presentationActive.titre }}</div>
  29.                         <div class="sstitre">{{ presentationActive.sstitre }}</div>
  30.                         <div class = "text">{{ presentationActive.presentation|raw }}</div>
  31.                     </div>
  32.                     <div class="col-lg-6 col-12">
  33.                         <img class ="image_presentation"  src="{{ asset('img/photoLifeUpload/' ~ presentationActive.getPhotoLives.first())}}" alt="phto de presentation">
  34.                     </div>           
  35.                 </div>
  36.             {% endif %}
  37.         {% endfor %}
  38.  
  39.     </div>
  40.     {# <textarea name="" hidden id="photos" cols="30" rows="10">{{photos}}</textarea> #}
  41. {% endblock %}
  42. {% block javascripts %}
  43. <script>
  44. {# var photos = JSON.parse(document.querySelector('#photos').innerHTML)
  45. let cheminPhoto =  "{{ asset('img/photoLifeUpload/') }}"
  46. document.querySelector('.image_histoire').setAttribute('src', cheminPhoto + photos[0])
  47. document.querySelector('.image_atelier').setAttribute('src', cheminPhoto + photos[1]) #}
  48. </script>
  49. {% endblock %}