{% if (not ocor.isFechada() and permissao.editarOcorrencia) or (ocor.isFechada() and permissao.editarOcorrenciaFechada) %}
{% if ocor.isFinalizadaMobile() %}
{% endif %}
{% endif %}
{% if (not ocor.isAprovado() and valida_status_comandante and comandante == 1) %}
{% if ocor.isFinalizadaMobile() %}
{% if (not ocor.isFechada() and permissao.editarOcorrencia) or (ocor.isFechada() and permissao.editarOcorrenciaFechada) %}
{% if not ocor.isFechada() %}