diff --git a/app/models/customer_appointment.rb b/app/models/customer_appointment.rb index ca69492..1c94610 100644 --- a/app/models/customer_appointment.rb +++ b/app/models/customer_appointment.rb @@ -108,6 +108,10 @@ class CustomerAppointment < ActiveRecord::Base subject end + def self.statuses + STATUSES + end + private def log(msg) diff --git a/app/views/common/_calendar.html.erb b/app/views/common/_calendar.html.erb index c9d7100..ab607a6 100644 --- a/app/views/common/_calendar.html.erb +++ b/app/views/common/_calendar.html.erb @@ -42,6 +42,27 @@ end %> +<%# Calendar Status Legend Key %> +<% + # Collect status keys from CustomerAppointment enum + statuses = CustomerAppointment.statuses +%> + +<% if statuses.any? %> +