{% extends "base.html" %} {% block title %}Certificados Digitais - CapeSystem{% endblock %} {% block content %}
| Cliente | Tipo | Autoridade Certificadora | Data Venda | Data Vencimento | Status | Alerta | Valor | Ações |
|---|---|---|---|---|---|---|---|---|
|
{{ cert.pessoa.nome }}
{% if cert.pessoa.telefone %}
{{ cert.pessoa.telefone }} {% endif %} |
{{ cert.tipo }} | {{ cert.autoridade_certificadora }} | {{ cert.data_venda.strftime('%d/%m/%Y') }} |
{{ cert.data_vencimento.strftime('%d/%m/%Y') }}
{{ cert.dias_para_vencer() }} dias |
{% if cert.status == 'ativo' %} Ativo {% elif cert.status == 'renovado' %} Renovado {% elif cert.status == 'cancelado' %} Cancelado {% else %} {{ cert.status }} {% endif %} | {% set alerta = cert.alerta_vencimento() %} {% if alerta == 'vencido' %} Vencido {% elif alerta == 'critico' %} Crítico {% elif alerta == 'atencao' %} Atenção {% else %} OK {% endif %} | R$ {{ "%.2f"|format(cert.valor_venda or 0) }} | {% if cert.status == 'ativo' %} {% endif %} |