{% if error %}
Erro:
Por favor insira um termo para a pesquisa.
{% 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 %}
Erro:
Termo pesquisado: {{ query }} - Nenhum item encontrado.
{% endif %}
{% if pontos %}
Encontrado(s) {{ pontos|length }} ponto{{ pontos|pluralize }}.
Ponto |
Local |
Tipo |
{% for ponto in pontos %}
{{ ponto.num }} |
{{ ponto.place }} |
{{ ponto.pointtype }} |
{% endfor %}
{% endif %}
{% if locais %}
Encontrado(s) {{ locais|length }} locais.
{% endif %}
{% if ramais %}
Encontrado(s) {{ ramais|length }} telefone(s) {{ telefones|pluralize }}.
Num |
Ativo |
Usuário |
Local |
Tipo |
Categoria |
{% for ramal in ramais %}
{% if ramal.password == True %}
************ |
{% else %}
{{ ramal }} |
{% endif %}
{% if ramal.active == True %}
True |
{% else %}
False |
{% endif %}
{% if ramal.user == None %}
--- |
{% else %}
{{ ramal.user.get_full_name |default_if_none:"" | upper }} |
{% endif %}
{% if ramal.password == False %}
{{ ramal.place |default_if_none:""}} |
{% else %}
Não se aplica |
{% endif %}
{% if ramal.password == False %}
{{ ramal.telephonetype |default_if_none:""}} |
{% else %}
Não se aplica |
{% endif %}
{{ ramal.phonecategory }} |
{% endfor %}
{% endif %}
{% if hosts %}
Encontrado(s) {{ hosts|length }} equipamento{{ hosts|pluralize }}.
Nome |
Tipo |
{% for host in hosts %}
{{ host.name }} |
{{ host.get_hwtype_display }} |
{% endfor %}
{% else %}
{% endif %}
{% if switchs %}
Encontrado(s) {{ switchs|length }} switch{{ switchs|pluralize:"es" }}.
{% else %}
{% endif %}
{% if stacks %}
Encontrada(s) {{ stacks|length }} pilha{{ pilhas|pluralize }}.
{% else %}
{% endif %}
{% if services %}
Encontrado(s) {{ services|length }} Serviço{{ services|pluralize }}.
{% else %}
{% endif %}
{% if ips %}
Encontrado(s) {{ ips|length }} IP{{ ips|pluralize }}.
{% endif %}
{% if networks %}
Encontrada(s) {{ networks|length }} rede{{ redes|pluralize }}.
{% endif %}
{% if ownerids %}
Encontrado(s) {{ ownerids|length }} Patrimônio{{ ownerids|pluralize }}.
Patrimônio |
{% for ownerid in ownerids %}
{{ ownerid }} |
{% endfor %}
{% endif %}
{% if users %}
Encontrado(s) {{ users|length }} Usuário{{ users|pluralize }}.
{% endif %}
{% endif %}