mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-10-03 17:10:43 -04:00
11 lines
371 B
ERB
11 lines
371 B
ERB
<% if User.current.allowed_to?(:add_vehicles, nil, global: true) %>
|
|
<% if appointment.customer.present? %>
|
|
<% unless appointment.vehicle.present? &&%>
|
|
<p>
|
|
<%= link_to new_vehicle_path(customer_id: appointment.customer_id), class: 'icon icon-add' do %>
|
|
<%= l(:label_add_vehicle) %>
|
|
<% end %>
|
|
</p>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %> |