From 062e81fed3bf981c325e3c54352ab25b7af86423 Mon Sep 17 00:00:00 2001 From: Bilal Date: Wed, 15 Jul 2020 11:36:52 +0200 Subject: [PATCH] update label --- app/views/contracts/_for_office_use_only.erb | 2 +- config/locales/en.yml | 2 +- config/locales/es.yml | 2 +- db/structure.sql | 14 -------------- .../user_managing_medical_releases_spec.rb | 8 ++++---- 5 files changed, 7 insertions(+), 21 deletions(-) diff --git a/app/views/contracts/_for_office_use_only.erb b/app/views/contracts/_for_office_use_only.erb index 15abd19..26b8629 100644 --- a/app/views/contracts/_for_office_use_only.erb +++ b/app/views/contracts/_for_office_use_only.erb @@ -7,7 +7,7 @@
<%= description_list_pair t('.description_labels.producer'), releasable.project.account.name %> <%= description_list_pair t('.description_labels.production'), releasable.project.name %> - <%= description_list_pair t('.description_labels.employee_issued_to'), releasable.name %> + <%= description_list_pair t('.description_labels.issued_to'), releasable.name %> <%= description_list_pair t('.description_labels.issued_by'), releasable.approved_by_user_name %> <%= description_list_pair t('.description_labels.date_issued'), releasable.approved_at %>
\ No newline at end of file diff --git a/config/locales/en.yml b/config/locales/en.yml index 54ae14f..86cf5c1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -306,8 +306,8 @@ en: for_office_use_only: description_labels: date_issued: Date Issued - employee_issued_to: Employee Issued To issued_by: Issued By + issued_to: Issued To producer: Producer production: Production heading: For Office Use Only diff --git a/config/locales/es.yml b/config/locales/es.yml index 1bae211..4f982f4 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -138,8 +138,8 @@ es: for_office_use_only: description_labels: date_issued: Date Issued (ES) - employee_issued_to: Employee Issued To (ES) issued_by: Issued By (ES) + issued_to: Issued To (ES) producer: Producer (ES) production: Production (ES) heading: For Office Use Only (ES) diff --git a/db/structure.sql b/db/structure.sql index ba4ce52..e30e5ed 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -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: - -- diff --git a/spec/features/user_managing_medical_releases_spec.rb b/spec/features/user_managing_medical_releases_spec.rb index 198497e..22887d2 100644 --- a/spec/features/user_managing_medical_releases_spec.rb +++ b/spec/features/user_managing_medical_releases_spec.rb @@ -260,7 +260,7 @@ feature "User managing medical releases" do expect(pdf_body).to have_content for_office_use_only.upcase expect(pdf_body).to have_content producer_label expect(pdf_body).to have_content production_label - expect(pdf_body).to have_content employee_issued_to_label + expect(pdf_body).to have_content issued_to_label expect(pdf_body).to have_content issued_by_label expect(pdf_body).to have_content date_issued expect(pdf_body).to have_content 'Big Joe' @@ -282,7 +282,7 @@ feature "User managing medical releases" do expect(pdf_body).not_to have_content for_office_use_only.upcase expect(pdf_body).not_to have_content producer_label expect(pdf_body).not_to have_content production_label - expect(pdf_body).not_to have_content employee_issued_to_label + expect(pdf_body).not_to have_content issued_to_label expect(pdf_body).not_to have_content issued_by_label expect(pdf_body).not_to have_content date_issued expect(pdf_body).not_to have_content 'Big Joe' @@ -580,8 +580,8 @@ feature "User managing medical releases" do t 'contracts.for_office_use_only.description_labels.production' end - def employee_issued_to_label - t 'contracts.for_office_use_only.description_labels.employee_issued_to' + def issued_to_label + t 'contracts.for_office_use_only.description_labels.issued_to' end def issued_by_label