def call
render AppCardComponent.new do |card|
card.with_heading(level: 2) { "Consent response" }
govuk_summary_list do |summary_list|
summary_list.with_row do |row|
row.with_key { "Programmes" }
row.with_value { render AppProgrammeTagsComponent.new(programmes) }
end
summary_list.with_row do |row|
row.with_key { "Decision" }
row.with_value do
render AppTimestampedEntryComponent.new(
text: @consent_form.summary_with_route,
timestamp: @consent_form.recorded_at
)
end
end
if show_refusal_row?
summary_list.with_row do |row|
row.with_key { "Refusal reason" }
row.with_value { refusal_reason_details }
end
end
end
end
end