spree_core 0.70.0.rc2 → 0.70.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/app/assets/javascripts/admin/taxonomy.js +1 -1
- data/app/controllers/admin/tax_rates_controller.rb +2 -2
- data/app/helpers/admin/base_helper.rb +1 -1
- data/app/helpers/spree/base_helper.rb +1 -1
- data/app/mailers/order_mailer.rb +5 -5
- data/app/mailers/shipment_mailer.rb +3 -3
- data/app/mailers/test_mailer.rb +1 -1
- data/app/models/calculator.rb +7 -9
- data/app/models/calculator/flat_percent_item_total.rb +0 -5
- data/app/models/calculator/flat_rate.rb +0 -5
- data/app/models/calculator/flexi_rate.rb +0 -5
- data/app/models/calculator/per_item.rb +0 -5
- data/app/models/calculator/price_bucket.rb +0 -6
- data/app/models/calculator/sales_tax.rb +1 -6
- data/app/models/calculator/vat.rb +6 -11
- data/app/models/creditcard.rb +12 -10
- data/app/models/order.rb +1 -1
- data/app/models/payment.rb +1 -1
- data/app/models/payment_method.rb +1 -7
- data/app/views/admin/adjustments/_adjustments_table.html.erb +3 -3
- data/app/views/admin/adjustments/_form.html.erb +4 -4
- data/app/views/admin/adjustments/edit.html.erb +7 -7
- data/app/views/admin/adjustments/index.html.erb +2 -2
- data/app/views/admin/adjustments/new.html.erb +6 -6
- data/app/views/admin/configurations/index.html.erb +29 -29
- data/app/views/admin/general_settings/edit.html.erb +5 -5
- data/app/views/admin/general_settings/show.html.erb +4 -5
- data/app/views/admin/images/_form.html.erb +2 -2
- data/app/views/admin/images/edit.html.erb +8 -8
- data/app/views/admin/images/index.html.erb +11 -11
- data/app/views/admin/images/new.html.erb +1 -1
- data/app/views/admin/inventory_settings/edit.html.erb +7 -7
- data/app/views/admin/inventory_settings/show.html.erb +4 -4
- data/app/views/admin/inventory_units/adjust.html.erb +11 -11
- data/app/views/admin/mail_methods/_form.html.erb +23 -26
- data/app/views/admin/mail_methods/edit.html.erb +4 -4
- data/app/views/admin/mail_methods/index.html.erb +6 -6
- data/app/views/admin/mail_methods/new.html.erb +4 -4
- data/app/views/admin/option_types/_available.html.erb +9 -9
- data/app/views/admin/option_types/_form.html.erb +2 -2
- data/app/views/admin/option_types/_option_value_fields.html.erb +3 -3
- data/app/views/admin/option_types/_selected.html.erb +4 -4
- data/app/views/admin/option_types/available.js.erb +1 -1
- data/app/views/admin/option_types/edit.html.erb +10 -10
- data/app/views/admin/option_types/index.html.erb +7 -7
- data/app/views/admin/option_types/new.html.erb +4 -4
- data/app/views/admin/option_types/selected.html.erb +1 -1
- data/app/views/admin/orders/_add_product.html.erb +6 -6
- data/app/views/admin/orders/_form.html.erb +15 -15
- data/app/views/admin/orders/_line_item.html.erb +4 -4
- data/app/views/admin/orders/_user_form.html.erb +11 -11
- data/app/views/admin/orders/edit.html.erb +8 -8
- data/app/views/admin/orders/history.html.erb +8 -8
- data/app/views/admin/orders/index.html.erb +28 -29
- data/app/views/admin/orders/new.html.erb +5 -5
- data/app/views/admin/orders/show.html.erb +7 -7
- data/app/views/admin/orders/user.html.erb +6 -6
- data/app/views/admin/payment_methods/_form.html.erb +15 -15
- data/app/views/admin/payment_methods/edit.html.erb +5 -5
- data/app/views/admin/payment_methods/index.html.erb +9 -10
- data/app/views/admin/payment_methods/new.html.erb +4 -4
- data/app/views/admin/payments/_bill_address_form.html.erb +1 -1
- data/app/views/admin/payments/_form.html.erb +5 -5
- data/app/views/admin/payments/_list.html.erb +5 -5
- data/app/views/admin/payments/_transaction_list.html.erb +6 -6
- data/app/views/admin/payments/credit.html.erb +5 -5
- data/app/views/admin/payments/index.html.erb +8 -8
- data/app/views/admin/payments/new.html.erb +6 -6
- data/app/views/admin/payments/show.html.erb +2 -2
- data/app/views/admin/payments/source_forms/_gateway.html.erb +8 -8
- data/app/views/admin/payments/source_views/_gateway.html.erb +7 -7
- data/app/views/admin/product_groups/_preview.html.erb +2 -2
- data/app/views/admin/product_groups/_product_scope.html.erb +3 -3
- data/app/views/admin/product_groups/edit.html.erb +9 -9
- data/app/views/admin/product_groups/index.html.erb +8 -8
- data/app/views/admin/product_groups/new.html.erb +3 -3
- data/app/views/admin/product_groups/show.html.erb +1 -1
- data/app/views/admin/product_groups/update.js.erb +3 -3
- data/app/views/admin/product_properties/_product_property_fields.html.erb +3 -3
- data/app/views/admin/product_properties/index.html.erb +15 -15
- data/app/views/admin/product_scopes/create.js.erb +3 -3
- data/app/views/admin/product_scopes/destroy.js.erb +3 -3
- data/app/views/admin/products/_form.html.erb +25 -25
- data/app/views/admin/products/_option_types.html.erb +14 -14
- data/app/views/admin/products/_properties_form.erb +1 -1
- data/app/views/admin/products/edit.html.erb +3 -3
- data/app/views/admin/products/index.html.erb +12 -12
- data/app/views/admin/products/new.html.erb +14 -14
- data/app/views/admin/products/show.html.erb +1 -1
- data/app/views/admin/properties/_form.html.erb +2 -2
- data/app/views/admin/properties/edit.html.erb +3 -3
- data/app/views/admin/properties/index.html.erb +6 -6
- data/app/views/admin/properties/new.html.erb +3 -3
- data/app/views/admin/prototypes/_form.html.erb +6 -6
- data/app/views/admin/prototypes/_prototypes.html.erb +3 -4
- data/app/views/admin/prototypes/edit.html.erb +4 -4
- data/app/views/admin/prototypes/index.html.erb +6 -6
- data/app/views/admin/prototypes/new.html.erb +3 -3
- data/app/views/admin/reports/index.html.erb +3 -3
- data/app/views/admin/reports/sales_total.html.erb +7 -7
- data/app/views/admin/return_authorizations/_form.html.erb +13 -14
- data/app/views/admin/return_authorizations/edit.html.erb +10 -10
- data/app/views/admin/return_authorizations/index.html.erb +9 -9
- data/app/views/admin/return_authorizations/new.html.erb +7 -7
- data/app/views/admin/shared/_additional_field.html.erb +1 -1
- data/app/views/admin/shared/_address_form.html.erb +24 -24
- data/app/views/admin/shared/_calculator_fields.html.erb +4 -4
- data/app/views/admin/shared/_configuration_menu.html.erb +12 -12
- data/app/views/admin/shared/_destroy.js.erb +1 -1
- data/app/views/admin/shared/_edit_resource_links.html.erb +2 -2
- data/app/views/admin/shared/_group_from_products_form.html.erb +6 -6
- data/app/views/admin/shared/_head.html.erb +5 -5
- data/app/views/admin/shared/_new_adjustment_button.html.erb +2 -2
- data/app/views/admin/shared/_new_resource_links.html.erb +2 -2
- data/app/views/admin/shared/_order_tabs.html.erb +25 -25
- data/app/views/admin/shared/_product_tabs.html.erb +14 -14
- data/app/views/admin/shared/_report_criteria.html.erb +4 -4
- data/app/views/admin/shared/_show_resource_links.html.erb +3 -3
- data/app/views/admin/shared/_update_order_state.js +4 -4
- data/app/views/admin/shipments/_form.html.erb +15 -15
- data/app/views/admin/shipments/edit.html.erb +11 -11
- data/app/views/admin/shipments/index.html.erb +11 -11
- data/app/views/admin/shipments/new.html.erb +6 -6
- data/app/views/admin/shipping_categories/_form.html.erb +2 -2
- data/app/views/admin/shipping_categories/edit.html.erb +4 -4
- data/app/views/admin/shipping_categories/index.html.erb +8 -8
- data/app/views/admin/shipping_categories/new.html.erb +4 -4
- data/app/views/admin/shipping_methods/_form.html.erb +5 -5
- data/app/views/admin/shipping_methods/edit.html.erb +5 -5
- data/app/views/admin/shipping_methods/index.html.erb +9 -10
- data/app/views/admin/shipping_methods/new.html.erb +4 -4
- data/app/views/admin/states/_form.html.erb +3 -3
- data/app/views/admin/states/_state_list.html.erb +6 -8
- data/app/views/admin/states/edit.html.erb +4 -4
- data/app/views/admin/states/index.html.erb +4 -4
- data/app/views/admin/states/new.html.erb +3 -3
- data/app/views/admin/states/new.js.erb +1 -1
- data/app/views/admin/tax_categories/_form.html.erb +6 -6
- data/app/views/admin/tax_categories/edit.html.erb +4 -4
- data/app/views/admin/tax_categories/index.html.erb +8 -9
- data/app/views/admin/tax_categories/new.html.erb +4 -4
- data/app/views/admin/tax_rates/_form.html.erb +5 -5
- data/app/views/admin/tax_rates/edit.html.erb +5 -5
- data/app/views/admin/tax_rates/index.html.erb +10 -10
- data/app/views/admin/tax_rates/new.html.erb +4 -4
- data/app/views/admin/tax_settings/edit.html.erb +10 -10
- data/app/views/admin/tax_settings/show.html.erb +6 -6
- data/app/views/admin/taxonomies/_form.html.erb +1 -1
- data/app/views/admin/taxonomies/_js_head.html.erb +4 -4
- data/app/views/admin/taxonomies/_list.html.erb +4 -4
- data/app/views/admin/taxonomies/_taxon.html.erb +2 -2
- data/app/views/admin/taxonomies/edit.erb +31 -32
- data/app/views/admin/taxonomies/get_children.json.erb +7 -7
- data/app/views/admin/taxonomies/index.html.erb +4 -4
- data/app/views/admin/taxonomies/new.html.erb +5 -5
- data/app/views/admin/taxons/_form.html.erb +3 -3
- data/app/views/admin/taxons/_taxon_table.html.erb +4 -4
- data/app/views/admin/taxons/edit.html.erb +3 -3
- data/app/views/admin/taxons/remove.html.erb +1 -1
- data/app/views/admin/taxons/select.js.erb +1 -1
- data/app/views/admin/taxons/selected.html.erb +5 -5
- data/app/views/admin/trackers/_form.html.erb +10 -10
- data/app/views/admin/trackers/edit.html.erb +5 -5
- data/app/views/admin/trackers/index.html.erb +8 -8
- data/app/views/admin/trackers/new.html.erb +4 -4
- data/app/views/admin/users/_form.html.erb +6 -6
- data/app/views/admin/users/edit.html.erb +4 -4
- data/app/views/admin/users/index.html.erb +8 -8
- data/app/views/admin/users/new.html.erb +4 -4
- data/app/views/admin/users/show.html.erb +5 -5
- data/app/views/admin/variants/_form.html.erb +5 -5
- data/app/views/admin/variants/edit.html.erb +3 -3
- data/app/views/admin/variants/index.html.erb +14 -18
- data/app/views/admin/variants/new.html.erb +3 -3
- data/app/views/admin/variants/new.js.erb +1 -1
- data/app/views/admin/zones/_country_member.html.erb +1 -1
- data/app/views/admin/zones/_form.html.erb +14 -14
- data/app/views/admin/zones/_state_member.html.erb +1 -1
- data/app/views/admin/zones/edit.html.erb +5 -5
- data/app/views/admin/zones/index.html.erb +5 -5
- data/app/views/admin/zones/new.html.erb +5 -5
- data/app/views/checkout/_address.html.erb +25 -25
- data/app/views/checkout/_confirm.html.erb +1 -1
- data/app/views/checkout/_delivery.html.erb +7 -7
- data/app/views/checkout/_payment.html.erb +3 -3
- data/app/views/checkout/_summary.html.erb +2 -2
- data/app/views/checkout/edit.html.erb +3 -3
- data/app/views/checkout/payment/_gateway.html.erb +9 -9
- data/app/views/checkout/registration.html.erb +6 -6
- data/app/views/content/cvv.html.erb +6 -6
- data/app/views/home/index.html.erb +2 -2
- data/app/views/layouts/admin.html.erb +9 -11
- data/app/views/layouts/spree_application.html.erb +3 -3
- data/app/views/order_mailer/cancel_email.text.erb +2 -2
- data/app/views/orders/_form.html.erb +5 -5
- data/app/views/orders/_line_item.html.erb +3 -3
- data/app/views/orders/edit.html.erb +11 -11
- data/app/views/orders/new.html.erb +3 -3
- data/app/views/orders/show.html.erb +3 -3
- data/app/views/products/_cart_form.html.erb +8 -8
- data/app/views/products/_taxons.html.erb +1 -1
- data/app/views/products/_thumbnails.html.erb +2 -2
- data/app/views/products/index.html.erb +4 -4
- data/app/views/products/show.html.erb +1 -1
- data/app/views/shared/_filters.html.erb +2 -3
- data/app/views/shared/_google_analytics.html.erb +6 -6
- data/app/views/shared/_head.html.erb +3 -3
- data/app/views/shared/_order_details.html.erb +12 -12
- data/app/views/shared/_store_menu.html.erb +1 -1
- data/app/views/shared/_taxonomies.html.erb +1 -1
- data/app/views/shipment_mailer/shipped_email.text.erb +2 -2
- data/app/views/taxons/_taxon.html.erb +1 -1
- data/app/views/taxons/show.html.erb +4 -4
- data/app/views/test_mailer/test_email.text.erb +2 -2
- data/config/locales/en.yml +4 -2
- data/lib/environment_extension.rb +26 -0
- data/lib/generators/spree/site/site_generator.rb +8 -0
- data/lib/product_filters.rb +8 -0
- data/lib/spree/calculated_adjustments.rb +8 -8
- data/lib/spree/environment.rb +12 -0
- data/lib/spree/environment/calculators.rb +10 -0
- data/lib/spree_core.rb +1 -1
- data/lib/spree_core/railtie.rb +36 -46
- data/lib/spree_core/ssl_requirement.rb +1 -1
- data/lib/spree_core/version.rb +1 -1
- metadata +13 -18
- data/config/initializers/sprockets_precompile_patch.rb +0 -16
- data/lib/subclass_registration.rb +0 -21
@@ -1,8 +1,8 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render 'shared/error_messages', :target => @variant %>
|
2
2
|
|
3
|
-
<%= form_for
|
3
|
+
<%= form_for [:admin, @product, @variant] do |f| %>
|
4
4
|
<fieldset data-hook="admin_variant_new_form">
|
5
|
-
<%= render :partial =>
|
5
|
+
<%= render :partial => 'form', :locals => { :f => f } %>
|
6
6
|
<%= render :partial => 'admin/shared/new_resource_links' %>
|
7
7
|
</fieldset>
|
8
8
|
<% end %>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
$("#new_variant").html('<%= escape_javascript(render :template =>
|
1
|
+
$("#new_variant").html('<%= escape_javascript(render :template => 'admin/variants/new.html.erb') %>');
|
2
2
|
$("#new_var_link").hide();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<li data-hook="country_member">
|
2
|
-
<%= f.hidden_field :zoneable_type, :value =>
|
2
|
+
<%= f.hidden_field :zoneable_type, :value => 'Country' %>
|
3
3
|
<%= f.collection_select(:zoneable_id, @countries, :id, :name, :include_blank => true) %>
|
4
4
|
<%= remove_nested f %>
|
5
5
|
</li>
|
@@ -1,29 +1,29 @@
|
|
1
1
|
<%= zone_form.field_container :name do %>
|
2
|
-
<%= zone_form.label :name, t(
|
3
|
-
<%=zone_form.text_field :name %>
|
2
|
+
<%= zone_form.label :name, t(:name) %><br />
|
3
|
+
<%= zone_form.text_field :name %>
|
4
4
|
<% end %>
|
5
5
|
|
6
6
|
<%= zone_form.field_container :description do %>
|
7
|
-
<%= zone_form.label :description, t(
|
8
|
-
<%=zone_form.text_field :description %>
|
7
|
+
<%= zone_form.label :description, t(:description) %><br />
|
8
|
+
<%= zone_form.text_field :description %>
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<p data-hook="type">
|
12
|
-
|
12
|
+
<%= label_tag nil, t(:type) %><br />
|
13
13
|
<label class="sub">
|
14
|
-
<%= zone_form.radio_button(
|
15
|
-
<%= t(
|
14
|
+
<%= zone_form.radio_button('kind', 'country', {:id => 'country_based'}) %>
|
15
|
+
<%= t(:country_based) %>
|
16
16
|
</label>
|
17
17
|
<label class="sub">
|
18
|
-
<%= zone_form.radio_button(
|
19
|
-
<%= t(
|
18
|
+
<%= zone_form.radio_button('kind', 'state', {:id => 'state_based'}) %>
|
19
|
+
<%= t(:state_based) %>
|
20
20
|
</label>
|
21
21
|
<label class="sub">
|
22
|
-
<%= zone_form.radio_button(
|
23
|
-
<%= t(
|
22
|
+
<%= zone_form.radio_button('kind', 'zone', {:id => 'zone_based'}) %>
|
23
|
+
<%= t(:zone_based) %>
|
24
24
|
</label>
|
25
25
|
</p>
|
26
26
|
|
27
|
-
<%= render
|
28
|
-
<%= render
|
29
|
-
<%= render
|
27
|
+
<%= render 'member_type', :type => 'country', :zone_form => zone_form %>
|
28
|
+
<%= render 'member_type', :type => 'state', :zone_form => zone_form %>
|
29
|
+
<%= render 'member_type', :type => 'zone', :zone_form => zone_form %>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<%= render :partial => 'admin/shared/configuration_menu' %>
|
2
2
|
|
3
|
-
<h1><%= t(
|
3
|
+
<h1><%= t(:editing_zone) %></h1>
|
4
4
|
|
5
|
-
<%= render
|
5
|
+
<%= render 'shared/error_messages', :target => @zone %>
|
6
6
|
|
7
|
-
<%= form_for
|
8
|
-
<%= render :partial =>
|
9
|
-
<%= render :partial =>
|
7
|
+
<%= form_for [:admin, @zone] do |zone_form| %>
|
8
|
+
<%= render :partial => 'form', :locals => { :zone_form => zone_form } %>
|
9
|
+
<%= render :partial => 'admin/shared/edit_resource_links' %>
|
10
10
|
<% end %>
|
@@ -3,20 +3,20 @@
|
|
3
3
|
<div class="toolbar" data-hook="toolbar">
|
4
4
|
<ul class="actions">
|
5
5
|
<li>
|
6
|
-
<%= button_link_to t(
|
6
|
+
<%= button_link_to t(:new_zone), new_object_url, :icon => 'add', :id => 'admin_new_zone_link' %>
|
7
7
|
</li>
|
8
8
|
</ul>
|
9
|
-
<br class="clear"
|
9
|
+
<br class="clear" />
|
10
10
|
</div>
|
11
11
|
|
12
12
|
|
13
|
-
<h1><%= t(
|
13
|
+
<h1><%= t(:zones) %></h1>
|
14
14
|
<table class="index" id='listing_zones' data-hook>
|
15
15
|
<thead>
|
16
16
|
<tr data-hook="zones_header">
|
17
|
-
<th><%= sort_link @search,:name, t(
|
17
|
+
<th><%= sort_link @search,:name, t(:name), :title => 'zones_order_by_name_title' %></th>
|
18
18
|
<th>
|
19
|
-
<%= sort_link @search,:description, t(
|
19
|
+
<%= sort_link @search,:description, t(:description), {}, {:title => 'zones_order_by_description_title'} %>
|
20
20
|
</th>
|
21
21
|
<th></th>
|
22
22
|
</tr>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<%= render :partial => 'admin/shared/configuration_menu' %>
|
2
2
|
|
3
|
-
<h1><%= t(
|
3
|
+
<h1><%= t(:new_zone) %></h1>
|
4
4
|
|
5
|
-
<%= render
|
5
|
+
<%= render 'shared/error_messages', :target => @zone %>
|
6
6
|
|
7
|
-
<%= form_for
|
8
|
-
<%= render
|
9
|
-
<%= render :partial =>
|
7
|
+
<%= form_for [:admin, @zone] do |zone_form| %>
|
8
|
+
<%= render 'form', :zone_form => zone_form %>
|
9
|
+
<%= render :partial => 'admin/shared/new_resource_links' %>
|
10
10
|
<% end %>
|
@@ -3,30 +3,30 @@
|
|
3
3
|
<legend><%= t(:billing_address)%></legend>
|
4
4
|
<div class="inner" data-hook="billing_inner">
|
5
5
|
<p class="field" id="bfirstname">
|
6
|
-
<%= bill_form.label :firstname, t(:first_name) %><span class="req">*</span><br/>
|
6
|
+
<%= bill_form.label :firstname, t(:first_name) %><span class="req">*</span><br />
|
7
7
|
<%= bill_form.text_field :firstname, :class => 'required' %>
|
8
8
|
</p>
|
9
9
|
<p class="field" id="blastname">
|
10
|
-
<%= bill_form.label :lastname, t(:last_name) %><span class="req">*</span><br/>
|
10
|
+
<%= bill_form.label :lastname, t(:last_name) %><span class="req">*</span><br />
|
11
11
|
<%= bill_form.text_field :lastname, :class => 'required' %>
|
12
12
|
</p>
|
13
13
|
<p class="field" id="baddress1">
|
14
|
-
<%= bill_form.label :address1, t(:street_address) %><span class="req">*</span><br/>
|
14
|
+
<%= bill_form.label :address1, t(:street_address) %><span class="req">*</span><br />
|
15
15
|
<%= bill_form.text_field :address1, :class => 'required' %>
|
16
16
|
</p>
|
17
17
|
<p class="field" id="baddress2">
|
18
|
-
<%= bill_form.label :address2, t(:street_address_2) %><br/>
|
18
|
+
<%= bill_form.label :address2, t(:street_address_2) %><br />
|
19
19
|
<%= bill_form.text_field :address2 %>
|
20
20
|
</p>
|
21
21
|
<p class="field" id="bcity">
|
22
|
-
<%= bill_form.label :city, t(:city) %><span class="req">*</span><br/>
|
22
|
+
<%= bill_form.label :city, t(:city) %><span class="req">*</span><br />
|
23
23
|
<%= bill_form.text_field :city, :class => 'required' %>
|
24
24
|
</p>
|
25
25
|
|
26
26
|
<% if Spree::Config[:address_requires_state] %>
|
27
27
|
<p class="field" id="bstate">
|
28
28
|
<% have_states = !@order.bill_address.country.states.empty? %>
|
29
|
-
<%= bill_form.label :state, t(:state) %><span class="req">*</span><br/>
|
29
|
+
<%= bill_form.label :state, t(:state) %><span class="req">*</span><br />
|
30
30
|
<noscript>
|
31
31
|
<%= bill_form.text_field :state_name, :class => 'required' %>
|
32
32
|
</noscript>
|
@@ -34,21 +34,21 @@
|
|
34
34
|
bill_form.collection_select(:state_id, @order.bill_address.country.states,
|
35
35
|
:id, :name,
|
36
36
|
{:include_blank => true},
|
37
|
-
{:class => have_states ?
|
37
|
+
{:class => have_states ? 'required' : 'hidden',
|
38
38
|
:disabled => !have_states}) +
|
39
39
|
bill_form.text_field(:state_name,
|
40
|
-
:class => !have_states ?
|
40
|
+
:class => !have_states ? 'required' : 'hidden',
|
41
41
|
:disabled => have_states)
|
42
42
|
].join.gsub('"', "'").gsub("\n", "")
|
43
43
|
%>
|
44
44
|
<%= javascript_tag do -%>
|
45
45
|
document.write("<%== state_elements %>");
|
46
|
-
<% end
|
46
|
+
<% end -%>
|
47
47
|
</p>
|
48
48
|
<% end %>
|
49
49
|
|
50
50
|
<p class="field" id="bzipcode">
|
51
|
-
<%= bill_form.label :zipcode, t(:zip) %><span class="req">*</span><br/>
|
51
|
+
<%= bill_form.label :zipcode, t(:zip) %><span class="req">*</span><br />
|
52
52
|
<%= bill_form.text_field :zipcode, :class => 'required' %>
|
53
53
|
</p>
|
54
54
|
<p class="field" id="bcountry">
|
@@ -58,12 +58,12 @@
|
|
58
58
|
</span>
|
59
59
|
</p>
|
60
60
|
<p class="field" id="bphone">
|
61
|
-
<%= bill_form.label :phone, t(:phone) %><span class="req">*</span><br/>
|
61
|
+
<%= bill_form.label :phone, t(:phone) %><span class="req">*</span><br />
|
62
62
|
<%= bill_form.text_field :phone, :class => 'required' %>
|
63
63
|
</p>
|
64
64
|
<% if Spree::Config[:alternative_billing_phone] %>
|
65
65
|
<p class="field" id="baltphone">
|
66
|
-
<%= bill_form.label :alternative_phone, t(:alternative_phone) %><br/>
|
66
|
+
<%= bill_form.label :alternative_phone, t(:alternative_phone) %><br />
|
67
67
|
<%= bill_form.text_field :alternative_phone %>
|
68
68
|
</p>
|
69
69
|
<% end %>
|
@@ -76,34 +76,34 @@
|
|
76
76
|
<legend><%= t(:shipping_address)%></legend>
|
77
77
|
<p class="field checkbox" data-hook="use_billing">
|
78
78
|
<%= check_box_tag 'order[use_billing]', '1', (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address)) %>
|
79
|
-
|
79
|
+
<%= label_tag :order_use_billing, t(:use_billing_address), :id => 'use_billing' %>
|
80
80
|
</p>
|
81
81
|
<div class="inner" data-hook="shipping_inner">
|
82
82
|
<p class="field" id="sfirstname">
|
83
|
-
<%= ship_form.label :firstname, t(:first_name) %><span class="req">*</span><br/>
|
83
|
+
<%= ship_form.label :firstname, t(:first_name) %><span class="req">*</span><br />
|
84
84
|
<%= ship_form.text_field :firstname, :class => 'required' %>
|
85
85
|
</p>
|
86
86
|
<p class="field" id="slastname">
|
87
|
-
<%= ship_form.label :lastname, t(:last_name) %><span class="req">*</span><br/>
|
87
|
+
<%= ship_form.label :lastname, t(:last_name) %><span class="req">*</span><br />
|
88
88
|
<%= ship_form.text_field :lastname, :class => 'required' %>
|
89
89
|
</p>
|
90
90
|
<p class="field" id="saddress1">
|
91
|
-
<%= ship_form.label :address1, t(:street_address) %><span class="req">*</span><br/>
|
91
|
+
<%= ship_form.label :address1, t(:street_address) %><span class="req">*</span><br />
|
92
92
|
<%= ship_form.text_field :address1, :class => 'required' %>
|
93
93
|
</p>
|
94
94
|
<p class="field" id="saddress2">
|
95
|
-
<%= ship_form.label :address2, t(:street_address_2) %><br/>
|
95
|
+
<%= ship_form.label :address2, t(:street_address_2) %><br />
|
96
96
|
<%= ship_form.text_field :address2 %>
|
97
97
|
</p>
|
98
98
|
<p class="field" id="scity">
|
99
|
-
<%= ship_form.label :city, t(:city) %><span class="req">*</span><br/>
|
99
|
+
<%= ship_form.label :city, t(:city) %><span class="req">*</span><br />
|
100
100
|
<%= ship_form.text_field :city, :class => 'required' %>
|
101
101
|
</p>
|
102
102
|
|
103
103
|
<% if Spree::Config[:address_requires_state] %>
|
104
104
|
<p class="field" id="sstate">
|
105
105
|
<% have_states = !@order.ship_address.country.states.empty? %>
|
106
|
-
<%= ship_form.label :state, t(:state) %><span class="req">*</span><br/>
|
106
|
+
<%= ship_form.label :state, t(:state) %><span class="req">*</span><br />
|
107
107
|
<noscript>
|
108
108
|
<%= ship_form.text_field :state_name, :class => 'required' %>
|
109
109
|
</noscript>
|
@@ -111,10 +111,10 @@
|
|
111
111
|
ship_form.collection_select(:state_id, @order.ship_address.country.states,
|
112
112
|
:id, :name,
|
113
113
|
{:include_blank => true},
|
114
|
-
{:class => have_states ?
|
114
|
+
{:class => have_states ? 'required' : 'hidden',
|
115
115
|
:disabled => !have_states}) +
|
116
116
|
ship_form.text_field(:state_name,
|
117
|
-
:class => !have_states ?
|
117
|
+
:class => !have_states ? 'required' : 'hidden',
|
118
118
|
:disabled => have_states)
|
119
119
|
].join.gsub('"', "'").gsub("\n", "")
|
120
120
|
%>
|
@@ -125,7 +125,7 @@
|
|
125
125
|
<% end %>
|
126
126
|
|
127
127
|
<p class="field" id="szipcode">
|
128
|
-
<%= ship_form.label :zipcode, t(:zip) %><span class="req">*</span><br/>
|
128
|
+
<%= ship_form.label :zipcode, t(:zip) %><span class="req">*</span><br />
|
129
129
|
<%= ship_form.text_field :zipcode, :class => 'required' %>
|
130
130
|
</p>
|
131
131
|
<p class="field" id="scountry">
|
@@ -135,12 +135,12 @@
|
|
135
135
|
</span>
|
136
136
|
</p>
|
137
137
|
<p class="field" id="sphone">
|
138
|
-
<%= ship_form.label :phone, t(:phone) %><span class="req">*</span><br/>
|
138
|
+
<%= ship_form.label :phone, t(:phone) %><span class="req">*</span><br />
|
139
139
|
<%= ship_form.text_field :phone, :class => 'required' %>
|
140
140
|
</p>
|
141
141
|
<% if Spree::Config[:alternative_shipping_phone] %>
|
142
142
|
<p class="field" id="saltphone">
|
143
|
-
<%= ship_form.label :alternative_phone, t(:alternative_phone) %><br/>
|
143
|
+
<%= ship_form.label :alternative_phone, t(:alternative_phone) %><br />
|
144
144
|
<%= ship_form.text_field :alternative_phone %>
|
145
145
|
</p>
|
146
146
|
<% end %>
|
@@ -150,5 +150,5 @@
|
|
150
150
|
|
151
151
|
<hr class="space" />
|
152
152
|
<div class="form-buttons" data-hook="buttons">
|
153
|
-
<%= submit_tag
|
153
|
+
<%= submit_tag t(:save_and_continue), :class => 'continue button primary' %>
|
154
154
|
</div>
|
@@ -1,23 +1,23 @@
|
|
1
1
|
<fieldset id='shipping_method' data-hook>
|
2
|
-
<legend><%= t(
|
2
|
+
<legend><%= t(:shipping_method) %></legend>
|
3
3
|
<div class="inner" data-hook="shipping_method_inner">
|
4
4
|
<div id="methods">
|
5
5
|
<p class="field radios">
|
6
6
|
<% @order.rate_hash.each do |shipping_method| %>
|
7
7
|
<label>
|
8
8
|
<%= radio_button(:order, :shipping_method_id, shipping_method[:id]) %>
|
9
|
-
<%if Spree::Config[:shipment_inc_vat] %>
|
10
|
-
<%= shipping_method[:name] %> <%= format_price (1+TaxRate.default)*shipping_method[:cost] %>
|
11
|
-
<%else%>
|
9
|
+
<% if Spree::Config[:shipment_inc_vat] %>
|
10
|
+
<%= shipping_method[:name] %> <%= format_price (1 + TaxRate.default) * shipping_method[:cost] %>
|
11
|
+
<% else %>
|
12
12
|
<%= shipping_method[:name] %> <%= number_to_currency shipping_method[:cost] %>
|
13
|
-
<%end%>
|
13
|
+
<% end %>
|
14
14
|
</label><br />
|
15
15
|
<% end %>
|
16
16
|
</p>
|
17
17
|
</div>
|
18
18
|
<% if Spree::Config[:shipping_instructions] && @order.rate_hash.present? %>
|
19
19
|
<p id="minstrs" data-hook>
|
20
|
-
<%= form.label :special_instructions, t(
|
20
|
+
<%= form.label :special_instructions, t(:shipping_instructions) %><br />
|
21
21
|
<%= form.text_area :special_instructions, :cols => 40, :rows => 7 %>
|
22
22
|
</p>
|
23
23
|
<% end %>
|
@@ -25,5 +25,5 @@
|
|
25
25
|
</fieldset>
|
26
26
|
|
27
27
|
<div class="form-buttons" data-hook="buttons">
|
28
|
-
|
28
|
+
<%= submit_tag t(:save_and_continue), :class => 'continue button primary' %>
|
29
29
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<fieldset id="payment" data-hook>
|
2
|
-
<legend><%= t(
|
2
|
+
<legend><%= t(:payment_information) %></legend>
|
3
3
|
<div data-hook="checkout_payment_step">
|
4
4
|
<% @order.available_payment_methods.each do |method| %>
|
5
5
|
<p>
|
@@ -19,12 +19,12 @@
|
|
19
19
|
</li>
|
20
20
|
<% end %>
|
21
21
|
</ul>
|
22
|
-
<br style=
|
22
|
+
<br style="clear:both;" />
|
23
23
|
<div data-hook="coupon_code_field" data-hook></div>
|
24
24
|
</div>
|
25
25
|
</fieldset>
|
26
26
|
|
27
27
|
<hr class="space" />
|
28
28
|
<div class="form-buttons" data-hook="buttons">
|
29
|
-
|
29
|
+
<%= submit_tag t(:save_and_continue), :class => 'continue button primary' %>
|
30
30
|
</div>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<table data-hook="order_summary">
|
3
3
|
<tbody>
|
4
4
|
<tr data-hook="item_total">
|
5
|
-
<td><strong><%= t(
|
5
|
+
<td><strong><%= t(:item_total) %>:</strong></td>
|
6
6
|
<td><strong><%= number_to_currency order.item_total %></strong></td>
|
7
7
|
</tr>
|
8
8
|
<tbody id="summary-order-charges" data-hook>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<% end %>
|
16
16
|
</tbody>
|
17
17
|
<tr data-hook="order_total">
|
18
|
-
<td><strong><%= t(
|
18
|
+
<td><strong><%= t(:order_total) %>:</strong></td>
|
19
19
|
<td><strong><span id='summary-order-total'><%= number_to_currency @order.total %></span></strong></td>
|
20
20
|
</tr>
|
21
21
|
</tbody>
|
@@ -2,10 +2,10 @@
|
|
2
2
|
<%= javascript_include_tag '/states' %>
|
3
3
|
<% end %>
|
4
4
|
<div id="checkout" data-hook>
|
5
|
-
<h1><%= t(
|
5
|
+
<h1><%= t(:checkout) %></h1>
|
6
6
|
<%= checkout_progress %>
|
7
7
|
<br clear="left" />
|
8
|
-
<%= render
|
8
|
+
<%= render 'shared/error_messages', :target => @order %>
|
9
9
|
<% if @order.state != 'confirm' %>
|
10
10
|
<div id="checkout-summary" data-hook="checkout_summary_box">
|
11
11
|
<%= render 'summary', :order => @order %>
|
@@ -13,6 +13,6 @@
|
|
13
13
|
<% end %>
|
14
14
|
<%= form_for @order, :url => update_checkout_path(@order.state), :html => { :id => "checkout_form_#{@order.state}" } do |form| %>
|
15
15
|
<%= render @order.state, :form => form %>
|
16
|
-
|
16
|
+
<%= submit_tag nil, :id => 'post-final', :style => 'display:none;' %>
|
17
17
|
<% end %>
|
18
18
|
</div>
|
@@ -1,31 +1,31 @@
|
|
1
|
-
<%= image_tag
|
1
|
+
<%= image_tag 'creditcards/creditcard.gif', :id => 'creditcard-image' %>
|
2
2
|
<% param_prefix = "payment_source[#{payment_method.id}]" %>
|
3
3
|
|
4
4
|
<p class="field" data-hook="card_number">
|
5
|
-
|
6
|
-
<% options_hash = Rails.env.production? ? {:autocomplete =>
|
5
|
+
<%= label_tag nil, t(:card_number) %><br />
|
6
|
+
<% options_hash = Rails.env.production? ? {:autocomplete => 'off'} : {} %>
|
7
7
|
<%= text_field_tag "#{param_prefix}[number]", '', options_hash.merge(:id => 'card_number', :class => 'required', :size => 19, :maxlength => 19) %>
|
8
8
|
<span class="req">*</span>
|
9
9
|
|
10
10
|
<span id="card_type" style="display:none;">
|
11
|
-
( <span id="looks_like" ><%= t(
|
12
|
-
<span id="unrecognized"><%= t(
|
11
|
+
( <span id="looks_like" ><%= t(:card_type_is) %> <span id="type"></span></span>
|
12
|
+
<span id="unrecognized"><%= t(:unrecognized_card_type) %></span>
|
13
13
|
)
|
14
14
|
</span>
|
15
15
|
</p>
|
16
16
|
<p class="field" data-hook="card_expiration">
|
17
|
-
|
17
|
+
<%= label_tag nil, t(:expiration) %><br />
|
18
18
|
<%= select_month(Date.today, :prefix => param_prefix, :field_name => 'month', :use_month_numbers => true, :class => 'required') %>
|
19
19
|
<%= select_year(Date.today, :prefix => param_prefix, :field_name => 'year', :start_year => Date.today.year, :end_year => Date.today.year + 15, :class => 'required') %>
|
20
20
|
<span class="req">*</span>
|
21
21
|
</p>
|
22
22
|
<p class="field" data-hook="cart_code">
|
23
|
-
|
23
|
+
<%= label_tag nil, t(:card_code) %><br />
|
24
24
|
<%= text_field_tag "#{param_prefix}[verification_value]", '', options_hash.merge(:id => 'card_code', :class => 'required', :size => 5) %>
|
25
25
|
<span class="req">*</span>
|
26
26
|
<a href="/content/cvv" target="_blank" onclick="window.open(this.href,'cvv_info','left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1');return false" data-hook="ccv_link">
|
27
|
-
(<%= t(
|
27
|
+
(<%= t(:whats_this) %>)
|
28
28
|
</a>
|
29
29
|
</p>
|
30
30
|
<%= hidden_field param_prefix, 'first_name', :value => @order.billing_firstname %>
|
31
|
-
<%= hidden_field param_prefix, 'last_name',
|
31
|
+
<%= hidden_field param_prefix, 'last_name', :value => @order.billing_lastname %>
|