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,10 +53,10 @@ | ||
| 53 | <i class="icon-search"></i> | 53 | <i class="icon-search"></i> |
| 54 | {{ 'Gerar relatório'|trans }} | 54 | {{ 'Gerar relatório'|trans }} |
| 55 | </button> | 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 | <i class="icon-download-alt"></i> | 57 | <i class="icon-download-alt"></i> |
| 58 | {{'Gerar CSV'|trans }} | 58 | {{'Gerar CSV'|trans }} |
| 59 | - </button> | 59 | + </a> |
| 60 | </div> | 60 | </div> |
| 61 | </div> | 61 | </div> |
| 62 | 62 |
src/Cacic/RelatorioBundle/Resources/views/Faturamento/faturamentoResultado.html.twig
| @@ -12,12 +12,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> | 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 | <hr /> | 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 | <form id="faturamento" class="form-horizontal" method="post" > | 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,10 +55,11 @@ | ||
| 55 | <i class="icon-search"></i> | 55 | <i class="icon-search"></i> |
| 56 | {{ 'Gerar relatório'|trans }} | 56 | {{ 'Gerar relatório'|trans }} |
| 57 | </button> | 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 | {{'Gerar CSV'|trans }} | 60 | {{'Gerar CSV'|trans }} |
| 61 | - </button> | 61 | + </a> |
| 62 | + | ||
| 62 | </div> | 63 | </div> |
| 63 | </div> | 64 | </div> |
| 64 | 65 |
src/Cacic/RelatorioBundle/Resources/views/Faturamento/inativosResultado.html.twig
| @@ -8,12 +8,17 @@ | @@ -8,12 +8,17 @@ | ||
| 8 | <h2 class="box_head round_top"><i class="icon-list"></i> {{'Total de estações sem coletas' |trans }}</h2> | 8 | <h2 class="box_head round_top"><i class="icon-list"></i> {{'Total de estações sem coletas' |trans }}</h2> |
| 9 | <div class="block box_content round_bottom padding_10"> | 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 | <h5 class="">{{ 'Período: '|trans }}{{data['dtAcaoInicio']|date("d/m/Y") }} a {{ data['dtAcaoFim']|date("d/m/Y") }}</h5> | 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 | <hr /> | 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 | <form id="inativas" class="form-horizontal" method="post" > | 23 | <form id="inativas" class="form-horizontal" method="post" > |
| 19 | 24 | ||
| @@ -25,11 +30,7 @@ | @@ -25,11 +30,7 @@ | ||
| 25 | <th width="30%" style="text-align: center">{{ "Subrede"|trans }}</th> | 30 | <th width="30%" style="text-align: center">{{ "Subrede"|trans }}</th> |
| 26 | <th width="20%" style="text-align: center">{{ "Endereço IP"|trans }}</th> | 31 | <th width="20%" style="text-align: center">{{ "Endereço IP"|trans }}</th> |
| 27 | <th width="20%" style="text-align: center">{{ "Estações"|trans }}</th> | 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 | </tr> | 34 | </tr> |
| 34 | </thead> | 35 | </thead> |
| 35 | 36 |
src/Cacic/RelatorioBundle/Resources/views/Faturamento/listar.html.twig
| @@ -3,10 +3,17 @@ | @@ -3,10 +3,17 @@ | ||
| 3 | {% block body %} | 3 | {% block body %} |
| 4 | 4 | ||
| 5 | <h2>{{ 'Relatório de máquinas da subrede '|trans }} {{ rede }}</h2> | 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 | <hr /> | 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 | <table class="display datatable" id="datatable"> | 17 | <table class="display datatable" id="datatable"> |
| 11 | <thead> | 18 | <thead> |
| 12 | <tr> | 19 | <tr> |
| @@ -22,7 +29,8 @@ | @@ -22,7 +29,8 @@ | ||
| 22 | </thead> | 29 | </thead> |
| 23 | 30 | ||
| 24 | <tbody> | 31 | <tbody> |
| 25 | - {% for reg in dados %} | 32 | + |
| 33 | + {% for reg in dados %} | ||
| 26 | <tr> | 34 | <tr> |
| 27 | <td style="text-align: center">{{ loop.index }}</td> | 35 | <td style="text-align: center">{{ loop.index }}</td> |
| 28 | <td> | 36 | <td> |
| @@ -40,6 +48,7 @@ | @@ -40,6 +48,7 @@ | ||
| 40 | <td style="text-align: center" colspan="7"><b>{{ "NENHUM REGISTRO ENCONTRADO!"|trans }}</b></td> | 48 | <td style="text-align: center" colspan="7"><b>{{ "NENHUM REGISTRO ENCONTRADO!"|trans }}</b></td> |
| 41 | </tr> | 49 | </tr> |
| 42 | {% endfor %} | 50 | {% endfor %} |
| 51 | + | ||
| 43 | </tbody> | 52 | </tbody> |
| 44 | </table> | 53 | </table> |
| 45 | 54 |
src/Cacic/RelatorioBundle/Resources/views/Faturamento/listarInativos.html.twig
| @@ -2,15 +2,22 @@ | @@ -2,15 +2,22 @@ | ||
| 2 | 2 | ||
| 3 | {% block body %} | 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 | <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("m/d/Y H\\hi") }}{% endif %}</h5> |
| 7 | 7 | ||
| 8 | <hr /> | 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 | <table class="display datatable" id="datatable"> | 17 | <table class="display datatable" id="datatable"> |
| 11 | <thead> | 18 | <thead> |
| 12 | <tr> | 19 | <tr> |
| 13 | - <th width="5%" style="text-align: center"></th> | 20 | + <th width="5%" style="text-align: center"></th> |
| 14 | <th width="15%">{{ "Computador"|trans }}</th> | 21 | <th width="15%">{{ "Computador"|trans }}</th> |
| 15 | <th width="10%">{{ "MAC Address"|trans }}</th> | 22 | <th width="10%">{{ "MAC Address"|trans }}</th> |
| 16 | <th width="10%">{{ "Endereço IP"|trans }}</th> | 23 | <th width="10%">{{ "Endereço IP"|trans }}</th> |
| @@ -32,6 +39,7 @@ | @@ -32,6 +39,7 @@ | ||
| 32 | <td><span class="{% if reg.inMswindows == 'S' %}red{% else %}blue{% endif %}">{{ reg.sgSo }}</span></td> | 39 | <td><span class="{% if reg.inMswindows == 'S' %}red{% else %}blue{% endif %}">{{ reg.sgSo }}</span></td> |
| 33 | <td>{{ reg.nmLocal }}</td> | 40 | <td>{{ reg.nmLocal }}</td> |
| 34 | <td>{{ reg.nmRede }} / {{ reg.teIpRede }}</td> | 41 | <td>{{ reg.nmRede }} / {{ reg.teIpRede }}</td> |
| 42 | + | ||
| 35 | </tr> | 43 | </tr> |
| 36 | {% else %} | 44 | {% else %} |
| 37 | <tr> | 45 | <tr> |