templates/dossier/itineraire/_nav_v2.html.twig line 1

Open in your IDE?
  1. <div class="owl-carousel owl-loaded mb-3" id="owl-carousel" data-document="{% if document is not null %}{{ document.id }}{% endif %}" data-langue="{% if document is not null %}{{ document.langue }}{% endif %}" {% if bg_color is defined %}data-bg-color="{{bg_color}}"{% endif %} {% if color2 is defined %}data-color2="{{color2}}"{% endif %}>
  2.     <div class="d-flex justify-content-center align-items-center">
  3.         <div class="owl-prev text-success h1">
  4.             <i class="fas fa-chevron-left"></i>
  5.         </div>
  6.         <div class="owl-stage-outer">
  7.             <div class="owl-stage">
  8.                 {% if document is not null %}
  9.                     {% set countJours = 0  %}
  10.                     {% for page in document.documentGeneratorPages|sort((a, b) => a.position <=> b.position) %}
  11.                         {% if page.template.id == 2 %}
  12.                             {% set countJours = countJours+1 %}
  13.                         {% endif %}
  14.                         <div class="card owl-item owl-item-sortable text-white p-0 {{ page.html is not empty ? 'bg-success' : 'bg-custom-owl' }}" data-position="{{ page.position }}" style="height:52px;" data-document='{{document.id}}' data-id='{{page.id}}' data-type='{{page.template.id}}'>
  15.                             <div class="card-body p-0">
  16.                                 <p class="text-center font-weight-bold owl-item-title mb-0" style="">
  17.                                     {% if page.template.id == 2 %}J{{ page.numeroPage }}{% else %}{{ page.position }}{% endif %}<br>
  18.                                 </p>
  19.                                 <p class="text-center font-weight-bold mb-0"><span id="title-nav-voyage_document_page_form_libelle_{{ document.id}}_{{ page.id  }}">{{ page.libelle|slice(0,8) }}{% if page.libelle|length > 8 %}...{% endif %}</span></p>
  20.                             </div>
  21.                         </div>
  22.                     {% endfor %}
  23.                 {% endif %}    
  24.             </div>
  25.         </div>
  26.         <div class="owl-next text-success h1 pl-2">
  27.             <i class="fas fa-chevron-right"></i>
  28.         </div>
  29.     </div>
  30. </div>
  31. <input type="hidden" id="current-nav-page" name="current-nav-page" value="{{ app.session.get('voyage-nav-page') ? app.session.get('voyage-nav-page') : 0 }}">
  32. <div style="display:none;">
  33.     <nav class="nav nav-tabs">
  34.     {% if document is not null %}    
  35.         {% for page in document.documentGeneratorPages %}
  36.             <a class="nav-item nav-link" href="#p{{ page.id }}" id="page-{{ page.id }}" data-toggle="tab"></a>
  37.         {% endfor %}
  38.     {% endif %}
  39.     </nav>
  40. </div>