{% extends "base.html" %} {% block title %} {{ title }} {% endblock %} {% block extra-css %} {% load staticfiles %} {% endblock %} {% block titulo %}
{% if ramal.password == True %} {% else %} {% endif %}
{% endblock %} {% block conteudo1 %}
{% if send == 'ok' %}
Senha enviada para o usuário {{ ramal.user.get_full_name |upper }} no email {{ ramal.user.email }}
{% endif %}

{% if ramal.password == True %} Código: {% if perms.ace.view_password %} {{ ramal }} {% else %} ********** {% endif %} {% else %} Número: {{ ramal }} {% endif %}

{% if ramal.active == True %}

Ativo: {{ ramal.active|yesno:"Sim,Não" }}

{% else %}

Ativo:  {{ ramal.active|yesno:"Sim,Não" }}

{% endif %} {% if ramal.user != None %}

Usuário: {{ ramal.user.get_full_name |upper}} - {{ ramal.user.email }}

{% endif %}
{% if ramal.newpassword == True %} Data de criação: {{ ramal.date_creation }}

{% endif %} {% if ramal.password == False %} {% if ramal.place %}

Localização: {{ ramal.place|default_if_none:"N/A" }}

{% endif %} {% if ramal.place.sector %}

Setor: {{ ramal.place.sector }}

{% endif %}

Tipo: {{ ramal.telephonetype|default_if_none:"N/A" }}

{% endif %}

Categoria: {{ ramal.phonecategory|default_if_none:"N/A" }}

{% if ramal.phonehw %}

Aparelho: {{ ramal.phonehw }}

{% endif %} {% if ramal.comments %} Obs: {{ ramal.comments }}

{% endif %}
{% if ramal.password == True %} {% else %} {% endif %}
{% if ramal.active == True or poactive %} {% if perms.ace.delete_phoneownership %} {% endif %} {% else %} {% if perms.ace.add_phoneownership %} {% endif %} {% endif %} {% if ramal.user.email and ramal.password == True and ramal.active == True %} {% if perms.ace.add_phone %} {% endif %} {% endif %} {% if perms.ace.change_phone %} {% endif %} {% if perms.ace.delete_phone %} {% endif %}

{% if ponto.rack or ponto or ponto.patchpanel or ramal.dist or ramal.blco or ramal.par or ramal.dg %}
 Informações conexões - PABX/Rede
{% if ponto.rack %} {% else %} {% endif %} {% if ponto %} {% else %} {% endif %} {% if ponto.patchpanel %} {% else %} {% endif %}
Dist Bloco Par DG Rack Ponto/Tomada Patchpanel Porta PP Obs
{{ ramal.dist|default_if_none:"" }} {{ ramal.bloco|default_if_none:"" }} {{ ramal.par|default_if_none:"" }} {{ ramal.dg|default_if_none:"" }}{{ ponto.rack.name|default_if_none:"" }}{{ ponto |default_if_none:"" }}{{ ponto.patchpanel.num }}{{ ponto.patchpanelport.num }} {{ ponto.comments }}
{% endif %}
{% if phoneownership %}
Histórico de uso
{% for item in phoneownership %} {% if item.date_deactivation %} {% if item.user %} {% else %} {% endif %} {% else %} {% if item.user %} {% else %} {% endif %} {% endif %} {% endfor %}
Usuário Ativação em Desativação em
{{ item.user.get_full_name |default_if_none:"" |upper }} {{ item.date_activation |default_if_none:"---"}} {{ item.date_deactivation |default_if_none:"---"}}
{{ item.user.get_full_name |default_if_none:"" |upper }} {{ item.date_activation |default_if_none:"---"}} {{ item.date_deactivation |default_if_none:"---"}}
{% endif %} {% endblock %} {% block extra-js %} {% load staticfiles %} {% endblock %}