From d1f6ccd9cbfbf81bf515a1092ea9c7bfc9cb7fb3 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 26 Aug 2024 07:51:38 -0400 Subject: [PATCH] Create _actions.html.erb --- app/views/customers/_actions.html.erb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/views/customers/_actions.html.erb diff --git a/app/views/customers/_actions.html.erb b/app/views/customers/_actions.html.erb new file mode 100644 index 0000000..d9074d3 --- /dev/null +++ b/app/views/customers/_actions.html.erb @@ -0,0 +1,5 @@ +<%= link_to t(:label_appointment), "https://calendar.google.com/calendar/render?action=TEMPLATE&text=#{@customer.name}+-&details=#{@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://qbo.intuit.com/app/estimate?nameId=#{@customer.id}", target: :_blank %> + +<%= button_to t(:label_edit_customer), edit_customer_path(@customer), method: :get%>