2014-11-25 10:47:18 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
|
|
|
|
%h1 Lodgings
|
|
|
|
|
%p.text-muted
|
|
|
|
|
Recommended some Hotels, Motels, Hostels or Campsites around your venue
|
|
|
|
|
|
|
|
|
|
- @conference.lodgings.each_slice(3) do |slice|
|
2014-11-12 12:00:03 +01:00
|
|
|
.row
|
2014-11-25 10:47:18 +01:00
|
|
|
- slice.each do |lodging|
|
|
|
|
|
.col-md-4
|
|
|
|
|
.thumbnail
|
2016-08-06 00:57:07 +02:00
|
|
|
- unless lodging.picture?
|
2014-11-25 10:47:18 +01:00
|
|
|
%p.text-center
|
|
|
|
|
%i.fa.fa-home.fa-5x
|
|
|
|
|
- else
|
2017-03-11 13:25:39 +05:30
|
|
|
- if lodging.website_link.present?
|
2014-11-25 10:47:18 +01:00
|
|
|
= link_to(lodging.website_link, class: 'thumbnail') do
|
2016-04-27 15:27:33 +02:00
|
|
|
= image_tag lodging.picture.thumb, class: 'img-responsive img-lodging'
|
2014-11-25 10:47:18 +01:00
|
|
|
- else
|
2016-04-27 15:27:33 +02:00
|
|
|
= image_tag lodging.picture.thumb, class: 'img-responsive img-lodging'
|
2014-11-25 10:47:18 +01:00
|
|
|
.caption
|
|
|
|
|
%h3.text-center
|
|
|
|
|
= lodging.name
|
2017-03-11 13:25:39 +05:30
|
|
|
- if lodging.description.present?
|
2014-11-25 10:47:18 +01:00
|
|
|
= markdown(lodging.description)
|
|
|
|
|
.actions.text-right
|
|
|
|
|
= link_to 'Edit', edit_admin_conference_lodging_path(@conference.short_title, lodging), class: 'btn btn-primary'
|
|
|
|
|
= link_to 'Delete', admin_conference_lodging_path(@conference.short_title, lodging),
|
2014-11-12 12:00:03 +01:00
|
|
|
method: :delete, class: 'btn btn-danger', data: { confirm: "Do you really want to delete the lodging #{lodging.name}?" }
|
|
|
|
|
|
|
|
|
|
|
2014-11-25 10:47:18 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12.text-right
|
|
|
|
|
= link_to 'Add Lodging', new_admin_conference_lodging_path(@conference.short_title), class: 'btn btn-primary'
|