diff --git a/app/views/shared/_claim_defendant_details.html.haml b/app/views/shared/_claim_defendant_details.html.haml index cc7a5ad1e7..29b1a381e3 100644 --- a/app/views/shared/_claim_defendant_details.html.haml +++ b/app/views/shared/_claim_defendant_details.html.haml @@ -18,12 +18,12 @@ = govuk_table_thead_collection [t('.date'), t('external_users.claims.defendants.representation_order_fields.maat_reference_number')] - = govuk_table_tbody do - - defendant.representation_orders.each do | representation_order | - = govuk_table_row do - = govuk_table_td('data-label': t('.date')) do - = representation_order.representation_order_date.strftime(Settings.date_format) rescue '' - = govuk_table_td('data-label': t('external_users.claims.defendants.representation_order_fields.maat_reference_number')) do - = representation_order.maat_reference + = govuk_table_tbody do + - defendant.representation_orders.each do | representation_order | + = govuk_table_row do + = govuk_table_td('data-label': t('.date')) do + = representation_order.representation_order_date.strftime(Settings.date_format) rescue '' + = govuk_table_td('data-label': t('external_users.claims.defendants.representation_order_fields.maat_reference_number')) do + = representation_order.maat_reference - else = govuk_inset_text(t('.no_reporder'))