Skip to content

Commit

Permalink
add existing baptism cerificate if present on baptis cert upload form
Browse files Browse the repository at this point in the history
  • Loading branch information
starswan committed Jan 22, 2025
1 parent 0da306e commit 90c8b54
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(",")
Expand Down

0 comments on commit 90c8b54

Please sign in to comment.