detalhar.html.twig
5.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{% extends 'CacicCommonBundle::base.html.twig' %}
{% block breadcrumb %}
<li><a href="{{ path('cacic_computador_navegar') }}">{{ "Computadores"|trans }}</a></li> /
<li class="active">{{ computador.nmComputador }}</li>
{% endblock %}
{% block body %}
<div class="row-fluid">
<div class="span12">
<div class="box grad_colour_black">
<h2 class="box_head round_top">
<i class="icon-desktop"></i>
{{ "Detalhes do Computador"|trans }}: {{ computador.nmComputador }}
</h2>
<div class="block box_content round_bottom padding_10">
<h3>{{ computador.nmComputador }}</h3>
<p class="muted">{{ "Dados coletados pelo agente-CACIC à partir da estação de trabalho."|trans }}</p>
<br />
<table class="table">
<thead>
<tr>
<th colspan="4">{{ 'Informações Básicas'|trans }}</th>
</tr>
</thead>
<tbody>
<tr>
<th width="20%">{{ 'Nome do Computador'|trans }}</th>
<td width="30%">{{ computador.nmComputador }}</td>
<th width="20%">{{ 'Notebook'|trans }}</th>
<td width="30%">{{ computador.isNotebook }}</td>
</tr>
<tr>
<th>{{ 'Sistema Operacional'|trans }}</th>
<td>{{ computador.idSo }}</td>
<th>{{ 'Último usuário logado'|trans }}</th>
<td>{{ ultimoAcesso.usuario }}</td>
</tr>
<tr>
<th width="10%">{{ 'Endereço TCP/IP'|trans }}</th>
<td width="20%">{{ computador.teIpComputador }}</td>
<th width="20%">{{ 'Nome/IP da subrede'|trans }}</th>
<td width="30%">{{ computador.idRede.nmRede }} - {{ computador.idRede.teIpRede }}</td>
</tr>
<tr>
<th width="20%">{{ 'Versão do Agente Principal'|trans }}</th>
<td width="30%">{{ computador.teVersaoCacic }}</td>
<th width="20%">{{ 'Versão do Agente de Coletas'|trans }}</th>
<td width="30%">{{ computador.teVersaoGercols }}</td>
</tr>
<tr>
<th>{{ 'Data/Hora de inclusão'|trans }}</th>
<td>{{ computador.dtHrInclusao|date('d/m/Y H:i') }}</td>
<th>{{ 'Data/Hora do último acesso'|trans }}</th>
<td>{{ computador.dtHrUltAcesso|date('d/m/Y H:i') }}</td>
</tr>
</tbody>
</table>
{% for classe in dadosColeta|keys %}
<table class="table">
<thead>
<tr>
<th colspan="3">{{ 'Classe de coleta: '|trans}}{{ classe }}</th>
</tr>
</thead>
<tbody>
<tr>
{% for dados in attribute(dadosColeta, classe)|keys %}
<tr>
<th width="20%">
{{ attribute(attribute(dadosColeta, classe), dados).nmPropertyName }}
<i class="icon-info-sign" onclick="javascript:alert({{ attribute(attribute(dadosColeta, classe), dados).tePropertyDescription }})"></i>
</th>
<td>{{ attribute(attribute(dadosColeta, classe), dados).teClassPropertyValue|raw }}</td>
</tr>
{% endfor %}
</tr>
</tbody>
</table>
{% else %}
<table class="table">
<thead>
<tr>
<th colspan="3">{{ 'Dados de Coleta'|trans }}</th>
</tr>
</thead>
<tbody>
<tr><td colspan="3" style="text-align: center"><b>{{ 'NENHUM REGISTRO ENCONTRADO'|trans }}</b></td></tr>
</tbody>
</table>
{% endfor %}
<table class="table">
<thead>
<tr>
<th colspan="3">{{ 'Coleta de Software'|trans }}</th>
</tr>
</thead>
<tbody>
{% for dados in software|keys %}
<tr>
<th rowspan="5" valign="middle" width="20%">{{ attribute(software, dados).displayName }}</th>
</tr>
<tr>
<th width="20%">{{ 'Versão'|trans }}</th>
<td>{{ attribute(software, dados).displayVersion }}</td>
</tr>
<tr>
<th width="20%">{{ 'URL'|trans }}</th>
<td>{{ attribute(software, dados).URLInfoAbout }}</td>
</tr>
<tr>
<th width="20%">{{ 'Fabricante'|trans }}</th>
<td>{{ attribute(software, dados).publisher }}</td>
</tr>
<tr> </tr>
{% else %}
<tr><td colspan="3" style="text-align: center"><b>{{ 'NENHUM REGISTRO ENCONTRADO'|trans }}</b></td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div> <!-- box -->
</div> <!-- span -->
</div> <!-- row -->
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style type="text/css">
<!--
.table tbody th { text-align: right; }
-->
</style>
{% endblock %}