Commit 89bde4915bf0733825e766a33e122fd548d505b4
1 parent
2b7de230
Exists in
master
and in
1 other branch
Correção na apresentação do CSV no 'faturamento' e 'sem coletas'. E adição do bo…
…tão para a apresentação do CSV onde é mostrado as máquinas de cada subrede.
Showing
6 changed files
with
42 additions
and
23 deletions
Show diff stats
src/Cacic/RelatorioBundle/Resources/views/Faturamento/faturamento.html.twig
| ... | ... | @@ -53,10 +53,10 @@ |
| 53 | 53 | <i class="icon-search"></i> |
| 54 | 54 | {{ 'Gerar relatório'|trans }} |
| 55 | 55 | </button> |
| 56 | - <button type="submit" class="btn btn-success" formaction="{{ path('cacic_faturamento_csv') }}"> | |
| 56 | + <a class="btn btn-success" type="submit" href="{{ path('cacic_faturamento_csv_inicial') }}" target="_self"> | |
| 57 | 57 | <i class="icon-download-alt"></i> |
| 58 | 58 | {{'Gerar CSV'|trans }} |
| 59 | - </button> | |
| 59 | + </a> | |
| 60 | 60 | </div> |
| 61 | 61 | </div> |
| 62 | 62 | ... | ... |
src/Cacic/RelatorioBundle/Resources/views/Faturamento/faturamentoResultado.html.twig
| ... | ... | @@ -12,12 +12,12 @@ |
| 12 | 12 | <h5>{{ 'Relatório gerado em'|trans }} {% if idioma == 'pt_BR' %}{{ "now"|date("d/m/Y H\\hi") }}{% else %}{{ "now"|date("m/d/Y H\\hi") }}{% endif %}</h5> |
| 13 | 13 | <hr /> |
| 14 | 14 | |
| 15 | - <form id="csv" action="{{ path('cacic_faturamento_csv') }}" method="post"> | |
| 16 | - <button class="btn btn-primary" type="submit"> | |
| 17 | - <i class="icon-bar-chart"></i> | |
| 18 | - Gerar CSV | |
| 19 | - </button> | |
| 20 | - </form> | |
| 15 | + <!--Botão CSV --> | |
| 16 | + <a class="btn btn-primary" type="submit" href="{{ path('cacic_faturamento_csv') }}" title="{{ "Máquinas faturadas"|trans }}" target="_self"> | |
| 17 | + <i class="icon-bar-chart"></i> | |
| 18 | + Gerar CSV | |
| 19 | + </a> | |
| 20 | + <!--Botão CSV --> | |
| 21 | 21 | |
| 22 | 22 | <form id="faturamento" class="form-horizontal" method="post" > |
| 23 | 23 | ... | ... |
src/Cacic/RelatorioBundle/Resources/views/Faturamento/inativos.html.twig
| ... | ... | @@ -55,10 +55,11 @@ |
| 55 | 55 | <i class="icon-search"></i> |
| 56 | 56 | {{ 'Gerar relatório'|trans }} |
| 57 | 57 | </button> |
| 58 | - <button type="submit" class="btn btn-success" formaction="{{ path('cacic_inativos_csv') }}"> | |
| 59 | - <i class="icon-download-alt"></i> | |
| 58 | + <a class="btn btn-success" type="submit" href="{{ path('cacic_inativos_csv_inicial') }}" target="_self"> | |
| 59 | + <i class="icon-download-alt"></i> | |
| 60 | 60 | {{'Gerar CSV'|trans }} |
| 61 | - </button> | |
| 61 | + </a> | |
| 62 | + | |
| 62 | 63 | </div> |
| 63 | 64 | </div> |
| 64 | 65 | ... | ... |
src/Cacic/RelatorioBundle/Resources/views/Faturamento/inativosResultado.html.twig
| ... | ... | @@ -8,12 +8,17 @@ |
| 8 | 8 | <h2 class="box_head round_top"><i class="icon-list"></i> {{'Total de estações sem coletas' |trans }}</h2> |
| 9 | 9 | <div class="block box_content round_bottom padding_10"> |
| 10 | 10 | |
| 11 | - <h2 class="">{{ 'Relatório com total de máquinas sem Coletas por subredes'|trans }}</h2> | |
| 12 | - <h5>{{ 'Relatório gerado em'|trans }} {% if idioma == 'pt_BR' %}{{ "now"|date("d/m/Y H\\hi") }}{% else %}{{ "now"|date("m/d/Y H\\hi") }}{% endif %}</h5> | |
| 11 | + <h2 class="">{{ 'Relatório com total de máquinas sem coletas por subredes'|trans }}</h2> | |
| 13 | 12 | <h5 class="">{{ 'Período: '|trans }}{{data['dtAcaoInicio']|date("d/m/Y") }} a {{ data['dtAcaoFim']|date("d/m/Y") }}</h5> |
| 13 | + <h5>{{ 'Relatório gerado em'|trans }} {% if idioma == 'pt_BR' %}{{ "now"|date("d/m/Y H\\hi") }}{% else %}{{ "now"|date("m/d/Y H\\hi") }}{% endif %}</h5> | |
| 14 | 14 | |
| 15 | 15 | <hr /> |
| 16 | - | |
| 16 | + <!--Botão CSV--> | |
| 17 | + <a class="btn btn-primary" type="submit" href="{{ path('cacic_inativos_csv') }}" title="{{ "Máquinas sem coletas"|trans }}" target="_self"> | |
| 18 | + <i class="icon-bar-chart"></i> | |
| 19 | + Gerar CSV | |
| 20 | + </a> | |
| 21 | + <!--Botão CSV --> | |
| 17 | 22 | |
| 18 | 23 | <form id="inativas" class="form-horizontal" method="post" > |
| 19 | 24 | |
| ... | ... | @@ -25,11 +30,7 @@ |
| 25 | 30 | <th width="30%" style="text-align: center">{{ "Subrede"|trans }}</th> |
| 26 | 31 | <th width="20%" style="text-align: center">{{ "Endereço IP"|trans }}</th> |
| 27 | 32 | <th width="20%" style="text-align: center">{{ "Estações"|trans }}</th> |
| 28 | - <th style="text-align: center"> | |
| 29 | - <a class="btn btn-success" href="{{ path('cacic_inativos_listar_csv') }}/{{ logs[0]['idRede'] }}/{{data['dtAcaoInicio'] }}/{{ data['dtAcaoFim'] }}" title="{{ "Máquinas sem Coletas"|trans }}" target="_self"> | |
| 30 | - <i class="icon-download-alt"></i> | |
| 31 | - </a> | |
| 32 | - </th> | |
| 33 | + <th style="text-align: center"></th> | |
| 33 | 34 | </tr> |
| 34 | 35 | </thead> |
| 35 | 36 | ... | ... |
src/Cacic/RelatorioBundle/Resources/views/Faturamento/listar.html.twig
| ... | ... | @@ -3,10 +3,17 @@ |
| 3 | 3 | {% block body %} |
| 4 | 4 | |
| 5 | 5 | <h2>{{ 'Relatório de máquinas da subrede '|trans }} {{ rede }}</h2> |
| 6 | - <h5>{{ 'Relatório gerado em'|trans }} {% if idioma == 'pt_BR' %}{{ "now"|date("d/m/Y H\\hi") }}{% else %}{{ "now"|date("m/d/Y H\hi") }}{% endif %}</h5> | |
| 6 | + <h5>{{ 'Relatório gerado em'|trans }} {% if idioma == 'pt_BR' %}{{ "now"|date("d/m/Y H\\hi") }}{% else %}{{ "now"|date("d/m/Y H\hi") }}{% endif %}</h5> | |
| 7 | 7 | |
| 8 | 8 | <hr /> |
| 9 | 9 | |
| 10 | + <!--Botão CSV --> | |
| 11 | + <a class="btn btn-primary" type="submit" href="{{ path('cacic_faturamento_listar_csv',{'idRede':idRede,'dataInicio':dtAcaoInicio|trim,'dataFim':dtAcaoFim|trim})}}" title="{{ "Máquinas faturadas"|trans }}" target="_self"> | |
| 12 | + <i class="icon-bar-chart"></i> | |
| 13 | + Gerar CSV | |
| 14 | + </a> | |
| 15 | + <!--Botão CSV --> | |
| 16 | + | |
| 10 | 17 | <table class="display datatable" id="datatable"> |
| 11 | 18 | <thead> |
| 12 | 19 | <tr> |
| ... | ... | @@ -22,7 +29,8 @@ |
| 22 | 29 | </thead> |
| 23 | 30 | |
| 24 | 31 | <tbody> |
| 25 | - {% for reg in dados %} | |
| 32 | + | |
| 33 | + {% for reg in dados %} | |
| 26 | 34 | <tr> |
| 27 | 35 | <td style="text-align: center">{{ loop.index }}</td> |
| 28 | 36 | <td> |
| ... | ... | @@ -40,6 +48,7 @@ |
| 40 | 48 | <td style="text-align: center" colspan="7"><b>{{ "NENHUM REGISTRO ENCONTRADO!"|trans }}</b></td> |
| 41 | 49 | </tr> |
| 42 | 50 | {% endfor %} |
| 51 | + | |
| 43 | 52 | </tbody> |
| 44 | 53 | </table> |
| 45 | 54 | ... | ... |
src/Cacic/RelatorioBundle/Resources/views/Faturamento/listarInativos.html.twig
| ... | ... | @@ -2,15 +2,22 @@ |
| 2 | 2 | |
| 3 | 3 | {% block body %} |
| 4 | 4 | |
| 5 | - <h2>{{ 'Relatório de máquinas da subrede '|trans }} {{ rede }}</h2> | |
| 5 | + <h2>{{ 'Relatório de máquinas sem coletas da subrede '|trans }} {{ rede }}</h2> | |
| 6 | 6 | <h5>{{ 'Relatório gerado em'|trans }} {% if idioma == 'pt_BR' %}{{ "now"|date("d/m/Y H\\hi") }}{% else %}{{ "now"|date("m/d/Y H\\hi") }}{% endif %}</h5> |
| 7 | 7 | |
| 8 | 8 | <hr /> |
| 9 | 9 | |
| 10 | + <!--Botão CSV--> | |
| 11 | + <a class="btn btn-primary" type="submit" href="{{ path('cacic_inativos_listar_csv',{'idRede':idRede,'dataInicio':dtAcaoInicio|trim,'dataFim':dtAcaoFim|trim})}}" title="{{ "Máquinas sem coletas"|trans }}" target="_self"> | |
| 12 | + <i class="icon-bar-chart"></i> | |
| 13 | + Gerar CSV | |
| 14 | + </a> | |
| 15 | + <!--Botão CSV--> | |
| 16 | + | |
| 10 | 17 | <table class="display datatable" id="datatable"> |
| 11 | 18 | <thead> |
| 12 | 19 | <tr> |
| 13 | - <th width="5%" style="text-align: center"></th> | |
| 20 | + <th width="5%" style="text-align: center"></th> | |
| 14 | 21 | <th width="15%">{{ "Computador"|trans }}</th> |
| 15 | 22 | <th width="10%">{{ "MAC Address"|trans }}</th> |
| 16 | 23 | <th width="10%">{{ "Endereço IP"|trans }}</th> |
| ... | ... | @@ -32,6 +39,7 @@ |
| 32 | 39 | <td><span class="{% if reg.inMswindows == 'S' %}red{% else %}blue{% endif %}">{{ reg.sgSo }}</span></td> |
| 33 | 40 | <td>{{ reg.nmLocal }}</td> |
| 34 | 41 | <td>{{ reg.nmRede }} / {{ reg.teIpRede }}</td> |
| 42 | + | |
| 35 | 43 | </tr> |
| 36 | 44 | {% else %} |
| 37 | 45 | <tr> | ... | ... |