PhoenixKitBookings.Web.Format (PhoenixKitBookings v0.1.1)

Copy Markdown View Source

Presentation helpers shared by the admin and public LiveViews: booking ranges in the site frame, service mode summaries, status badge classes.

Summary

Functions

Formats a booking's occupancy for lists, in the site frame.

One-line human summary of a service's booking shape.

daisyUI badge class per service status.

daisyUI badge class per booking status.

Functions

format_range(booking)

Formats a booking's occupancy for lists, in the site frame.

mode_summary(s)

One-line human summary of a service's booking shape.

service_badge(arg1)

daisyUI badge class per service status.

status_badge(arg1)

daisyUI badge class per booking status.