mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Integrate the schedule in the admin interface while adapting it to the new associations and models.
13 lines
482 B
Text
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}"
|