{% extends "base.html" %} {% block content %}

{{ item.name }}

Edit
{{ item.status|replace('_', ' ') }} P{{ item.priority }} {% if item.target_date %}Target: {{ item.target_date }}{% endif %}
{{ done_count }}/{{ task_count }} tasks complete ({{ progress }}%)
{% if item.description %}
{{ item.description }}
{% endif %}
Tasks ({{ tasks|length }}) Notes{% if counts.notes %} ({{ counts.notes }}){% endif %} Links{% if counts.links %} ({{ counts.links }}){% endif %} Files{% if counts.files %} ({{ counts.files }}){% endif %} Lists{% if counts.lists %} ({{ counts.lists }}){% endif %} Decisions{% if counts.decisions %} ({{ counts.decisions }}){% endif %} Processes Contacts{% if counts.contacts %} ({{ counts.contacts }}){% endif %}
{% if tab == 'tasks' %}
+ Full Task Form {% for t in tasks %}
{{ t.title }} {% if t.due_date %}{{ t.due_date }}{% endif %} {{ t.status|replace('_', ' ') }}
Edit
{% else %}
No tasks yet
{% endfor %} {% elif tab == 'notes' %} + New Note {% for n in notes %}
{{ n.title }} {{ n.updated_at.strftime('%Y-%m-%d') if n.updated_at else '' }}
{% else %}
No notes yet
{% endfor %} {% elif tab == 'links' %} + New Link {% for l in links %}
{{ l.label }} {{ l.url[:50] }}{% if l.url|length > 50 %}...{% endif %}
Edit
{% else %}
No links yet
{% endfor %} {% elif tab == 'files' %} + Upload File {% for f in tab_data %}
{{ f.original_filename }} {{ f.created_at.strftime('%Y-%m-%d') if f.created_at else '' }}
{% else %}
No files attached to this project
{% endfor %} {% elif tab == 'lists' %} + New List {% for l in tab_data %}
{{ l.name }} {{ l.item_count }} items
{% else %}
No lists linked to this project
{% endfor %} {% elif tab == 'decisions' %} + New Decision {% for d in tab_data %}
{{ d.title }} {{ d.status }}
{% else %}
No decisions linked to this project
{% endfor %} {% elif tab == 'processes' %}
Process management coming soon
{% elif tab == 'contacts' %}
{% for c in tab_data %}
{{ c.first_name }} {{ c.last_name or '' }} {% if c.role %}{{ c.role }}{% endif %} {{ c.linked_at.strftime('%Y-%m-%d') if c.linked_at else '' }}
{% else %}
No contacts linked to this project
{% endfor %} {% endif %} {% endblock %}