Add vehicle appointment hook and localization for 'Add Vehicle' label

This commit is contained in:
ricky committed 2026-08-10 19:04:58 -04:00
1 parent 7158a8b02c
commit a9d0eafa40
4 files changed
+39

No files matched your search

@@ -0,0 +1,9 @@
<% if appointment.customer.present? %>
<% unless appointment.vehicle.present? &&%>
<p>
<%= link_to new_vehicle_path(customer_id: appointment.customer_id), class: 'icon icon-add' do %>
<%= l(:label_add_vehicle) %>
<% end %>
</p>
<% end %>
<% end %>