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 %> <% if appointment.customer %>
<tr> <tr>
<th><%= l(:label_customer) %></th> <th><%= l(:label_customer) %></th>
<td><%= link_to appointment.customer.name, appointment.customer %></td> <td><%= link_to appointment.customer %></td>
</tr> </tr>
<% end %> <% end %>
<% if appointment.vehicle %> <% if appointment.vehicle %>
<tr> <tr>
<th><%= l(:label_vehicle) %></th> <th><%= l(:label_vehicle) %></th>
<td><%= link_to appointment.vehicle.name, appointment.vehicle %></td> <td><%= link_to appointment.vehicle %></td>
</tr> </tr>
<% end %> <% end %>
@@ -51,8 +51,7 @@
<tr> <tr>
<th><%= l(:label_estimate) %></th> <th><%= l(:label_estimate) %></th>
<td> <td>
<%= link_to "##{appointment.estimate.id}", <%= link_to appointment.estimate %>
appointment.estimate %>
</td> </td>
</tr> </tr>
<% end %> <% end %>
@@ -94,7 +93,5 @@
<hr> <hr>
<p class="buttons"> <p class="buttons">
<%= link_to l(:label_open_appointment), <%= link_to l(:label_open_appointment), customer_appointment_path(appointment), class: "icon icon-edit" %>
customer_appointment_path(appointment),
class: "icon icon-edit" %>
</p> </p>