add contract preview to the amendment signing form
This commit is contained in:
@@ -8,8 +8,8 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<%= errors_summary_for @release %>
|
<%= errors_summary_for @release %>
|
||||||
<%= bootstrap_form_with model: @release, method: :post, url: public_send("account_project_contract_template_#{@contract_template.release_type}_release_amendments_path"), local: true do |form| %>
|
<%= bootstrap_form_with model: @release, method: :post, url: public_send("account_project_contract_template_#{@contract_template.release_type}_release_amendments_path"), local: true do |form| %>
|
||||||
<%= card_field_set_tag t(".body_clause.heading") do %>
|
<%= card_field_set_tag t('.signed_contract_preview') do %>
|
||||||
<p><%= @contract_template.body %></p>
|
<embed class="embeded-contract-preview" type="application/pdf" src="<%= url_for([@release, :contracts, format: "pdf"]) %>" width="80%" height="1200" />
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= card_field_set_tag t(".amendment.heading") do %>
|
<%= card_field_set_tag t(".amendment.heading") do %>
|
||||||
|
|||||||
@@ -1138,8 +1138,7 @@ en:
|
|||||||
copy_url: Copy sign amendment URL
|
copy_url: Copy sign amendment URL
|
||||||
signature:
|
signature:
|
||||||
heading: Signature
|
heading: Signature
|
||||||
body_clause:
|
signed_contract_preview: Signed Contract Preview
|
||||||
heading: Legal
|
|
||||||
appearance_releases:
|
appearance_releases:
|
||||||
create:
|
create:
|
||||||
notice: Your release has been signed. Thank you!
|
notice: Your release has been signed. Thank you!
|
||||||
|
|||||||
@@ -504,8 +504,7 @@ es:
|
|||||||
copy_url: Copy sign amendment URL (ES)
|
copy_url: Copy sign amendment URL (ES)
|
||||||
signature:
|
signature:
|
||||||
heading: Signature (ES)
|
heading: Signature (ES)
|
||||||
body_clause:
|
signed_contract_preview: Signed Contract Preview (ES)
|
||||||
heading: Legal (ES)
|
|
||||||
appearance_releases:
|
appearance_releases:
|
||||||
create:
|
create:
|
||||||
notice: La autorización está firmada. ¡Gracias!
|
notice: La autorización está firmada. ¡Gracias!
|
||||||
|
|||||||
@@ -251,10 +251,9 @@ feature "User managing location releases" do
|
|||||||
new_window = window_opened_by { click_link sign_amendment_link }
|
new_window = window_opened_by { click_link sign_amendment_link }
|
||||||
within_window new_window do
|
within_window new_window do
|
||||||
expect(page).to have_content amendments_heading
|
expect(page).to have_content amendments_heading
|
||||||
expect(page).to have_content body_clause_heading
|
expect(page).to have_content signed_contract_preview.upcase
|
||||||
|
|
||||||
expect(page).to have_content contract_template.body.to_plain_text
|
expect(page).to have_selector 'embed'
|
||||||
expect(page).to have_content contract_template.amendment_clause.to_plain_text
|
|
||||||
|
|
||||||
fill_in amendment_signer_name_field, with: 'Big Signer'
|
fill_in amendment_signer_name_field, with: 'Big Signer'
|
||||||
draw_signature file_fixture("signature.png"), amendment_signature_field
|
draw_signature file_fixture("signature.png"), amendment_signature_field
|
||||||
@@ -694,8 +693,8 @@ feature "User managing location releases" do
|
|||||||
t 'public.amendments.new.amendment.heading'
|
t 'public.amendments.new.amendment.heading'
|
||||||
end
|
end
|
||||||
|
|
||||||
def body_clause_heading
|
def signed_contract_preview
|
||||||
t 'public.amendments.new.body_clause.heading'
|
t 'public.amendments.new.signed_contract_preview'
|
||||||
end
|
end
|
||||||
|
|
||||||
def amendment_signer_name_field
|
def amendment_signer_name_field
|
||||||
|
|||||||
Reference in New Issue
Block a user