Refactor appointment tooltip links for customer, vehicle, and estimate to simplify display

This commit is contained in:
ricky committed 2026-08-10 19:14:16 -04:00
1 parent c656b77b22
commit adb5344d51
1 file changed
+4 -7
@@ -19,14 +19,14 @@
<% if appointment.customer %>
<tr>
<th><%= l(:label_customer) %></th>
<td><%= link_to appointment.customer.name, appointment.customer %></td>
<td><%= link_to appointment.customer %></td>
</tr>
<% end %>
<% if appointment.vehicle %>
<tr>
<th><%= l(:label_vehicle) %></th>
<td><%= link_to appointment.vehicle.name, appointment.vehicle %></td>
<td><%= link_to appointment.vehicle %></td>
</tr>
<% end %>
@@ -51,8 +51,7 @@
<tr>
<th><%= l(:label_estimate) %></th>
<td>
<%= link_to "##{appointment.estimate.id}",
appointment.estimate %>
<%= link_to appointment.estimate %>
</td>
</tr>
<% end %>
@@ -94,7 +93,5 @@
<hr>
<p class="buttons">
<%= link_to l(:label_open_appointment),
customer_appointment_path(appointment),
class: "icon icon-edit" %>
<%= link_to l(:label_open_appointment), customer_appointment_path(appointment), class: "icon icon-edit" %>
</p>