From 90c8b54e1d2f8859c02f8ba68797d41165b04d15 Mon Sep 17 00:00:00 2001 From: starswan Date: Wed, 22 Jan 2025 16:19:49 +0000 Subject: [PATCH] add existing baptism cerificate if present on baptis cert upload form --- app/views/jobseekers/job_applications/build/catholic.html.slim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/jobseekers/job_applications/build/catholic.html.slim b/app/views/jobseekers/job_applications/build/catholic.html.slim index 00c11a0651..d991c8e06b 100644 --- a/app/views/jobseekers/job_applications/build/catholic.html.slim +++ b/app/views/jobseekers/job_applications/build/catholic.html.slim @@ -31,6 +31,9 @@ = f.govuk_text_field :religious_referee_email = f.govuk_text_field :religious_referee_phone = f.govuk_radio_button :religious_reference_type, :baptism_certificate do + - if f.object.baptism_certificate.attached? + p.govuk-body + = govuk_link_to("#{f.object.baptism_certificate.filename} (#{number_to_human_size(f.object.baptism_certificate.byte_size)})", f.object.baptism_certificate, download: "true") = f.govuk_file_field :baptism_certificate, label: { size: "s" }, accept: BaseForm::VALID_DOCUMENT_TYPES.map(&:downcase).join(",")