Created
November 2, 2013 09:06
-
-
Save Ceda/7276997 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%ul.breadcrumb | |
%li | |
%big | |
="1" | |
= link_to t('reservations.steps.choose_date_and_count'), root_path | |
%span.divider | |
> | |
%li.active | |
%big | |
="2" | |
= link_to t('reservations.steps.set_tour_or_private'), set_tour_reservations_path(:count => @count, :date => @chosen_date.to_s.split()[0]), :method => :post | |
%span.divider | |
> | |
%li | |
%big | |
="3" | |
= t('reservations.steps.pay') | |
#rezervace | |
=form_for @reservation do |f| | |
-if @fixed_tours.any? | |
%h2.rezervace-nadpis | |
=t('.fixed_reservation_tours') | |
=DateTime.parse(@chosen_date.to_s).strftime("%d.%m.%Y") | |
=f.hidden_field :start, :value => @chosen_date.to_time | |
=f.hidden_field :count, :value => @count | |
=f.hidden_field :kind, :value => "open" | |
=f.hidden_field :currency, :value => currency_from_locales | |
#tour-select.row | |
-@fixed_tours.each do |tour_id, tours| | |
-tour_info = Tour.find(tour_id) | |
.rezervace-box{:rel => "#{tour_info.trace.parameterize}"} | |
%h3=tour_info.trace | |
%ul | |
%li | |
%strong= t(".price_per_person") | |
= tour_info.price_with_discount(@count, I18n.locale, "open") | |
= t(currency_from_locales) | |
%li | |
%strong= t(".total_price") | |
= tour_info.total_price_with_discount(@count, I18n.locale, "open") | |
= t(currency_from_locales) | |
%ul.available-times.pt{:rel => "#{tour_info.total_price_with_discount(@count, I18n.locale, "open")}"} | |
%li | |
%strong= t(".available_for_times") | |
%br | |
-tours.each do |tour| | |
= f.radio_button(:fixed_tour_id, tour.id, required: "required") | |
= f.label(:fixed_tour_id, tour_time(tour), for: "reservation_fixed_tour_id_#{tour.id}") | |
#info-wrapper.row | |
-@fixed_tours.each do |tour_id, tours| | |
-tour_info = Tour.find(tour_id) | |
%div.order-info{:id => "#{tour_info.trace.parameterize}"} | |
%div.span6 | |
%div.pink | |
%h4= tour_info.trace | |
%p= tour_info.trace_info | |
%div.span6.mapbox | |
= image_tag tour_info.image.url | |
%hr | |
%h2.rezervace-nadpis | |
= t('.total_price_for_tour') | |
%span#route-name | |
%div.rezervace-price | |
%strong#total | |
0 | |
= t(currency_from_locales) | |
%hr | |
.row.rezervace-input2.email | |
=f.email_field :email, :placeholder => t('.email_address'), :required => true | |
.row.rezervace-input2.telephone | |
=f.telephone_field :phone, :placeholder => t('.your_phone'), :required => true | |
.row.rezervace-input2.name | |
=f.text_field :name, :placeholder => t('.your_name'), :required => true | |
.row.rezervace-input2.notes | |
=f.text_field :note, :placeholder => t('.your_notes'), :required => true | |
-else | |
#private-rezervace | |
%p | |
=t('.no_fixed_tours_available') | |
.row | |
= check_box_tag :accept_terms, "1", false, required: "required" | |
%strong=t('.accept_terms') | |
.row.book-info=t('.book_info') | |
.row.buttons | |
.span5 | |
=submit_tag t(".order") | |
-if @min_count_for_private_reservation <= @count | |
.span2 | |
%h3= t('.or') | |
.span5 | |
#private-rezervace | |
=form_tag "private_tour" do | |
=hidden_field_tag :chosen_date, @chosen_date | |
=hidden_field_tag :count, @count | |
=submit_tag t('.private_reservation_submit'), class: 'need-to-accept-terms' | |
%h4 | |
=t ('.private_reservation_next_person') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment