osem-fcy/app/views/admin/schedules/_day_tab.html.haml
Ana dfd64a4510 Integrate the schedule in the admin interface
Integrate the schedule in the admin interface while adapting it to the new associations and models.
2016-08-11 15:06:52 +02:00

13 lines
482 B
Text

.row
- @rooms.each do |room|
.col-md-2.col-xs-6
.room-name
= room.name
- (9*4..18*4).each do |slot|
- hour = slot / 4
- time = (15 * (slot % 4) == 0) ? '00' : 15 * (slot % 4)
.schedule-room-slot{ id: "schedule-room-#{room.guid}-#{hour}-#{time}", |
"room-guid" => room.guid, |
hour: "#{hour}:#{time}", |
date: date}
= "#{hour}:#{time}"