#hotel_sultan_club_price_jquery_start = javascript_include_tag Ckeditor.cdn_url .row = simple_form_for @hotel_sultan_club_price, html: { role: 'form', multipart: true } do |f| .row .col-md-12 - if @hotel_sultan_club_price.errors.any? #error_explanation %h3.text-center %mark = "#{pluralize(@hotel_sultan_club_price.errors.count, 'Error')} :" %ul - @hotel_sultan_club_price.errors.full_messages.each do |msg| %li.alert.alert-danger.fade.in{role: 'alert'} %button.close{'data-dismiss' => 'alert', type: 'button'} %span{'aria-hidden' => 'true'} × %span.sr-only Close %strong= msg.to_s.humanize -# .field.form-group.col-md-2.col-xs-6 -# = f.input :area_id .col-md-12 %h4 Hotel Sultan Club Price: %hr .row .col-lg-3.col-md-3 = f.input :tab_type, collection: [ ['Price periods','apartments'], ['Supplements','supplement']], :selected => @hotel_sultan_club_price.tab_type, :label => 'Price type: ' .row .col-lg-2.col-md-2 = f.input :date_all, inline_label: 'All Dates', label: false .col-lg-2.col-md-2 = f.input :date_from, as: :string, input_html: { class: 'date-from', placeholder: 'Date From:', value: localize(f.object.date_from, default: '') } .col-lg-2.col-md-2 = f.input :date_to, as: :string, input_html: { class: 'date-to', placeholder: 'Date To:', value: localize(f.object.date_to, default: '') } .col-lg-3.col-md-3 = f.input :price_one, input_html: { placeholder: 'Price one: '} .col-lg-3.col-md-3 = f.input :price_two, input_html: { placeholder: 'Price two: '} .row %ul.nav.nav-tabs.panel{role: 'tablist', style: 'background-color: #E0F1FF;' } %li %a{ href: '#English', role: 'tab', 'data-toggle' => 'tab' } English %li %a{ href: '#Frances', role: 'tab', 'data-toggle' => 'tab' } Frances %li %a{ href: '#Russian', role: 'tab', 'data-toggle' => 'tab' } Russian %li %a{ href: '#Spanish', role: 'tab', 'data-toggle' => 'tab' } Spanish %li %a{ href: '#X', role: 'tab', 'data-toggle' => 'tab' } × %div.tab-content %div.tab-pane#English %br .field.col-md-12.form-group = f.cktext_area :tab_description_en, :rows => 40, :cols => 120 %div.tab-pane#Frances %br .field.col-md-12.form-group = f.cktext_area :tab_description_fr, :rows => 40, :cols => 120 %div.tab-pane#Russian %br .field.col-md-12.form-group = f.cktext_area :tab_description_ru, :rows => 40, :cols => 120 %div.tab-pane#Spanish %br .field.col-md-12.form-group = f.cktext_area :tab_description_es, :rows => 40, :cols => 120 %div.tab-pane#X .row %hr .actions.col-md-12.col-xs-12 = f.submit 'Save', class: 'btn btn-lg btn-primary btn-block' #accommodation_not_valid #accommodation_valid