1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/views/api/availabilities/_slot.json.jbuilder

20 lines
502 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
json.slot_id slot.id
json.can_modify slot.can_modify
json.title slot.title
json.start slot.start_at.iso8601
json.end slot.end_at.iso8601
json.is_reserved slot.is_reserved
json.backgroundColor 'white'
json.availability_id slot.availability_id
json.slots_reservations_ids slot.current_user_slots_reservations_ids
json.tag_ids slot.availability.tag_ids
json.tags slot.availability.tags do |t|
json.id t.id
json.name t.name
end
json.plan_ids slot.availability.plan_ids