diff --git a/app/main/views/organizations.py b/app/main/views/organizations.py index 01cdf498f..dc41474d0 100644 --- a/app/main/views/organizations.py +++ b/app/main/views/organizations.py @@ -115,6 +115,7 @@ def organization_dashboard(org_id): return render_template( "views/organizations/organization/index.html", selected_year=year, + services=current_organization.services, **message_allowance, **service_counts, ) diff --git a/app/templates/views/organizations/organization/index.html b/app/templates/views/organizations/organization/index.html index 88a2d2433..080e12d0b 100644 --- a/app/templates/views/organizations/organization/index.html +++ b/app/templates/views/organizations/organization/index.html @@ -73,4 +73,47 @@ + +
| Name | +Status | +Usage | +Primary Contact | +Recent Template Used | +Created | +
|---|---|---|---|---|---|
| {{ service.name }} | ++ {% if not service.active %} + Suspended + {% elif service.restricted %} + Trial + {% else %} + Live + {% endif %} + | +{{ service.usage|default('N/A') }} | +{{ service.primary_contact|default('N/A') }} | +{{ service.recent_template|default('N/A') }} | +{{ service.created_at.strftime('%b %d, %Y') if service.created_at else 'N/A' }} | +