diff --git a/app/views/public/amendments/new.html.erb b/app/views/public/amendments/new.html.erb
index 9a1ffa7..24b31c3 100644
--- a/app/views/public/amendments/new.html.erb
+++ b/app/views/public/amendments/new.html.erb
@@ -1,3 +1,9 @@
+
+
+
<%= errors_summary_for @release %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 407e858..b2693cb 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1037,6 +1037,7 @@ en:
new:
amendment:
heading: Amendment
+ copy_url: Copy sign amendment URL
signature:
heading: Signature
appearance_releases:
diff --git a/config/locales/es.yml b/config/locales/es.yml
index b59e363..af10d76 100644
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -397,6 +397,7 @@ es:
new:
amendment:
heading: Amendment
+ copy_url: Copy sign amendment URL (ES)
signature:
heading: Signature (ES)
appearance_releases:
diff --git a/spec/features/user_managing_location_releases_spec.rb b/spec/features/user_managing_location_releases_spec.rb
index 124a1ca..1afa908 100644
--- a/spec/features/user_managing_location_releases_spec.rb
+++ b/spec/features/user_managing_location_releases_spec.rb
@@ -110,6 +110,15 @@ feature "User managing location releases" do
expect(page).not_to have_content signed_successfully_message
expect(page).to have_content already_signed_message
end
+
+ scenario "amendment signing form has copy URL button" do
+ contract_template = create(:location_release_contract_template, :with_amendment_clause, project: project)
+ release = create(:location_release, contract_template: contract_template, project: project)
+
+ visit new_account_project_contract_template_location_release_amendment_path(project.account, project, contract_template, release)
+
+ expect(page).to have_content copy_url_button
+ end
end
context "when signed in" do
@@ -281,6 +290,15 @@ feature "User managing location releases" do
expect(page).to have_css('i.fa.fa-square-o', count: 1)
expect(page).to have_css('i.fa.fa-check-square-o', count: 1)
end
+
+ scenario "amendment signing form has copy URL button when user is signed in", js: true do
+ contract_template = create(:location_release_contract_template, :with_amendment_clause, project: project)
+ release = create(:location_release, contract_template: contract_template, project: project)
+
+ visit new_account_project_contract_template_location_release_amendment_path(project.account, project, contract_template, release)
+
+ expect(page).to have_content copy_url_button
+ end
end
scenario "viewing the contract PDF" do
@@ -664,4 +682,8 @@ feature "User managing location releases" do
def sign_amendment_link
t 'location_releases.location_release.actions.sign_amendment'
end
+
+ def copy_url_button
+ t 'public.amendments.new.copy_url'
+ end
end