Open estimates in new tab

This commit is contained in:
ricky committed 2026-08-11 14:31:11 -04:00
1 parent 62985e9ca2
commit 7d6cddf5ca
2 files changed
+5 -3

No files matched your search

@@ -51,7 +51,7 @@
<tr> <tr>
<th><%= l(:label_estimate) %></th> <th><%= l(:label_estimate) %></th>
<td> <td>
<%= link_to appointment.estimate %> <%= link_to appointment.estimate, appointment.estimate, target: "_blank" %>
</td> </td>
</tr> </tr>
<% end %> <% end %>
@@ -68,8 +68,10 @@
<div class="value"><%= @appointment.customer&.primary_phone %></div> <div class="value"><%= @appointment.customer&.primary_phone %></div>
</div> </div>
<div class="attribute"> <div class="attribute">
<div class="label"><%= l(:label_estimate, default: 'Estimate') %>:</div> <div class="label"><%= l(:label_estimate) %>:</div>
<div class="value"><%= link_to_if @appointment.estimate, @appointment.estimate&.name, @appointment.estimate %></div> <% if @appointment.estimate %>
<div class="value"><%= link_to @appointment.estimate, @appointment.estimate, target: "_blank" %></div>
<% end %>
</div> </div>
</div> </div>