osem-fcy/app/views/admin/rooms/index.html.haml

37 lines
1.2 KiB
Text

.row
.col-md-12
.page-header
%h1 Rooms
%p.text-muted
The rooms of your conference venue
- if @rooms.any?
.row
.col-md-12
%table.table.table-hover#rooms
%thead
%th Name
%th Capacity
%th Order
%th URL
%th Actions
%tbody
- @rooms.each_with_index do |room, index|
%tr
%th
= room.name
%td
= room.size
%td
= room.order
%td
= room.url
%td
= link_to 'Edit', edit_admin_conference_venue_room_path(@conference.short_title, room.id), class: 'btn btn-primary'
= link_to('Delete',
admin_conference_venue_room_path(@conference.short_title, room.id),
method: :delete, class: 'btn btn-danger',
data: { confirm: "Do you really want to delete #{room.name}? Attention: This room will be removed from all Events that have it set"})
.row
.col-md-12.text-right
= link_to 'Add Room', new_admin_conference_venue_room_path(@conference.short_title), class: 'btn btn-primary'