diff --git a/app/views/customers/_details.html.erb b/app/views/customers/_details.html.erb index abee3aa..13963ba 100644 --- a/app/views/customers/_details.html.erb +++ b/app/views/customers/_details.html.erb @@ -44,6 +44,8 @@
<%= button_to t(:label_edit_customer), edit_customer_path(customer), method: :get%> + + <%= 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 %>


diff --git a/config/locales/en.yml b/config/locales/en.yml index d998aff..8b872ed 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -89,4 +89,5 @@ en: label_hours: "Hours" label_oauth2_refresh_token_expires_at: "Refresh Token Expires At" label_name: "Name" + label_appointment: "Add Appointment" \ No newline at end of file