This repository has been archived by the owner on May 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
137 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,51 @@ | ||
.page-header | ||
%h1=t '.afterparty' | ||
|
||
%h1=t '.afterparty' | ||
.row | ||
.span9 | ||
%p | ||
=t '.afterparty_content_part_1' | ||
%span.color « | ||
= link_to t(".duke"), "http://dukeclub.ru/", :target => "_blank" | ||
%span.color ». | ||
=t '.afterparty_content_part_2' | ||
%p | ||
= t '.afterparty_content_part_3' | ||
|
||
%p | ||
=t '.afterparty_content_part_1' | ||
%span.color « | ||
= link_to t(".duke"), "http://dukeclub.ru/", :target => "_blank" | ||
%span.color ». | ||
=t '.afterparty_content_part_2' | ||
%br | ||
%h5 | ||
%span.color | ||
= @count_paid_afterparty | ||
= t (".participants_count") | ||
|
||
.tabbable | ||
%ul.nav.nav-tabs | ||
%li.active= link_to t('.afterparty'), new_account_afterparty_order_path | ||
%li= link_to t('.shirt'), new_account_shirt_order_path | ||
.span3.center | ||
%p | ||
= link_to t(".tshirt_motivate_link"), new_account_shirt_order_path | ||
= link_to new_account_shirt_order_path do | ||
%img{:src => "/images/tshirt_1.png", :width => 233, :height => 253, :alt => "Футболка"} | ||
%br | ||
|
||
= simple_form_for [:account, @afterparty_order], :html => { :class => 'form-horizontal profile-form' } do |f| | ||
.formy | ||
.control-group | ||
%label.control-label.center | ||
.row-fluid | ||
.span3.center | ||
= t(".item_name") | ||
.controls | ||
.row-fluid | ||
.span4.center | ||
= t(".item_count") | ||
.span4.center | ||
= t(".item_cost_title") | ||
.span4.center | ||
= t(".item_total_title") | ||
.control-group | ||
%label.control-label.center | ||
.span3.center | ||
= t(".item_count") | ||
.span3.center | ||
= t(".item_cost_title") | ||
.span3.center | ||
= t(".item_total_title") | ||
%br | ||
.row-fluid | ||
.span3.center | ||
= t(".enter_ticket") | ||
.controls | ||
.row-fluid | ||
.span4.center | ||
= f.input_field :items_count, collection: 1..10, default: 0, class: "items-count-select input-mini" | ||
.span4.center | ||
= t(".item_cost_value") | ||
.span4.center | ||
%big | ||
.cost | ||
= t(".item_total_default") | ||
.span3.center | ||
= f.input_field :items_count, collection: 1..10, default: 0, class: "items-count-select input-mini" | ||
.span3.center | ||
= t(".item_cost_value") | ||
.span3.center | ||
%big | ||
.cost | ||
= t(".item_total_default") | ||
|
||
= f.button :submit, :value => t('.buy'), :class => 'btn btn-shine' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,58 @@ | ||
.page-header | ||
%h1=t '.add_order' | ||
%h1=t '.buy_tshirt' | ||
|
||
.tabbable | ||
%ul.nav.nav-tabs | ||
%li= link_to t('.afterparty'), new_account_afterparty_order_path | ||
%li.active= link_to t('.shirt'), new_account_shirt_order_path | ||
%p | ||
= t('.tshirt_promo') | ||
%br | ||
= t('.thisrt_promo_ps') | ||
= t('.buy_afterparty_ticket_before') | ||
= link_to t('.buy_afterparty_ticket_action'), new_account_afterparty_order_path | ||
= t('.buy_afterparty_ticket_after') | ||
%br | ||
|
||
.row-fluid | ||
.span3.left | ||
%img{:src => "/images/tshirt_1.png", :width => 233, :height => 253, :alt => "Футболка"} | ||
.span3.center | ||
%img{:src => "/images/tshirt_2.png", :width => 233, :height => 253, :alt => "Футболка"} | ||
.span3.center | ||
%img{:src => "/images/tshirt_3.png", :width => 233, :height => 253, :alt => "Футболка"} | ||
.span3.right | ||
%img{:src => "/images/tshirt_4.png", :width => 233, :height => 253, :alt => "Футболка"} | ||
|
||
%br | ||
|
||
= simple_form_for [:account, @shirt_order], :html => { :class => 'form-horizontal profile-form' } do |f| | ||
.formy | ||
.control-group | ||
%label.control-label.center | ||
.row-fluid | ||
.span2.center | ||
= t(".item_name") | ||
.controls | ||
.row-fluid | ||
.span2.center | ||
= t(".item_size") | ||
.span3.center | ||
= t(".item_count") | ||
.span4.center | ||
= t(".item_cost_title") | ||
.span3.center | ||
= t(".item_total_title") | ||
.control-group | ||
%label.control-label.center | ||
.span1.center | ||
= t(".item_size") | ||
.span2.center | ||
= t(".item_color") | ||
.span2.center | ||
= t(".item_count") | ||
.span3.center | ||
= t(".item_cost_title") | ||
.span2.center | ||
= t(".item_total_title") | ||
|
||
%br | ||
|
||
.row-fluid | ||
.span2.center | ||
= t(".t_shirt") | ||
.controls | ||
.row-fluid | ||
.span2.center | ||
= f.input_field :item_size, collection: ShirtOrder.item_size.options, default: 0, class: "input-mini" | ||
.span3.center | ||
= f.input_field :items_count, collection: 1..10, default: 0, class: "items-count-select input-mini" | ||
.span4.center | ||
= t(".item_cost_value") | ||
.span3.center | ||
%big | ||
.cost | ||
= t(".item_total_default") | ||
.span1.center | ||
= f.input_field :item_size, collection: ShirtOrder.item_size.options, default: 0, class: "input-mini" | ||
.span2.center | ||
= f.input_field :item_color, collection: ShirtOrder.item_color.options, default: 0, class: "input-small" | ||
.span2.center | ||
= f.input_field :items_count, collection: 1..10, default: 0, class: "items-count-select input-mini" | ||
.span3.center | ||
= t(".item_cost_value") | ||
.span2.center | ||
%big | ||
.cost | ||
= t(".item_total_default") | ||
|
||
= f.button :submit, :value => t('.buy'), :class => 'btn btn-shine' |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddColorFieldToOrder < ActiveRecord::Migration | ||
def change | ||
add_column :orders, :item_color, :string | ||
end | ||
end |
10 changes: 10 additions & 0 deletions
10
db/migrate/20130322112003_update_default_order_item_color.rb
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class UpdateDefaultOrderItemColor < ActiveRecord::Migration | ||
def up | ||
Order.reset_column_information | ||
Order.update_all({:item_color => :white}, :item_color => nil) | ||
end | ||
|
||
def down | ||
Order.update_all(:item_color => :white) | ||
end | ||
end |
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
user | ||
items_count | ||
item_size "L" | ||
item_color "white" | ||
end | ||
end |