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

This commit is contained in:
2026-08-10 19:04:58 -04:00
parent 7158a8b02c
commit a9d0eafa40
4 changed files with 39 additions and 0 deletions
@@ -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 %>