Files
redmine_qbo_calendar/app/views/customer_appointments/_calendar_event.html.erb
T
2026-08-10 15:06:13 -04:00

36 lines
1.0 KiB
ERB

<%= tag.div class: ['appointment-block', 'tooltip', appointment.status.to_s.parameterize] do %>
<div class="appointment-bar"></div>
<div class="appointment-card">
<div class="appointment-header">
<% if appointment.user %>
<%= avatar(appointment.user, size: 14, class: "appointment-avatar") %>
<% end %>
<span class="appointment-title">
<%= link_to(appointment.subject, customer_appointment_path(appointment), class: "appointment-link") %>
</span>
<span class="appointment-hours">
<%= number_with_precision(appointment.estimated_hours.to_f, precision: 1) %>h
</span>
</div>
<% if appointment.customer %>
<div class="appointment-detail">
<%= appointment.customer.name %>
<% if appointment.vehicle %>
<br/> <%= appointment.vehicle.name %>
<% end %>
</div>
<% end %>
</div>
<span class="tip">
<%= render partial: "customer_appointments/tooltip", locals: { appointment: appointment } %>
</span>
<% end %>