mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 13:14:03 +00:00
* Cleanup the CSS * Fix more views then you have fingers and toes * Introduce position(weight) for sponsor levels * Fix bootstrap/datatable integration
32 lines
1,013 B
Text
32 lines
1,013 B
Text
%h1 Rooms
|
|
|
|
- if @conference.rooms.any?
|
|
.row
|
|
.col-md-12
|
|
%table.table#rooms
|
|
%thead
|
|
%th #
|
|
%th Name
|
|
%th Size
|
|
%th Public
|
|
%th Edit
|
|
%th Delete
|
|
%tbody
|
|
- @conference.rooms.each_with_index do |room, index|
|
|
%tr
|
|
%td
|
|
= index + 1
|
|
%td
|
|
= room.name
|
|
%td
|
|
= room.size
|
|
%td
|
|
= room.public
|
|
%td
|
|
= link_to 'Edit', edit_admin_conference_room_path(@conference.short_title, room.id),
|
|
method: :get, class: 'btn btn-primary'
|
|
%td
|
|
= link_to 'Delete', admin_conference_room_path(@conference.short_title, room.id),
|
|
method: :delete, class: 'btn btn-danger', data: { confirm: "Do you really want to delete #{room.name}?" }
|
|
|
|
= link_to 'New Room', new_admin_conference_room_path(@conference.short_title), class: 'btn btn-success'
|