Commit 012da777d0708e15adcabdc141da7b8c0f1460a7
1 parent
df6104ac
Exists in
master
and in
1 other branch
força coleta por subrede
Showing
1 changed file
with
89 additions
and
119 deletions
Show diff stats
src/Cacic/CommonBundle/Resources/views/Rede/coletar.html.twig
| 1 | 1 | {% extends 'CacicCommonBundle::base.html.twig' %} |
| 2 | 2 | |
| 3 | 3 | {% block breadcrumb %} |
| 4 | -<li class="active">{{ 'Forçar Coleta'|trans }}</li> | |
| 4 | + <li class="active">{{ 'Forçar Coleta Subrede'|trans }}</li> | |
| 5 | 5 | {% endblock %} |
| 6 | 6 | |
| 7 | 7 | {% block body %} |
| 8 | 8 | |
| 9 | -<div class="row-fluid"> | |
| 10 | - <div class="span8"> | |
| 11 | - | |
| 12 | - <div class="box grad_colour_black"> | |
| 13 | - | |
| 14 | - <h2 class="box_head round_top"><i class="icon-search"></i> {{'Forçar coleta por máquina' |trans }}</h2> | |
| 15 | - | |
| 16 | - <div class="block box_content round_bottom padding_10"> | |
| 17 | - | |
| 18 | - <form id={{ 'formComputadorConsulta'|trans }} class="form-horizontal" action="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}" method="post" > | |
| 19 | - | |
| 20 | - <div class="control-group" > | |
| 21 | - <label for="log_acesso_periodo"style="width:300px; margin-right: 15px" class="control-label">{{ 'Selecione o filtro da busca'|trans }}</label> | |
| 22 | - <div class="controls"> | |
| 23 | - {{ form_widget(form.selConsulta, {'form_type': 'horizontal'}) }} | |
| 24 | - </div> | |
| 25 | - </div> | |
| 26 | - | |
| 27 | - <div id="teIpComputador" class="mostrarDiv" style=" display: none; margin-left: 155px" > | |
| 28 | - <div class="control-group" > | |
| 9 | + <div class="row-fluid"> | |
| 10 | + <div class="span8"> | |
| 11 | + | |
| 12 | + <div class="box grad_colour_black"> | |
| 13 | + | |
| 14 | + <h2 class="box_head round_top"><i class="icon-hdd"></i> {{ 'Atualizações de subredes'|trans }}</h2> | |
| 15 | + | |
| 16 | + <div class="block box_content round_bottom padding_10"> | |
| 17 | + | |
| 18 | + <form id={{ 'formRedeColeta'|trans }} class="form-horizontal" action="{{ path('cacic_rede_coletar_submit') }}" method="post" > | |
| 19 | + | |
| 20 | + <table class="display datatable" id="datatable"> | |
| 21 | + | |
| 22 | + <thead> | |
| 23 | + <tr> | |
| 24 | + <th width="20%" style="text-align: center">{{ 'Endereço IP'|trans }}</th> | |
| 25 | + <th width="45%" style="text-align: center">{{ 'Nome da Subrede'|trans }}</th> | |
| 26 | + <th width="25%" style="text-align: center">{{ 'Localizacao'|trans }}</th> | |
| 27 | + <th width="10%" style="text-align: center"> | |
| 28 | + <label style="margin: auto; width:12px; height:10px;"> | |
| 29 | + <input type="checkbox" class="toggleCheck" name="toggleCheck[]" value="subrede"> | |
| 30 | + </label> | |
| 31 | + </th> | |
| 32 | + </tr> | |
| 33 | + </thead> | |
| 34 | + | |
| 35 | + <tbody> | |
| 36 | + {% for key, rede in subredes %} | |
| 37 | + <tr id="item_{{ key }}"> | |
| 38 | + <td style="text-align: center" id="item_desc_{{ key }}">{{ rede['teIpRede'] }}</td> | |
| 39 | + <td style="text-align: center" >{{ rede['nmRede'] }}</td> | |
| 40 | + <td style="text-align: center" >{{ rede['nmLocal'] }}</td> | |
| 41 | + <td> | |
| 42 | + <label style="margin: auto; width:12px; height:10px;"> | |
| 43 | + <input type="checkbox" id="item_id_{{ key }}" name="subrede[]" value="{{ key }}"> | |
| 44 | + </label> | |
| 45 | + </td> | |
| 46 | + </tr> | |
| 47 | + {% else %} | |
| 48 | + <tr> | |
| 49 | + <td style="text-align: center" colspan="6"><b>{{ 'NENHUM REGISTRO ENCONTRADO!'|trans }}</b></td> | |
| 50 | + </tr> | |
| 51 | + {% endfor %} | |
| 52 | + | |
| 53 | + </tbody> | |
| 54 | + </table> | |
| 55 | + <div class="control-group" align="right"> | |
| 29 | 56 | <div class="controls"> |
| 30 | - {{ form_widget(form.teIpComputador) }} | |
| 57 | + <button type="reset" class="btn"> | |
| 58 | + <i class="icon-refresh"></i> | |
| 59 | + {{ "Resetar Valores"|trans }} | |
| 60 | + </button> | |
| 61 | + <button type="submit" value="submit" class="btn btn-primary"> | |
| 62 | + <i class="icon-ok-sign"></i> | |
| 63 | + {{ "Forçar Coleta"|trans }} | |
| 64 | + </button> | |
| 31 | 65 | </div> |
| 32 | 66 | </div> |
| 33 | - </div> | |
| 34 | - <div id="nmComputador" class="mostrarDiv" style="display:none; margin-left: 155px" > | |
| 35 | - <div class="control-group" > | |
| 36 | - <div class="controls"> | |
| 37 | - {{ form_widget(form.nmComputador) }} | |
| 38 | - </div> | |
| 39 | - </div> | |
| 40 | - </div> | |
| 41 | - <div id="teNodeAddress" class="mostrarDiv" style="display: none; margin-left: 155px" > | |
| 42 | - <div class="control-group" > | |
| 43 | - <div class="controls"> | |
| 44 | - {{ form_widget(form.teNodeAddress) }} | |
| 45 | - </div> | |
| 46 | - </div> | |
| 47 | - </div> | |
| 48 | - | |
| 49 | - <div class="control-group" align="right"> | |
| 50 | - <div class="controls"> | |
| 51 | - <button type="submit" class="btn btn-primary"> | |
| 52 | - <i class="icon-search"></i> | |
| 53 | - {{ "Buscar"|trans }} | |
| 54 | - </button> | |
| 55 | - </div> | |
| 56 | - </div> | |
| 57 | - </form> | |
| 58 | - </div> <!-- /block --> | |
| 59 | - </div> <!-- /box --> | |
| 60 | - {% if computadores is not null %} | |
| 61 | - {% include 'CacicCommonBundle:Computador:resultadoColetar.html.twig' %} | |
| 62 | - {% endif %} | |
| 63 | - </div><!-- /span --> | |
| 64 | - | |
| 65 | - <div class="span4"> | |
| 66 | - <div class="box grad_colour_black"> | |
| 67 | - | |
| 68 | - <h2 class="box_head round_top"><i class="icon-info-sign"></i> {{ "Informações Adicionais"|trans }}</h2> | |
| 69 | - | |
| 70 | - <div class="block box_content round_bottom padding_10"> | |
| 71 | - <p> | |
| 72 | - {{ "Este módulo permite forçar a coleta nos computadores monitorados pelos agentes do cacic"|trans }}. | |
| 73 | - </p> | |
| 74 | - <p> | |
| 75 | - {{ "É possível pesquisar por IP's, nome ou Mac da máquina, bastando selecionar uma de suas opções"|trans }}. | |
| 76 | - </p> | |
| 77 | - <p> | |
| 78 | - {{ "A coleta será realizada em aproximadamente 1 minuto"|trans }}. | |
| 79 | - </p> | |
| 80 | - </div> <!-- /block --> | |
| 81 | - </div> <!-- /box --> | |
| 82 | - </div> <!-- span4 --> | |
| 83 | -</div><!-- /row --> | |
| 67 | + | |
| 68 | + </form> | |
| 69 | + | |
| 70 | + </div> <!-- /block --> | |
| 71 | + </div><!-- /box --> | |
| 72 | + | |
| 73 | + </div><!-- /span --> | |
| 74 | + <div class="span4"> | |
| 75 | + <div class="box grad_colour_black"> | |
| 76 | + | |
| 77 | + <h2 class="box_head round_top"><i class="icon-info-sign"></i> {{ "Informações Adicionais"|trans }}</h2> | |
| 78 | + | |
| 79 | + <div class="block box_content round_bottom padding_10"> | |
| 80 | + <p> | |
| 81 | + {{ "Este módulo permite forçar a coleta de informações nos computadores monitorados pelos agentes do cacic"|trans }}. | |
| 82 | + </p> | |
| 83 | + <p> | |
| 84 | + {{ "É possível pesquisar por IP, Nome da Subrede ou localização"|trans }}. | |
| 85 | + </p> | |
| 86 | + <p> | |
| 87 | + {{ "Selecione a(s) subrede(s) onde deseja realizar a coleta e clique no botão Forçar Coleta"|trans }}. | |
| 88 | + </p> | |
| 89 | + <p> | |
| 90 | + {{ "A coleta será realizada em aproximadamente 4 minuto"|trans }}. | |
| 91 | + </p> | |
| 92 | + </div> <!-- /block --> | |
| 93 | + </div> <!-- /box --> | |
| 94 | + </div> <!-- span4 --> | |
| 95 | + </div><!-- /row --> | |
| 84 | 96 | {% endblock %} |
| 85 | 97 | |
| 86 | 98 | {% block javascripts %} |
| 87 | 99 | |
| 88 | -{{ parent() }} | |
| 89 | - | |
| 90 | -<script type="text/javascript"> | |
| 91 | - System.Form.toggleCheck(); // Ativa o monitoramento de Clique no checkbox para marcar/desmarcar todos | |
| 92 | -</script> | |
| 93 | - | |
| 94 | - <!-- javascript | |
| 95 | - ================================================== --> | |
| 96 | - <!-- Placed at the end of the document so the pages load faster --> | |
| 97 | - <!-- jQuery (UI) --> | |
| 98 | - <script type="text/javascript" src="{{ asset('bundles/caciccommon/libs/jquery.1.7.1.min.js') }}"></script> | |
| 99 | - <script type="text/javascript" src="{{ asset('bundles/caciccommon/libs/jquery-ui-1.8.17.min.js') }}"></script> | |
| 100 | - | |
| 101 | - | |
| 102 | - {{ parent() }} | |
| 103 | - | |
| 104 | - | |
| 105 | - | |
| 106 | - <script type="text/javascript"> | |
| 107 | - /** | |
| 108 | - * Mensagens do sistema | |
| 109 | - */ | |
| 110 | - | |
| 111 | - if($('#ComputadorConsulta_selConsulta').val() == 'teIpComputador'){ | |
| 112 | - $('#teIpComputador').show(); | |
| 113 | - } | |
| 114 | - if($('#ComputadorConsulta_selConsulta').val() == 'nmComputador'){ | |
| 115 | - $('#nmComputador').show(); | |
| 116 | - } | |
| 117 | - if($('#ComputadorConsulta_selConsulta').val() == 'teNodeAddress'){ | |
| 118 | - $('#teNodeAddress').show(); | |
| 119 | - } | |
| 120 | - | |
| 121 | - | |
| 122 | - | |
| 123 | - $('#ComputadorConsulta_selConsulta').change(function () { | |
| 124 | - $('.mostrarDiv').hide(); | |
| 125 | -// $('#ComputadorConsulta_teIpComputador').val( '' ); | |
| 126 | - $('#ComputadorConsulta_nmComputador').val( '' ); | |
| 127 | - $('#ComputadorConsulta_teNodeAddress').val( '' ); | |
| 128 | - | |
| 129 | - $('#' + $(this).val()).show(); | |
| 130 | - }); | |
| 131 | - | |
| 132 | - </script> | |
| 133 | - | |
| 100 | + {{ parent() }} | |
| 134 | 101 | |
| 102 | + <script type="text/javascript"> | |
| 103 | + System.Form.toggleCheck(); // Ativa o monitoramento de Clique no checkbox para marcar/desmarcar todos | |
| 104 | + </script> | |
| 135 | 105 | |
| 136 | 106 | {% endblock %} |
| 137 | 107 | \ No newline at end of file | ... | ... |