{% extends "base.html" %} {% block title %} {{ title }} {% endblock %} {% block extra-css %} {% load staticfiles %} {% endblock %} {% block titulo %}
{% if host.hwtype == "server" %} {% elif host.hwtype == "wifi" %} {% elif host.hwtype == "ap" %} {% elif host.hwtype == "fw" %} {% elif host.hwtype == "printer" %} {% elif host.hwtype == "router" %} {% elif host.hwtype == "virt" %} {% elif host.hwtype == "cftv" %} {% elif host.hwtype == "cam" %} {% elif host.hwtype == "voip" %} {% elif host.hwtype == "media" %} {% elif host.hwtype == "desktop" %} {% elif host.hwtype == "storage" %} {% elif t == "printer" %} {% else %} {% endif %}
{% endblock %} {% block conteudo1 %}
{% if host.active == True %}

Ativo: 

{% else %}

Ativo: 

{% endif %} {% if host.serial_number %}

Nº de série:  {{ host.serial_number }}

{% endif %} {% if host.vm == False %} {% if host.supplierhw == False %}

Patrimônio: {{ host.ownerid }}

{% endif %} {% endif %} {% if host.supplierhw %}

Hardware de terceiros:

{% endif %} {% if host.manufactorer %}

Fabricante:  {{ host.manufactorer }}

{% endif %} {% if host.devicemodel %}

Modelo:  {{ host.devicemodel }}

{% endif %} {% if host.printer_type %}

Tipo:  {{ host.get_printer_type_display }}

{% endif %} {% if host.place %}

Local:  {{ host.place }}

{% endif %} {% if host.osplatform %}

Plataforma:  {{ host.get_osplatform_display }}

{% endif %} {% if host.os %}

Sistema operacional:  {{ host.os }}

{% endif %}
{% if host.url %}

URL: {{ host.url }}

{% endif %} {% if host.mem %}

Memória instalada:  {{ host.mem }}

{% endif %} {% if host.cpu %}

Quantidade de CPU's:  {{ host.cpu }}

{% endif %} {% if host.hwtype %}

Tipo de hardware:  {{ host.get_hwtype_display }}

{% endif %} {% if host.vm == True %}

Máquina virtual: 

{% endif %}
{% if request.user.is_superuser %} {% if host.admuser %}

Usuário administrador: {{ host.admuser}}

{% endif %} {% endif %}
{% if host.comments %}

Obs: {{ host.comments }}

{% endif %} {% if history %}  Última alteração em: {{ history.0.history_date }} realizada por {{ history.0.history_user }}
{% endif %} {% if erro %}
Impossível obter informações do host - Verifique as credenciais de acesso.
{% endif %}
{% if t == "printer" %} {% else %} {% if perms.ace.edit_host %} {% endif %} {% if perms.ace.delete_host %} {% endif %} {% endif %}
{% if t == "printer" %} {% if perms.ace.add_printer %} {% endif %} {% else %} {% if perms.ace.add_host %} {% endif %} {% endif %} {% if t != "printer" %} {% if perms.ace.add_host %} {% endif %} {% if perms.ace.add_host %} {% endif %} {% endif %}

{% if host.groups.all %}
 Áreas responsáveis
    {% for g in host.groups.all %}
  • {{ g }}
  • {% endfor %}
{% endif %} {% if host.vm == False %}
{% if swport %}
Portas do switch
{% for porta in swport %} {% if porta.vlans %} {% else %} {% endif %} {% if porta.switch.stack %} {% else %} {% endif %} {% endfor %}
Num Switch VLANs Pilha
{{ porta.num }} {{ porta.switch.name }} {% for v in porta.vlans.all %}

{{ v }}

{% endfor %}
{{ porta.switch.stack }}
{% endif %}
{% if n %}
Pontos de rede
{% for netpoint in n %} {% endfor %}
Num Local
{{ netpoint.num }} {{ netpoint.place }}
{% endif %}
{% endif %}
{% if i %}
Endereços IP deste host
{% for ip in i %} {% endfor %}
Endereço Obs
{{ ip.address }} {{ ip.comments |default_if_none:"" }}
{% endif %}
{% if t != "printer" %}
{% if s %}
Serviços deste host
{% for service in s %} {% endfor %}
Nome IP
{{ service.name }} {{ service.ip }}
{% endif %}
{% endif %}
{% if t != "printer" %}
{% if u %}
Atualizações aplicadas
{% for update in u %} {% endfor %}
Nome Data de registro Data de aplicação Obs Ações
{{ update.name }} {{ update.register_date }} {{ update.aplication_date }} {{ update.comments }}  
{% endif %}
{% endif %}
{% endblock %} {% block extra-js %} {% load staticfiles %} {% endblock %}