From: Anton Khorev Date: Fri, 17 Jan 2025 15:09:47 +0000 (+0300) Subject: Add confirm button to pd declaration page X-Git-Tag: live~176^2~6 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0f51052e86db1e2d219633dd2c7260588257404d Add confirm button to pd declaration page --- diff --git a/app/views/accounts/pd_declarations/show.html.erb b/app/views/accounts/pd_declarations/show.html.erb index 7832184dc..ad314feaa 100644 --- a/app/views/accounts/pd_declarations/show.html.erb +++ b/app/views/accounts/pd_declarations/show.html.erb @@ -10,4 +10,5 @@ :checked => current_user.consider_pd, :disabled => current_user.consider_pd %> <% end %> + <%= f.primary t(".confirm"), :disabled => current_user.consider_pd %> <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index bfdf1c64f..83e399fb6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -330,6 +330,7 @@ en: consider_pd: "I consider my contributions to be in the Public Domain" consider_pd_why: "Why would I want my contributions to be Public Domain?" consider_pd_why_url: https://osmfoundation.org/wiki/Licence_and_Legal_FAQ/Why_would_I_want_my_contributions_to_be_public_domain + confirm: Confirm browse: deleted_ago_by_html: "Deleted %{time_ago} by %{user}" edited_ago_by_html: "Edited %{time_ago} by %{user}" diff --git a/test/system/account_pd_declaration_test.rb b/test/system/account_pd_declaration_test.rb index 9471c28c1..22867c795 100644 --- a/test/system/account_pd_declaration_test.rb +++ b/test/system/account_pd_declaration_test.rb @@ -11,6 +11,7 @@ class AccountPdDeclarationTest < ApplicationSystemTestCase within_content_body do assert_unchecked_field "I consider my contributions to be in the Public Domain" + assert_button "Confirm" end end @@ -21,6 +22,7 @@ class AccountPdDeclarationTest < ApplicationSystemTestCase within_content_body do assert_checked_field "I consider my contributions to be in the Public Domain", :disabled => true + assert_button "Confirm", :disabled => true end end end