templates/bundles/EasyAdminBundle/menu.html.twig line 1

  1.  {% extends '@!EasyAdmin/menu.html.twig' %}
  2. {% block main_menu %}
  3. <div class='menu'> 
  4.      <div class ='menu_img'>    
  5.         <h4><img  src="{{ asset('./img/arquivos_mini.png') }}"><b><r>&nbsp;&nbsp;&nbsp;Index</o><o style='color:#52C1ED'>DOC</o></b><h4>
  6.     </div>
  7.         <div class='menu_item'> 
  8.              <a href="{{ path('home') }}"   onclick="showDiv()" id="Login">
  9.             {% if pagina != 'home' %}
  10.             <p>    
  11.             {% endif %}
  12.                 
  13.             {% if pagina == 'home' %}
  14.               <p class='pagina'>    
  15.             {% endif %}   
  16.             <button class="btn_menu">
  17.                    <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-patch-exclamation-fill" viewBox="0 0 16 16">
  18.                       <path d="M10.067.87a2.89 2.89 0 0 0-4.134 0l-.622.638-.89-.011a2.89 2.89 0 0 0-2.924 2.924l.01.89-.636.622a2.89 2.89 0 0 0 0 4.134l.637.622-.011.89a2.89 2.89 0 0 0 2.924 2.924l.89-.01.622.636a2.89 2.89 0 0 0 4.134 0l.622-.637.89.011a2.89 2.89 0 0 0 2.924-2.924l-.01-.89.636-.622a2.89 2.89 0 0 0 0-4.134l-.637-.622.011-.89a2.89 2.89 0 0 0-2.924-2.924l-.89.01zM8 4c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995A.905.905 0 0 1 8 4m.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/>
  19.                     </svg>
  20.                     <b><label>Tarefas</label></b>
  21.              </button>        
  22.                 </p>
  23.             </a>
  24.             <a href="{{ path('export') }}"   onclick="showDiv()" id="Login">
  25.             {% if pagina != 'export' %}
  26.             <p>    
  27.             {% endif %}
  28.                 
  29.             {% if pagina == 'export' %}
  30.               <p class='pagina'>    
  31.             {% endif %}   
  32.             <button class="btn_menu">
  33.                    <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-cloud-upload-fill" viewBox="0 0 16 16">
  34.                     <path fill-rule="evenodd" d="M8 0a5.53 5.53 0 0 0-3.594 1.342c-.766.66-1.321 1.52-1.464 2.383C1.266 4.095 0 5.555 0 7.318 0 9.366 1.708 11 3.781 11H7.5V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707V11h4.188C14.502 11 16 9.57 16 7.773c0-1.636-1.242-2.969-2.834-3.194C12.923 1.999 10.69 0 8 0m-.5 14.5V11h1v3.5a.5.5 0 0 1-1 0"/>
  35.                     </svg>
  36.                     <b><label>Exportação</label></b>
  37.              </button>        
  38.                 </p>
  39.             </a> 
  40.              <a href="{{ path('index') }}"   onclick="showDiv()" id="Login">
  41.             {% if pagina != 'index' %}
  42.             <p>    
  43.             {% endif %}
  44.                 
  45.             {% if pagina == 'index' %}
  46.               <p class='pagina'>    
  47.             {% endif %}   
  48.             <button class="btn_menu">
  49.                    <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-file-earmark-richtext-fill" viewBox="0 0 16 16">
  50.                     <path d="M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0M9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1M7 6.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m-.861 1.542 1.33.886 1.854-1.855a.25.25 0 0 1 .289-.047l1.888.974V9.5a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V9s1.54-1.274 1.639-1.208M5 11h6a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1m0 2h3a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1"/>
  51.                     </svg>
  52.                     <b><label>Indexação</label></b>
  53.              </button>        
  54.                 </p>
  55.             </a> 
  56.             <a href="{{ path('troca') }}"   onclick="showDiv()" id="Login">
  57.             {% if pagina != 'troca' %}
  58.             <p>    
  59.             {% endif %}
  60.                 
  61.             {% if pagina == 'troca' %}
  62.               <p class='pagina'>    
  63.                 {% endif %}   
  64.                 <button class="btn_menu">
  65.                       <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-arrow-repeat" viewBox="0 0 16 16">
  66.                         <path d="M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41m-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9"/>
  67.                         <path fill-rule="evenodd" d="M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5 5 0 0 0 8 3M3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9z"/>
  68.                       </svg>
  69.                       <b><label>Trocar Cliente</label></b>
  70.                 </button>        
  71.               </p>
  72.             </a>      
  73.             <a href="{{ path('fluxo') }}"   onclick="showDiv()" id="Login">
  74.             {% if pagina != 'fluxo' %}
  75.             <p>    
  76.             {% endif %}
  77.                 
  78.             {% if pagina == 'fluxo' %}
  79.               <p class='pagina'>    
  80.                 {% endif %}   
  81.                 <button class="btn_menu">
  82.                       <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-stack-overflow" viewBox="0 0 16 16">
  83.                         <path d="M12.412 14.572V10.29h1.428V16H1v-5.71h1.428v4.282z"/>
  84.                         <path d="M3.857 13.145h7.137v-1.428H3.857zM10.254 0 9.108.852l4.26 5.727 1.146-.852zm-3.54 3.377 5.484 4.567.913-1.097L7.627 2.28l-.914 1.097zM4.922 6.55l6.47 3.013.603-1.294-6.47-3.013zm-.925 3.344 6.985 1.469.294-1.398-6.985-1.468z"/>
  85.                       </svg>
  86.                       <b><label>Fluxo</label></b>
  87.                 </button>        
  88.               </p>
  89.             </a>
  90.             
  91.             
  92.             <a href="{{ path('qualidade') }}"   onclick="showDiv()" id="Login">
  93.             {% if pagina != 'qualidade' %}
  94.             <p>    
  95.             {% endif %}
  96.                 
  97.             {% if pagina == 'qualidade' %}
  98.               <p class='pagina'>    
  99.                 {% endif %}   
  100.                 <button class="btn_menu">
  101.                      <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-list-check" viewBox="0 0 16 16">
  102.                         <path fill-rule="evenodd" d="M5 11.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5M3.854 2.146a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708L2 3.293l1.146-1.147a.5.5 0 0 1 .708 0m0 4a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708L2 7.293l1.146-1.147a.5.5 0 0 1 .708 0m0 4a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 0 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0"/>
  103.                       </svg>
  104.                       <b><label>Qualidade</label></b>
  105.                 </button>        
  106.               </p>
  107.             </a>    
  108.            
  109.     </div>
  110.     <span id="fila-counter-wrapper" style="display: none;">
  111.         <div class="fila">
  112.           <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-cloud-arrow-up-fill" viewBox="0 0 16 16">
  113.           <path d="M8 2a5.53 5.53 0 0 0-3.594 1.342c-.766.66-1.321 1.52-1.464 2.383C1.266 6.095 0 7.555 0 9.318 0 11.366 1.708 13 3.781 13h8.906C14.502 13 16 11.57 16 9.773c0-1.636-1.242-2.969-2.834-3.194C12.923 3.999 10.69 2 8 2m2.354 5.146a.5.5 0 0 1-.708.708L8.5 6.707V10.5a.5.5 0 0 1-1 0V6.707L6.354 7.854a.5.5 0 1 1-.708-.708l2-2a.5.5 0 0 1 .708 0z"/>
  114.           </svg>&nbsp;Exportação
  115.           <hr>
  116.             <span id="fila-counter">0</span> Arquivos(s)<br>
  117.               <div class="spinner-border" role="status">
  118.                 <span class="visually-hidden">Loading...</span>
  119.               </div>
  120.         </div>
  121.     </span>
  122.     <!-- Bootstrap core JavaScript  -->
  123. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
  124. <script>
  125.    function showDiv() {
  126.      document.getElementById('Login').style.display = "none";
  127.      document.getElementById('loadingGif').style.display = "block";
  128.      setTimeout(function() {
  129.        document.getElementById('loadingGif').style.display = "none";
  130.        document.getElementById('Login').style.display = "block";
  131.      },10000);
  132.       
  133.    }
  134.    function showDivshow() {
  135.      document.getElementById('botao').style.display = "none";
  136.      document.getElementById('img').style.display = "none";
  137.      document.getElementById('loading').style.display = "block";
  138.      setTimeout(function() {
  139.        document.getElementById('botao').style.display = "block";
  140.        document.getElementById('loading').style.display = "none";
  141.        document.getElementById('img').style.display = "block";
  142.      },10000);
  143.       
  144.    }
  145.    </script>
  146.    
  147.    <script>
  148.     async function atualizarContadorFila() {
  149.         try {
  150.             const response = await fetch('{{ path('fila_count') }}');
  151.             const data = await response.json();
  152.             const counter = document.getElementById('fila-counter');
  153.             const wrapper = document.getElementById('fila-counter-wrapper');
  154.             if (data.count >= 1) {
  155.                 counter.innerText = data.count;
  156.                 wrapper.style.display = 'inline';
  157.             } else {
  158.                 wrapper.style.display = 'none';
  159.             }
  160.         } catch (error) {
  161.             console.error('Erro ao buscar contagem da fila:', error);
  162.         }
  163.     }
  164.     setInterval(atualizarContadorFila, 6000);
  165.     atualizarContadorFila();
  166. </script>
  167. {% endblock main_menu %}