Vehicle pages: Customers » customer » vehicle trail, actions under it

The vehicle, edit and new vehicle pages' titles are a trail through the vehicle's customer (Vehicles »
vehicle when it has none), and the vehicle page's actions sit under the title like the customer page's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-01 17:47:25 -05:00
1 parent d842b9b724
commit 23f4a25070
4 files changed
+17 -5

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
<h2><%= link_to l(:field_vehicles), vehicles_path %> &#187; <%= link_to @vehicle.to_s, vehicle_path(@vehicle) %></h2>
<%= render partial: 'vehicles/trail', locals: { vehicle: @vehicle, tail: link_to(@vehicle.to_s, vehicle_path(@vehicle)) } %>
<%= labelled_form_for @vehicle do |f| %>
<%= render partial: 'vehicles/form', locals: { f: f } %>