detalhar.html.twig 5.92 KB
{% 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>&nbsp;</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 %}