{% extends "admin/base_site.html" %} {% block breadcrumbs %}
{% endblock %} {% block content %} {% if protocolo_arquivo %}Cliente | {% for indice in indices %}
{{ indice }} {% for meta_tipo_cliente in meta_indices_tipo_cliente %} {% ifequal meta_tipo_cliente.indice.id indice.id %} {% ifequal meta_tipo_cliente.tipo_percentual 0 %} Mínimo {% else %} Máximo {% endifequal %} de {{ meta_tipo_cliente.valor }} {% endifequal %} {% endfor %} |
{% endfor %}
---|---|
{{protocolo.cliente}} | {% for indice in indices %}
{% if not indice.somente_cliente %}
{% for meta in meta_indices_tipo_cliente %}
{% ifequal indice.id meta.indice.id %}
{% for indice_informado in protocolo.tipoclienteindiceinformado_set.all %}
{% ifequal indice_informado.indice.id meta.indice.id %}
{% ifequal meta.tipo_percentual 0 %}
{{ indice_informado.valor }}
{% if indice_informado.valor < meta.valor %}
{% endif %}
{% else %}
{{ indice_informado.valor }}
{% if indice_informado.valor > meta.valor %}
{% endif %}
{% endifequal %}
{% endifequal %}
{% endfor %}
{% endifequal %}
{% endfor %}
{% else %}
{% for meta in meta_indice_cliente %}
{% ifequal indice.id meta.indice.id %}
{% ifequal meta.cliente.id protocolo.cliente.id %}
{% for indice_informado in protocolo.clienteindiceinformado_set.all %}
{% ifequal indice_informado.indice.id meta.indice.id %}
{% ifequal meta.tipo_percentual 0 %}
(Mínimo de: {{ meta.valor }}) {{ indice_informado.valor }} {% if indice_informado.valor < meta.valor %} {% endif %} {% else %} (Máximo de: {{ meta.valor }}) {{ indice_informado.valor }} {% if indice_informado.valor > meta.valor %} {% endif %} {% endifequal %} {% endifequal %} {% endfor %} {% endifequal %} {% endifequal %} {% endfor %} {% endif %} |
{% endfor %}