{% extends "base.html" %} {% block title %} Resultados da busca {% endblock %} {% block extra-css %} {% load staticfiles %} {% endblock %} {% block titulo %}
{% endblock %} {% block conteudo1 %}
{% if error %} {% else %} {% if not pontos and not locais and not ramais and not hosts and not switchs and not stacks and not services and not ips and not passwords and not ownerids and not users and not phonetypes and not phonecat and not networks %} {% endif %}
{% if pontos %}
Encontrado(s) {{ pontos|length }} ponto{{ pontos|pluralize }}.
{% for ponto in pontos %} {% endfor %}
Ponto Local Tipo
{{ ponto.num }} {{ ponto.place }} {{ ponto.pointtype }}
{% endif %}
{% if locais %}
Encontrado(s) {{ locais|length }} locais.
{% for local in locais %} {% endfor %}
Local Andar
{{ local.placetype }} - {{ local.name }} {{local.floor}}
{% endif %}
{% if ramais %}
Encontrado(s) {{ ramais|length }} telefone(s) {{ telefones|pluralize }}.
{% for ramal in ramais %} {% if ramal.password == True %} {% else %} {% endif %} {% if ramal.active == True %} {% else %} {% endif %} {% if ramal.user == None %} {% else %} {% endif %} {% if ramal.password == False %} {% else %} {% endif %} {% if ramal.password == False %} {% else %} {% endif %} {% endfor %}
Num Ativo Usuário Local Tipo Categoria
************{{ ramal }}TrueFalse --- {{ ramal.user.get_full_name |default_if_none:"" | upper }}{{ ramal.place |default_if_none:""}} Não se aplica{{ ramal.telephonetype |default_if_none:""}} Não se aplica {{ ramal.phonecategory }}
{% endif %}
{% if hosts %}
Encontrado(s) {{ hosts|length }} equipamento{{ hosts|pluralize }}.
{% for host in hosts %} {% endfor %}
Nome Tipo
{{ host.name }} {{ host.get_hwtype_display }}
{% else %} {% endif %}
{% if switchs %}
Encontrado(s) {{ switchs|length }} switch{{ switchs|pluralize:"es" }}.
{% for switch in switchs %} {% endfor %}
Nome
{{ switch.name }}
{% else %} {% endif %}
{% if stacks %}
Encontrada(s) {{ stacks|length }} pilha{{ pilhas|pluralize }}.
{% for stack in stacks %} {% endfor %}
Nome
{{ stack.name }}
{% else %} {% endif %}
{% if services %}
Encontrado(s) {{ services|length }} Serviço{{ services|pluralize }}.
{% for service in services %} {% endfor %}
Nome
{{ service.name }}
{% else %} {% endif %}
{% if ips %}
Encontrado(s) {{ ips|length }} IP{{ ips|pluralize }}.
{% for ip in ips %} {% endfor %}
Endereço Host
{{ ip.address }} {{ ip.device }}
{% endif %} {% if networks %}
Encontrada(s) {{ networks|length }} rede{{ redes|pluralize }}.
{% for network in networks %} {% endfor %}
Rede
{{ network.name }}
{% endif %} {% if ownerids %}
Encontrado(s) {{ ownerids|length }} Patrimônio{{ ownerids|pluralize }}.
{% for ownerid in ownerids %} {% endfor %}
Patrimônio
{{ ownerid }}
{% endif %} {% if users %}
Encontrado(s) {{ users|length }} Usuário{{ users|pluralize }}.
{% for user in users %} {% endfor %}
Usuário Email
{{ user.get_full_name |default_if_none:"" | upper }} {{ user.email }}
{% endif %}
{% endif %}
{% endblock %} {% block extra-js %} {% load staticfiles %} {% endblock %}