Skip to content

Commit baa259f

Browse files
committed
Remove receive-csv routes
These routes and associated controller/views were used to enable CSV attachments for submissions emails prior to us also adding the ability to enable JSON attachments. They are now unused so can be removed.
1 parent 7416367 commit baa259f

8 files changed

Lines changed: 0 additions & 479 deletions

File tree

app/controllers/forms/receive_csv_controller.rb

Lines changed: 0 additions & 35 deletions
This file was deleted.

app/input_objects/forms/submission_type_input.rb

Lines changed: 0 additions & 39 deletions
This file was deleted.

app/views/forms/receive_csv/new.html.erb

Lines changed: 0 additions & 24 deletions
This file was deleted.

config/locales/en.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ en:
225225
payment_link_saved: Your payment link has been saved
226226
privacy_details_saved: Your privacy information link has been saved
227227
receive_csv_and_json_enabled: Completed form emails will include a CSV and a JSON file
228-
receive_csv_disabled: Completed form emails will not include a CSV file
229228
receive_csv_enabled: Completed form emails will include a CSV file
230229
receive_json_enabled: Completed form emails will include a JSON file
231230
receive_no_attachments: Completed form emails will not include a CSV or JSON file
@@ -381,16 +380,6 @@ en:
381380
title_create: Create a form
382381
title_edit: Edit your form
383382
your_questions: Your questions
384-
receive_csv:
385-
new:
386-
body_html: |
387-
<p>When a form is completed, the answers provided will be sent in the body of an email to the email address you set up.</p>
388-
389-
<p>If you wish, you can also get the answers in a comma-separated values (CSV) file. A CSV lists all the answers in plain text, separated by commas. It can be easier to copy and paste, or import into spreadsheets or other applications.</p>
390-
391-
<p>If you select this option, a CSV file will be attached to each completed form email.</p>
392-
submit: Save and continue
393-
title: Get completed forms as CSV files
394383
submission_attachments:
395384
new:
396385
body_html: |

config/routes.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@
6060
post "/declaration" => "forms/declaration#create", as: :declaration_create
6161
get "/payment-link" => "forms/payment_link#new", as: :payment_link
6262
post "/payment-link" => "forms/payment_link#create", as: :payment_link_create
63-
get "/receive-csv" => "forms/receive_csv#new", as: :receive_csv
64-
post "/receive-csv" => "forms/receive_csv#create", as: :receive_csv_create
6563
get "/share-preview" => "forms/share_preview#new", as: :share_preview
6664
post "/share-preview" => "forms/share_preview#create", as: :share_preview_create
6765
get "/welsh-translation" => "forms/welsh_translation#new", as: :welsh_translation

spec/input_objects/forms/submission_type_input_spec.rb

Lines changed: 0 additions & 202 deletions
This file was deleted.

0 commit comments

Comments
 (0)