templates/index/qualidade.html.twig line 1
{% extends '@EasyAdmin/layout.html.twig' %}{% block title %}ArquivosGED{% endblock %}{% block header %}{% endblock header %}{% block content_header %}<link rel="stylesheet" type="text/css" href="{{ asset('./css/index.css') }}"><link rel="shortcut icon" href="{{ asset('./img/icon.png') }}"><link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" />{% endblock content_header %}{% block main %}<style>/* Estilo básico para ocultar as opções não filtradas */.hidden {display: none;}.table {width: 100%; /* Ajusta a largura da tabela */border-collapse: collapse; /* Remove espaços entre as bordas */}.table thead {position: sticky; /* Mantém o cabeçalho fixo no topo */top: 0;background: white; /* Fundo para visibilidade */z-index: 2;}.table tbody {display: block; /* Torna o tbody um bloco */max-height: 300px; /* Define a altura máxima com scroll */overflow-y: auto; /* Ativa o scroll vertical */width: 100%; /* Garante alinhamento com o thead */max-height: 300px;}.table tbody tr {display: table; /* Garante que os elementos mantenham o estilo de tabela */width: 100%; /* Alinha as colunas */table-layout: fixed; /* Mantém as larguras das colunas */}.table thead tr {display: table; /* Garante alinhamento entre thead e tbody */width: 100%;table-layout: fixed; /* Mantém as larguras das colunas */}</style>{% if xy == 1 %}<form method='post' id="formPdf">><div class="index"><div class = 'iframe'><input type="hidden" value="{{pdf.id}}" name="id_pdf"><input type="hidden" value="{{pdf.id}}" name="id_pdf"><iframe class = "ifr"{% if pdf.cliente.extraFields == 'local' %}src="{{link}}"{% endif %}{% if pdf.cliente.extraFields != 'local' %}src="{{all_Url}}"{% endif %}></iframe></div><div class= 'form'>{% if erro == 'erro'%}{{p}}{% endif %}{% if erro == 'ok'%}{{p}}{% endif %}<div class="doc"><button onclick="showDiv()" id="Login" type="submit" name ='botao_volta' class="btn btn-primary" id='back'><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left-circle-fill" viewBox="0 0 16 16"><path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0m3.5 7.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z"/></svg></button><h4 class='titulo'>{{ pdf.tipo.nome }}</h4><label>Descrição(OCR):</label><div class="form-group"><textarea class="form-control" id="exampleTextarea" rows="3"name= "desc">{{pdf.extraFields}}</textarea></div><hr><label>Nome:</label><input type="text" class="form-control" name= "nome" value ="{{pdf.nome}}" required><hr><label>Assunto:</label><input type="text" class="form-control" name= "assunto" value ="{{pdf.assunto}}" required><hr><label>Palavra-Chave:</label><input type="text" class="form-control" name= "chave" value ="{{pdf.keywords}}"><hr><label>Data Documento:</label><input type="date" class="form-control" name= "data" {% if pdf.dataDocumento != null %}value ="{{pdf.dataDocumento | date('Y-m-d') }}"{% endif %}><hr><label>Classificação:</label><select id="meuSelect" placeholder="Pesquise" name="classifica" class="form-control">{% if pdf.classificacao != null %}<option value="{{pdf.classificacao.id}}" data-texto="{{ pdf.classificacao.faseIntermediaria }}" selected>{{pdf.classificacao.nome}}</option>{% endif %}{% if pdf.classificacao == null %}<option value="" data-texto="" selected>Selecione</option>{% endif %}{% for classi in class %}<option value="{{ classi.id }}" data-texto="{{ classi.faseIntermediaria }}">{{ classi.nome }}</option>{% endfor %}</select><hr><label>Fase Intermediária:</label><input type="text" id="resultado" name="fase" class="form-control" readonly><hr><label>Container:</label><input type="text" class="form-control" name= "conteiner" value ="{{pdf.conteiner}}"><hr><div class='dados_pesq'><div style="text-align:center"><button type="submit" onclick="showDiv()" id="Login" class="btn btn-primary" name ='botao_doc'>Salvar</button> </div></div></div></div></form>{% if erro == 'ok' %}<a href="{{ path('qualidade') }}"><div class="avisos"><img src="{{ asset('./img/check.gif') }}"><br><y>{{p}}</y></div></a>{% endif %}<script type="text/javascript" src="{{ asset('./js/jquery-2.2.4.min.js') }}"></script></div>{% endif %}{% if xy == 0 %}<div><h5 class='titulo'>Controle de Qualidade</h5></div><div><div><table class="table table-bordered table-striped"><thead><tr><th>Repositor</th><th>Nome</th><th>Assunto</th><th>Data do Envio</th><th>Data do Indexação</th><th>Imagen(s)</th><th>Ação</th></tr></thead><tbody id="tableBody">{% set doc_null = 0 %}{% for documento in documentos %}{% set doc_null = doc_null + 1 %}<tr><td>{{documento.caixa.nome}}</td><td>{{documento.nome}}</td><td>{{documento.assunto}}</td><td>{{documento.createdAt | date('d/m/Y H:i:s') }}</td><td>{{documento.indexAt | date('d/m/Y H:i:s') }}</td><td>{{documento.qtd}}</td><td><form method='post'><input type="hidden" name="id" value="{{documento.id}}" /><button type="submit" name ='botao_index' class="btn btn-primary" onclick="showDiv()" id="Login"><b>Indexar</b><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-text-indent-left" viewBox="0 0 16 16"><path d="M2 3.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5m.646 2.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L4.293 8 2.646 6.354a.5.5 0 0 1 0-.708M7 6.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5m0 3a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5m-5 3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5"/></svg></button></form></td></tr>{% endfor %}</tbody><thead><tr><th>Total</th></tr></thead><thead><tr><th>{{doc_null}}</th></tr></thead></tbody></table></div>{% if erro == 'erro'%}{{p}}{% endif %}{% if erro == 'ok' %}<a href="https://index.arquivosdoc.com.br/index/indexacao/{{id}}" onclick="showDiv()" id="Login"><div class="avisos"><img src="{{ asset('./img/check.gif') }}"><br><y>{{p}}</y></div></a>{% endif %}<script>function confirmSubmission(event) {let confirmAction = confirm("Você tem certeza que deseja enviar o conteúdo preenchido? Por favor, revise antes de prosseguir.");if (!confirmAction) {event.preventDefault(); // Impede o envio do formulário} else {// Se necessário, envie o formulário ou execute outras ações aquidocument.querySelector('form').submit(); // Exemplo, caso haja um formulário}}</script><div id="loadingGif" style="display:none;"><div class ="espera"><img src="{{ asset('./img/carrega.gif') }}"></div></div>{% endif %}<!-- Include Select2 JS --><script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js"></script><script>$(document).ready(function() {$('#searchable-select').select2({placeholder: 'Pesquise',allowClear: true});});$(document).ready(function() {$('#searchable-select2').select2({placeholder: 'Pesquise',allowClear: true});});</script><script>function atualizarValores() {// Obtém o elemento selectconst selectElement = document.getElementById('meuSelect');// Obtém o valor e o texto personalizados da opção selecionadaconst textoExibido = selectElement.options[selectElement.selectedIndex].getAttribute('data-texto');const valor = selectElement.value;// Atualiza o valor do input com o texto exibido e valor selecionadoconst resultadoInput = document.getElementById('resultado');resultadoInput.value = `${textoExibido}`;}// Adiciona o evento para que a função seja chamada quando o select mudarwindow.onload = function() {const selectElement = document.getElementById('meuSelect');selectElement.addEventListener('change', atualizarValores);// Atualiza o input inicialmente para o valor padrãoatualizarValores();};</script><script>function showDiv() {document.getElementById('Login').style.display = "none";document.getElementById('loadingGif').style.display = "block";setTimeout(function() {document.getElementById('loadingGif').style.display = "none";document.getElementById('Login').style.display = "block";},4000);}function showDivshow() {document.getElementById('botao').style.display = "none";document.getElementById('img').style.display = "none";document.getElementById('loading').style.display = "block";setTimeout(function() {document.getElementById('botao').style.display = "block";document.getElementById('loading').style.display = "none";document.getElementById('img').style.display = "block";},4000);}</script><script>document.getElementById("formPdf").addEventListener("keydown", function(e) {if (e.key === "Enter" && e.target.tagName !== "TEXTAREA") {e.preventDefault();this.submit();}});</script>{% endblock main %}{% block content_footer %}{% endblock content_footer %}