.row .container %p#notice= notice %h3.text-center %b Hotel: - if @hotelroom = @hotelroom.hotel.title_en %hr %p %b Title en: = @hotelroom.title_en %p %b Description en: = @hotelroom.description_en %p %b Title fr: = @hotelroom.title_fr %p %b Description fr: = @hotelroom.description_fr %p %b Title ru: = @hotelroom.title_ru %p %b Description ru: = @hotelroom.description_ru %p %b Title es: = @hotelroom.title_es %p %b Description es: = @hotelroom.description_es %hr = link_to ' Edit ', edit_hotelroom_path(@hotelroom), class: 'btn btn-default pull-right' = link_to ' Back ', hotel_path(@hotelroom.hotel_id), class: 'btn btn-warning pull-right' .container %hr %h1.text-center Hotel prices %hr = link_to 'Add price to room', new_hotelprice_path(hotel: @hotelroom.hotel_id, hotelroom: @hotelroom.id), class: 'btn btn-success btn-block btn-lg' %table.table.table-striped.table-bordered.table-hover %thead %tr %th Available %th Datefrom %th Dateto %th %th %th %tbody - @hotelroom.hotelprices.each do |hotelprice| %tr %td= hotelprice.available ? 'Yes' : 'No' %td= hotelprice.datefrom %td= hotelprice.dateto %td= link_to 'Show', hotelprice %td= link_to 'Edit', edit_hotelprice_path(hotelprice) %td= link_to 'Destroy', hotelprice, :method => :delete, :data => { confirm: 'Are you sure?' } %br = console