add main legal language to the amendment signing page

This commit is contained in:
Bilal
2020-07-29 09:47:44 +02:00
parent 9cbd8d31a8
commit 3c16effbe1
5 changed files with 19 additions and 14 deletions

View File

@@ -8,6 +8,10 @@
<div class="card-body">
<%= 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| %>
<%= card_field_set_tag t(".body_clause.heading") do %>
<p><%= @contract_template.body %></p>
<% end %>
<%= card_field_set_tag t(".amendment.heading") do %>
<p><%= @contract_template.amendment_clause %></p>
<% end %>

View File

@@ -1138,6 +1138,8 @@ en:
copy_url: Copy sign amendment URL
signature:
heading: Signature
body_clause:
heading: Legal
appearance_releases:
create:
notice: Your release has been signed. Thank you!

View File

@@ -504,6 +504,8 @@ es:
copy_url: Copy sign amendment URL (ES)
signature:
heading: Signature (ES)
body_clause:
heading: Legal (ES)
appearance_releases:
create:
notice: La autorización está firmada. ¡Gracias!

View File

@@ -9,20 +9,6 @@ SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
--
-- Name: fuzzystrmatch; Type: EXTENSION; Schema: -; Owner: -
--
@@ -1475,6 +1461,7 @@ CREATE TABLE public.settings (
--
CREATE SEQUENCE public.settings_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
@@ -1510,6 +1497,7 @@ CREATE TABLE public.taggings (
--
CREATE SEQUENCE public.taggings_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
@@ -1540,6 +1528,7 @@ CREATE TABLE public.tags (
--
CREATE SEQUENCE public.tags_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE

View File

@@ -251,6 +251,10 @@ feature "User managing location releases" do
new_window = window_opened_by { click_link sign_amendment_link }
within_window new_window do
expect(page).to have_content amendments_heading
expect(page).to have_content body_clause_heading
expect(page).to have_content contract_template.body.to_plain_text
expect(page).to have_content contract_template.amendment_clause.to_plain_text
fill_in amendment_signer_name_field, with: 'Big Signer'
draw_signature file_fixture("signature.png"), amendment_signature_field
@@ -690,6 +694,10 @@ feature "User managing location releases" do
t 'public.amendments.new.amendment.heading'
end
def body_clause_heading
t 'public.amendments.new.body_clause.heading'
end
def amendment_signer_name_field
'location_release[amendment_signer_name]'
end