{% set status_map = { 'Draft': 'draft', 'Sent to Contractor': 'sent', 'Priced': 'priced', 'Sent to Client': 'client', 'Approved': 'approved' } %} {% set status = report.workflow_status or report.status or 'Draft' %} {% set status_class = status_map.get(status, 'draft') %}