Refactor template_time_slot.rb removing indents and making similar to time_slot.rb