From c7cd6a01175bf97d922cf9d878761e18f683fcf3 Mon Sep 17 00:00:00 2001 From: Bryce Date: Fri, 31 Oct 2025 13:51:18 -0700 Subject: [PATCH] more design --- templates/dashboard.html | 179 +++++++++++++++++++++++++++++++++++---- 1 file changed, 162 insertions(+), 17 deletions(-) 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 @@ + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + {% for r in rows %} - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + {% else %} - + {% endfor %}
Project IDProject NameClient NameProject TypePhase NamePhase DateCreated DateLast Activity Project EmailMatter DescriptionNumberIncident DateNameLinkProject URLDefendant NameDefendant TypeDefendant RoleDefendant EmailDefendant PhoneDefendant AddressProperty Manager NameProperty Manager TypeProperty Manager RoleProperty Manager EmailProperty Manager PhoneProperty Manager AddressAttorney NameAttorney TypeAttorney RoleAttorney EmailAttorney PhoneAttorney Address
{{ r.client or '—' }}{{ r.matter_description or '—' }} -
    - {% for c in r.contacts %} -
  • {{ c.orgContact.firstName }}
  • - {% endfor %} -
-
{{ 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.