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

Open in your IDE?
  1. <style>
  2.     /* The switch - the box around the slider */
  3.     .switch {
  4.     position: relative;
  5.     display: inline-block;
  6.     width: 30px;
  7.     height: 17px;
  8.     }
  9.     /* Hide default HTML checkbox */
  10.     .switch input {
  11.     opacity: 0;
  12.     width: 0;
  13.     height: 0;
  14.     }
  15.     /* The slider */
  16.     .slider {
  17.     position: absolute;
  18.     cursor: pointer;
  19.     top: 0;
  20.     left: 0;
  21.     right: 0;
  22.     bottom: 0;
  23.     background-color: #ccc;
  24.     -webkit-transition: .4s;
  25.     transition: .4s;
  26.     }
  27.     .slider:before {
  28.     position: absolute;
  29.     content: "";
  30.     height: 13px;
  31.     width: 13px;
  32.     left: 2px;
  33.     bottom: 2px;
  34.     background-color: white;
  35.     -webkit-transition: .4s;
  36.     transition: .4s;
  37.     }
  38.     input:checked + .slider {
  39.     background-color: #f39c12;
  40.     }
  41.     input:focus + .slider {
  42.     box-shadow: 0 0 1px #2196F3;
  43.     }
  44.     input:checked + .slider:before {
  45.     -webkit-transform: translateX(13px);
  46.     -ms-transform: translateX(13px);
  47.     transform: translateX(13px);
  48.     }
  49.     /* Rounded sliders */
  50.     .slider.round {
  51.     border-radius: 34px;
  52.     }
  53.     .slider.round:before {
  54.     border-radius: 50%;
  55.     }
  56.     .opacity-customs
  57.     {
  58.         opacity: 0.5;
  59.     }
  60. </style>
  61. <div class="col-md-3" id="itineraire-content">
  62.     {% if document is not null and document.documentGeneratorPages|length > 0 %}
  63.     <ul class="nav nav-tabs" id="previewTab" role="tablist" style="display:flex;justify-content:flex-start">
  64.         <li class="nav-item">
  65.             <a class="nav-link active" id="prev-content-tab" data-toggle="tab" href="#prev-content" role="tab" aria-controls="prev-content" aria-selected="true">Contenus</a>
  66.         </li>
  67.         <li class="nav-item">
  68.             <a class="nav-link" id="prev-pattern-tab" data-toggle="tab" href="#prev-pattern" role="tab" aria-controls="prev-pattern" aria-selected="false">Patterns</a>
  69.         </li>
  70.         <li style="margin-left: auto;display:flex;align-items:center">
  71.             <label class="switch">
  72.                 <input id="switch-border" type="checkbox">
  73.                 <span class="slider round"></span>
  74.             </label>
  75.         </li>
  76.     </ul>
  77.     <div class="tab-content border-left border-right border-bottom" id="preview-content">
  78.       <div class="tab-pane fade show active" id="prev-content" role="tabpanel" aria-labelledby="prev-content-tab">
  79.           <div class="day p-3">
  80.               <h3>CONTENUS DISPONIBLES</h3>
  81.               <span class="info" id="info"></span>
  82.               <div class="day-document pt-3" id="services-activites" data-target="" style="">
  83.               </div>
  84.               <span class="info">Contenus libres</span>
  85.               <div class="container">
  86.                   <div class="row">
  87.                       <div class="col-10">
  88.                       <input id="editorial-search" class="form-input form-control" placeholder="Rechercher dans les contenus libres">
  89.                       </div>
  90.                       <div class="col-2">
  91.                       <button id="editorial-search-button" class="form-control" type="button"><i class="fa fa-search"></i></button>
  92.                       </div>
  93.                   </div>
  94.               </div>
  95.               <div class="day-document pt-3" id="custom" data-target="" style="">
  96.                   <ul>
  97.                   {% for custom in customs.custom  %}
  98.                   <li class="custom" onclick="clickDrop(event)" draggable="true" ondragstart="drag(event)" id="custom_{{ custom.editorialId }}" data-id="{{ custom.editorialId }}">
  99.                           <div class="custom-drag float-left">
  100.                                   <i class="fas fa-grip-vertical"></i>&nbsp;
  101.                           </div>
  102.                           <div class="drag-info">
  103.                               <strong>{{ custom.libelle }}</strong>
  104.                           </div>
  105.                           <div style="clear: both;"></div>
  106.                   </li>
  107.                   {% endfor %}
  108.                   </ul>
  109.               </div>
  110.               <!--span class="info">Images</span>
  111.               <div class="day-document pt-3" id="images" data-target="" style="">
  112.                   {% for index, image in customs.images  %}
  113.                       <li class="image" style="position: relative;"><div draggable="true" ondragstart="drag(event)"><a href="#" id="image_{{index}}"><img class="image-preview" src="/{{ image[0] }}"><i class="fas fa-grip-vertical"></i>&nbsp;</a></div></li>
  114.                   {% endfor %}
  115.               </div-->
  116.           </div>
  117.       </div>
  118.       <div class="tab-pane fade" id="prev-pattern" role="tabpanel" aria-labelledby="prev-pattern-tab">
  119.           <div class="p-3">
  120.               <div id="mask-drag" style="position: absolute; width: 100%; height: 100%; z-index: 999999999; display: none;">
  121.               </div>
  122.               <h3>PATTERNS DISPONIBLES</h3>
  123.               <span class="info">{% if patterns|length == 0 %}Aucune pattern{% else %}{{ patterns|length }} pattern{% if patterns|length > 1 %}s{% endif %} disponible{% if patterns|length > 1 %}s{% endif %}{% endif %}</span>
  124.               <nav class="nav nav-pills nav-justified" id="mode">
  125.                   <a class="nav-link active" href="#" data-mode="texte">Mode texte</a>
  126.                   <a class="nav-link" href="#" data-mode="code">Mode code</a>
  127.               </nav>
  128.               <ul style="max-height: 500px; overflow: hidden; overflow-y: scroll;">                      
  129.               {% for pattern, data in patterns %} 
  130.                   <li class="{% if data.value is null %} opacity-customs {% endif %} custom" draggable="true" onclick="clickDrop(event)" ondragstart="drag(event)" id="pattern_{{ pattern }}">
  131.                           <div class="custom-drag float-left">
  132.                                   <i class="fas fa-grip-vertical"></i>&nbsp;
  133.                           </div>
  134.                           <div class="drag-info">
  135.                               <strong>[[{{ pattern }}]]</strong>
  136.                   
  137.                               {% if data.description|length != 0 %}
  138.                                   &nbsp;{{ data.description }}
  139.                               {% endif %}
  140.                           </div>
  141.                           <div style="clear: both;"></div>
  142.                   </li>
  143.               {% endfor %}
  144.               </ul>
  145.           </div>
  146.       </div>
  147.     </div>
  148.     {% endif %}
  149. </div>