diff --git a/templates/dashboard.html b/templates/dashboard.html index 5ccc811..95253ad 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -5,38 +5,183 @@
| Project ID | +Project Name | +Client Name | +Project Type | +Phase Name | +Phase Date | +Created Date | +Last Activity | Project Email | -Matter Description | -Number | -Incident Date | -Name | -Link | +Project URL | +Defendant Name | +Defendant Type | +Defendant Role | +Defendant Email | +Defendant Phone | +Defendant Address | +Property Manager Name | +Property Manager Type | +Property Manager Role | +Property Manager Email | +Property Manager Phone | +Property Manager Address | +Attorney Name | +Attorney Type | +Attorney Role | +Attorney Email | +Attorney Phone | +Attorney Address |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ r.client or '—' }} | -{{ r.matter_description or '—' }} | -
-
|
- {{ r.Number or '—' }} | -{{ (r.IncidentDate or '')[:10] }} | +{{ r.ProjectId or '—' }} | {{ r.ProjectName or '—' }} | +{{ r.client or '—' }} | +{{ r.projectTypeCode or '—' }} | +{{ r.phaseName or '—' }} | +{{ (r.phaseDate or '')[:10] }} | +{{ (r.createdDate or '')[:10] }} | +{{ (r.lastActivity or '')[:10] }} | +{{ r.ProjectEmailAddress or '—' }} | {% if r.projectUrl %} Open {% else %}—{% endif %} | ++ {% for c in r.contacts %} + {% if 'Defendant' in (c.roles or []) %} + {{ c.orgContact.firstName }} {{ c.orgContact.lastName }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Defendant' in (c.roles or []) %} + {{ (c.orgContact.personTypes or ['—']) | join(', ') }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Defendant' in (c.roles or []) %} + {{ (c.roles or ['—']) | join(', ') }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Defendant' in (c.roles or []) and c.orgContact.emails %} + {{ c.orgContact.emails[0].address }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Defendant' in (c.roles or []) and c.orgContact.phones %} + {{ c.orgContact.phones[0].number }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Defendant' in (c.roles or []) and c.orgContact.addresses %} + {{ c.orgContact.addresses[0].fullAddress }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Property Manager' in (c.roles or []) %} + {{ c.orgContact.firstName }} {{ c.orgContact.lastName }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Property Manager' in (c.roles or []) %} + {{ (c.orgContact.personTypes or ['—']) | join(', ') }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Property Manager' in (c.roles or []) %} + {{ (c.roles or ['—']) | join(', ') }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Property Manager' in (c.roles or []) and c.orgContact.emails %} + {{ c.orgContact.emails[0].address }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Property Manager' in (c.roles or []) and c.orgContact.phones %} + {{ c.orgContact.phones[0].number }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Property Manager' in (c.roles or []) and c.orgContact.addresses %} + {{ c.orgContact.addresses[0].fullAddress }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Attorney' in (c.roles or []) %} + {{ c.orgContact.firstName }} {{ c.orgContact.lastName }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Attorney' in (c.roles or []) %} + {{ (c.orgContact.personTypes or ['—']) | join(', ') }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Attorney' in (c.roles or []) %} + {{ (c.roles or ['—']) | join(', ') }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Attorney' in (c.roles or []) and c.orgContact.emails %} + {{ c.orgContact.emails[0].address }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Attorney' in (c.roles or []) and c.orgContact.phones %} + {{ c.orgContact.phones[0].number }} + {% endif %} + {% endfor %} + | ++ {% for c in r.contacts %} + {% if 'Attorney' in (c.roles or []) and c.orgContact.addresses %} + {{ c.orgContact.addresses[0].fullAddress }} + {% endif %} + {% endfor %} + |
| No matching projects found. | +No matching projects found. | |||||||||||||||||||||||||||||||