mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-11-18 02:40:37 -05:00
- labelled_form_for with a "box tabular" form, like core Redmine forms:
labels on the left, required fields (customer, VIN) marked with *
- Breadcrumb headings ("Vehicles » vehicle"), Create/Save buttons and a
Cancel link (back to the vehicle, or the customer for new vehicles)
- Field order: customer, VIN, year, make, model, notes; the VIN field
is limited to 17 characters and keeps focus
- Keeps redmine_qbo's customer autocomplete and the duplicate-VIN link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
10 lines
376 B
ERB
10 lines
376 B
ERB
<h2><%= link_to l(:field_vehicles), vehicles_path %> » <%= link_to @vehicle.to_s, vehicle_path(@vehicle) %></h2>
|
|
|
|
<%= labelled_form_for @vehicle do |f| %>
|
|
<%= render partial: 'vehicles/form', locals: { f: f } %>
|
|
<%= submit_tag l(:button_save) %>
|
|
<%= link_to l(:button_cancel), vehicle_path(@vehicle) %>
|
|
<% end %>
|
|
|
|
<% html_title(l(:label_edit_customer_vehicle)) -%>
|