From f1bdf59697e1f668682239042d14d0bbca3c098a Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 30 Jan 2026 23:05:23 -0500 Subject: [PATCH] Add customer details translation and fix link in appointment action --- app/views/customers/_actions.html.erb | 2 +- config/locales/en.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/customers/_actions.html.erb b/app/views/customers/_actions.html.erb index 63a4643..a0cbc3b 100644 --- a/app/views/customers/_actions.html.erb +++ b/app/views/customers/_actions.html.erb @@ -1,4 +1,4 @@ -<%= link_to t(:label_appointment), "https://calendar.google.com/calendar/render?action=TEMPLATE&text=#{@customer.name}+-&details=#{ link_to "Customer Details", "https://#{Setting.host_name}#{customer_path @customer.id}"}%0A#{@customer.primary_phone}&dates=#{Time.now.strftime("%Y%m%d")}T090000/#{Time.now.strftime("%Y%m%d")}T170000", target: :_blank %> +<%= link_to t(:label_appointment), "https://calendar.google.com/calendar/render?action=TEMPLATE&text=#{@customer.name}+-&details=#{ link_to t(:customer_details), "https://#{Setting.host_name}#{customer_path @customer.id}"}%0A#{@customer.primary_phone}&dates=#{Time.now.strftime("%Y%m%d")}T090000/#{Time.now.strftime("%Y%m%d")}T170000", target: :_blank %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 14d9116..64308da 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -98,4 +98,5 @@ en: notice_invoice_updated: "Invoice updated in Quickbooks" notice_invoice_not_found: "Invoice not found" notice_forbidden: "You do not have permission to access this resource" - notice_issue_not_found: "Issue not found" \ No newline at end of file + notice_issue_not_found: "Issue not found" + customer_details: "Customer Details" \ No newline at end of file