mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
Enhance appointment card layout with improved styling and structure
This commit is contained in:
1 parent
7d6cddf5ca
commit
fbe3eb7382
2 files changed
+54
-16
No files matched your search
@@ -4,6 +4,7 @@
|
||||
|
||||
<div class="appointment-card">
|
||||
|
||||
<%# Row 1: Avatar | Title %>
|
||||
<div class="appointment-header">
|
||||
<% if appointment.user %>
|
||||
<%= avatar(appointment.user, size: 14, class: "appointment-avatar") %>
|
||||
@@ -12,13 +13,24 @@
|
||||
<span class="appointment-title">
|
||||
<%= link_to(appointment.subject, customer_appointment_path(appointment), class: "appointment-link") %>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<hr class="appointment-divider" />
|
||||
|
||||
<%# Row 2: Time | Hours %>
|
||||
<div class="appointment-meta">
|
||||
<span class="appointment-time">
|
||||
<%= appointment.date.strftime('%I:%M %p') %>
|
||||
</span>
|
||||
|
||||
<span class="appointment-hours">
|
||||
<%= number_with_precision(appointment.estimated_hours.to_f, precision: 1) %>h
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<%# Row 3: Details %>
|
||||
<% if appointment.customer %>
|
||||
<hr class="appointment-divider" />
|
||||
<div class="appointment-detail">
|
||||
<%= appointment.customer.name %>
|
||||
<% if appointment.vehicle %>
|
||||
|
||||
Reference in new issue
Block a user