mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
36 lines
1.0 KiB
ERB
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 %> |