From d8e3e1a72f51ff28f3eb9fab8af501f0ce61841a Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sun, 6 Mar 2022 13:46:55 -0500 Subject: [PATCH] Styling & formatting --- app/views/customers/_details.html.erb | 11 ++-- app/views/vehicles/_details.html.erb | 78 +++++++++++++++------------ 2 files changed, 49 insertions(+), 40 deletions(-) diff --git a/app/views/customers/_details.html.erb b/app/views/customers/_details.html.erb index cb6152a..a0239a4 100644 --- a/app/views/customers/_details.html.erb +++ b/app/views/customers/_details.html.erb @@ -34,11 +34,10 @@ <%=t(:field_notes)%> <%= customer.notes %> - - - - <%= button_to t(:label_edit_customer), edit_customer_path(customer), method: :get%> - - +
+ <%= button_to t(:label_edit_customer), edit_customer_path(customer), method: :get%> +
+
+
diff --git a/app/views/vehicles/_details.html.erb b/app/views/vehicles/_details.html.erb index 730f4a5..7f23db7 100644 --- a/app/views/vehicles/_details.html.erb +++ b/app/views/vehicles/_details.html.erb @@ -1,35 +1,45 @@ - - - - - - - - - - - - - - - - - - - - - +
+
+
+

<%=t(:label_details)%>:

+ +
<%= t(:field_customer)%><%= link_to vehicle.customer.name, customer_path(vehicle.customer) %>
<%= t(:field_vehicle) %><%= vehicle.to_s %>
<%= t(:field_vin) %><%= @vin[0] if @vin %><%=@vin[1] if @vin%>
<%= t(:label_trim) %><%= vehicle.doors %> <%=t(:label_door) if vehicle.doors? %> <%= vehicle.trim %>
+ - - - - - - - - - -
<%= t(:field_notes) %><%= vehicle.notes %>
- <%= button_to t(:label_edit), edit_vehicle_path(vehicle), method: :get%> - <%= button_to t(:label_delete), vehicle, method: :delete, data: {confirm: t(:warn_ru_sure)} %> -
+ + <%= t(:field_customer)%> + <%= link_to vehicle.customer.name, customer_path(vehicle.customer) %> + + + + <%= t(:field_vehicle) %> + <%= vehicle.to_s %> + + + + <%= t(:field_vin) %> + <%= @vin[0] if @vin %><%=@vin[1] if @vin%> + + + <%= t(:label_trim) %> + <%= vehicle.doors %> <%=t(:label_door) if vehicle.doors? %> <%= vehicle.trim %> + + + + + + +
+ +

<%=t(:field_notes)%>:

+ <%= vehicle.notes %> + + +
+ + + +
+ <%= button_to t(:label_edit), edit_vehicle_path(vehicle), method: :get%> + <%= button_to t(:label_delete), vehicle, method: :delete, data: {confirm: t(:warn_ru_sure)} %> +
\ No newline at end of file