]> git.openstreetmap.org Git - rails.git/commitdiff
Add confirm button to pd declaration page
authorAnton Khorev <tony29@yandex.ru>
Fri, 17 Jan 2025 15:09:47 +0000 (18:09 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sat, 18 Jan 2025 16:16:17 +0000 (19:16 +0300)
app/views/accounts/pd_declarations/show.html.erb
config/locales/en.yml
test/system/account_pd_declaration_test.rb

index 7832184dc9714b06a37b02734cdcd589219b5f74..ad314feaaeb979d9348c9940db1a4393c74c22f0 100644 (file)
@@ -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 %>
index bfdf1c64f78023b49851086217cf619ef118bf57..83e399fb6709131173543b89307bde3eccc5109b 100644 (file)
@@ -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}"
index 9471c28c16af02cc3c36ee08a06bcdf536590b78..22867c795198fd5718895bb7ff602eddd9adf397 100644 (file)
@@ -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