diff --git a/README.md b/README.md index 757e35b..ab70909 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,8 @@ Available hooks: |Type|Hook|Note |--|--|--| +View Hook|:customer_actions_top, { customer: @customer }| Used to add action links to customer view +View Hook|:customer_actions_bottom, { customer: @customer} | Used to add action links to customer view View Hook|:pdf_left, { issue: issue } | Used to add text to left side of PDF View Hook|:pdf_right, { issue: issue } | Used to add text to right side of PDF View Hook|:show_customer_view_right, { customer: customer } | Used to show partials on right side of customer view diff --git a/app/views/customers/_actions.html.erb b/app/views/customers/_actions.html.erb index 2e3bd42..bf9ed64 100644 --- a/app/views/customers/_actions.html.erb +++ b/app/views/customers/_actions.html.erb @@ -1,7 +1,4 @@ -<%= 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}%3Cbr/%3E+&dates=#{Time.now.strftime("%Y%m%d")}T090000/#{Time.now.strftime("%Y%m%d")}T170000", target: :_blank, id: :appointment_link %> - -
-
+<%= call_hook :customer_actions_top, { customer: @customer } %> <%= link_to t(:label_create_estimate), "https://qbo.intuit.com/app/estimate?nameId=#{@customer.id}", target: :_blank %> @@ -13,4 +10,6 @@

+<%= call_hook :customer_actions_bottom, { customer: @customer } %> + <%= button_to t(:label_edit_customer), edit_customer_path(@customer), method: :get%>