= simple_form_for(@hotelprice) do |f| = f.error_notification .form-inputs %hr - if params[:hotel] - hotel_param = params[:hotel] - else - hotel_param = @hotelprice.hotel_id = f.input :hotel_id, as: :hidden, input_html: { value: hotel_param } %strong Hotel: - if @hotelprice = @hotelprice.hotel.title_en %hr %hr - if params[:hotelroom] - hotelroom_param = params[:hotelroom] - else - hotelroom_param = @hotelprice.hotelroom_id = f.input :hotelroom_id, as: :hidden, input_html: { value: hotelroom_param } %strong Hotel: - if @hotelprice = @hotelprice.hotel.title_en %hr .col-md-12 %hr .col-md-2.col-xs-6 = f.input :price, input_html: { placeholder: 'Price: '} .col-md-4.col-xs-6 = f.input :datefrom, as: :string, input_html: { class: 'courcheveldatefrom', placeholder: 'Date From:' } .col-md-4.col-xs-6 = f.input :dateto, as: :string, input_html: { class: 'courcheveldateto', placeholder: 'Date To:' }, disabled: true .col-md-2 = f.input :available .form-actions = f.button :submit