{% extends 'base.html' %} {% block title %}{{ project.name }} — 2N Painel{% endblock %} {% block content %}
← Dashboard
{{ project.name }}
Chat IA {% if current_user.is_admin() %} Editar {% endif %}
Cliente
{{ project.client.name }}
Status
{% if project.status == 'em_andamento' %}Em Andamento {% elif project.status == 'aguardando' %}Aguardando {% elif project.status == 'concluido' %}Concluído {% elif project.status == 'cancelado' %}Cancelado {% elif project.status == 'pausado' %}Pausado {% endif %}
Prioridade
{% if project.priority == 'urgente' %}Urgente {% elif project.priority == 'alta' %}Alta {% elif project.priority == 'normal' %}Normal {% else %}Baixa {% endif %}
Prazo
{{ project.deadline.strftime('%d/%m/%Y') if project.deadline else '—' }}
Responsável
{{ project.responsible.name if project.responsible else '—' }}
Tipo
{{ project.service_type or '—' }}
{% if project.objective or project.context or project.execution_rules %}
Contexto do Projeto
{% if project.objective %}
Objetivo
{{ project.objective }}
{% endif %} {% if project.context %}
Contexto
{{ project.context }}
{% endif %} {% if project.execution_rules %}
Regras de Execução
{{ project.execution_rules }}
{% endif %} {% if project.internal_notes and current_user.is_admin() %}
⚠ Observações Internas (Admin)
{{ project.internal_notes }}
{% endif %}
{% endif %}
Arquivos ({{ files|length }})
PDF, DOCX, TXT, PNG, JPG, WEBP · Máx 20MB
{% if files %}
{% for f in files %}
{{ f.file_type }} {{ f.original_name }} {{ (f.size_bytes / 1024)|round(0)|int }}KB {% if current_user.is_admin() %}
{% endif %}
{% endfor %}
{% else %}
Nenhum arquivo anexado.
{% endif %}
Tarefas
{{ tasks_open|length }} pendente{{ 's' if tasks_open|length != 1 }} · {{ tasks_done|length }} concluída{{ 's' if tasks_done|length != 1 }}
{% if tasks_open %}
Pendentes
{% for task in tasks_open %}
{{ task.title }}
{% endfor %}
{% endif %} {% if tasks_done %}
Concluídas
{% for task in tasks_done %}
{{ task.title }}
{% endfor %}
{% endif %} {% if not tasks_open and not tasks_done %}
Nenhuma tarefa ainda.
{% endif %}
{% endblock %}