mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix button labels on terms of service
This commit is contained in:
@@ -14,6 +14,6 @@
|
||||
= t(".using_default_terms_html", tos_link: link_to_platform_terms)
|
||||
|
||||
= form_for [main_app, :admin, @new_file] do |f|
|
||||
= f.label :attachment
|
||||
= f.label :attachment, t(".attachment")
|
||||
= f.file_field :attachment
|
||||
= f.submit
|
||||
= f.submit t(".create_terms_of_service")
|
||||
|
||||
@@ -542,6 +542,8 @@ en:
|
||||
terms_of_service: "Terms of Service"
|
||||
delete: "Delete file"
|
||||
confirm_delete: "Are you sure you want to delete the current Terms of Service file?"
|
||||
attachment: "Attachment"
|
||||
create_terms_of_service: "Create Terms of service file"
|
||||
number_localization:
|
||||
number_localization_settings: "Number Localization Settings"
|
||||
enable_localized_number: "Use the international thousand/decimal separator logic"
|
||||
|
||||
@@ -34,7 +34,8 @@ describe "Terms of Service files" do
|
||||
|
||||
it "can delete the current file", js: true do
|
||||
attachment = File.open(Rails.root.join(test_file_path))
|
||||
TermsOfServiceFile.create!(attachment: attachment)
|
||||
file = Rack::Test::UploadedFile.new(attachment, "application/pdf")
|
||||
TermsOfServiceFile.create!(attachment: file)
|
||||
|
||||
visit admin_terms_of_service_files_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user