spree_backend 2.3.2 → 2.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcaab04407621b636170b40405d2b04784bae951
4
- data.tar.gz: 2f875cb85b7b5f00f76caac5ff0d38b5a5e38afc
3
+ metadata.gz: d2a0a8249ffdc4df0fd4419a9b2ec3b6871eaaf9
4
+ data.tar.gz: d46f4f76c6804eb26c2c89443fccf1ba5acdf3a1
5
5
  SHA512:
6
- metadata.gz: 63bd4a7ede4219c5234a9b2d9d647e86c83332eb9048263e43e0059320cf4d9fe7b3db6f9e40f8726d28ab8cab06a310a30cabedb783ce0088923b288580910c
7
- data.tar.gz: 9bd26dde28d827366a06776aada15334030d6b99506c02e7a8a1f19b9193acb14333a96a93cebd17021c318c7117b87f703ec06726d45142e967eb920abd2b2e
6
+ metadata.gz: c8e9301a71888f597eb431fc65118566b8c41f6794e60b2b47048516bb4f89b0d3de26014a1c8e87a96ea44ee5c7d6a1536db14517f023ef5d3e90fa0b631c28
7
+ data.tar.gz: 052547c594d36134b8001ecdacea0bb7c4ef65b5bcf90afd8abfe8039a3a99a2344107b65cc19756602d476cd518fd0ad10c876c0263b0c77b1609aaa0037a8b
@@ -13,3 +13,4 @@ $ ->
13
13
  )
14
14
  success: (r) ->
15
15
  ($ '#images').html r
16
+ ($ '.select2').select2()
@@ -104,6 +104,8 @@ $color-ste-void-bg: $color-error !default;
104
104
  $color-ste-void-text: $color-1 !default;
105
105
  $color-ste-canceled-bg: $color-error !default;
106
106
  $color-ste-canceled-text: $color-1 !default;
107
+ $color-ste-failed-bg: $color-error !default;
108
+ $color-ste-failed-text: $color-1 !default;
107
109
  $color-ste-address-bg: $color-error !default;
108
110
  $color-ste-address-text: $color-1 !default;
109
111
  $color-ste-checkout-bg: $color-notice !default;
@@ -122,20 +124,28 @@ $color-ste-inactive-bg: $color-notice !default;
122
124
  $color-ste-inactive-text: $color-1 !default;
123
125
  $color-ste-considered_risky-bg: $color-error !default;
124
126
  $color-ste-considered_risky-text:$color-1 !default;
127
+ $color-ste-success-bg: $color-success !default;
128
+ $color-ste-success-text: $color-1 !default;
129
+ $color-ste-notice-bg: $color-notice !default;
130
+ $color-ste-notice-text: $color-1 !default;
131
+ $color-ste-error-bg: $color-error !default;
132
+ $color-ste-error-text: $color-1 !default;
125
133
 
126
134
  // Available states
127
135
  $states: completed, complete, sold, pending, awaiting_return, returned, credit_owed, paid, shipped, balance_due, backorder, checkout, cart, address,
128
- delivery, payment, confirm, canceled, ready, void, active, inactive, considered_risky !default;
136
+ delivery, payment, confirm, canceled, failed, ready, void, active, inactive, considered_risky, success, notice, error !default;
129
137
 
130
138
  $states-bg-colors: $color-ste-completed-bg, $color-ste-complete-bg, $color-ste-sold-bg, $color-ste-pending-bg, $color-ste-awaiting_return-bg,
131
- $color-ste-returned-bg, $color-ste-credit_owed-bg, $color-ste-paid-bg, $color-ste-shipped-bg, $color-ste-balance_due-bg, $color-ste-backorder-bg,
132
- $color-ste-checkout-bg, $color-ste-cart-bg, $color-ste-address-bg, $color-ste-delivery-bg, $color-ste-payment-bg, $color-ste-confirm-bg,
133
- $color-ste-canceled-bg, $color-ste-ready-bg, $color-ste-void-bg, $color-ste-active-bg, $color-ste-inactive-bg, $color-ste-considered_risky-bg !default;
134
-
135
- $states-text-colors: $color-ste-completed-text, $color-ste-complete-text, $color-ste-sold-text, $color-ste-pending-text, $color-ste-awaiting_return-text,
136
- $color-ste-returned-text, $color-ste-credit_owed-text, $color-ste-paid-text, $color-ste-shipped-text, $color-ste-balance_due-text, $color-ste-backorder-text,
137
- $color-ste-checkout-text, $color-ste-cart-text, $color-ste-address-text, $color-ste-delivery-text, $color-ste-payment-text, $color-ste-confirm-text,
138
- $color-ste-canceled-text, $color-ste-ready-text, $color-ste-void-text, $color-ste-active-text, $color-ste-inactive-text, $color-ste-considered_risky-text !default;
139
+ $color-ste-returned-bg, $color-ste-credit_owed-bg, $color-ste-paid-bg, $color-ste-shipped-bg, $color-ste-balance_due-bg, $color-ste-backorder-bg,
140
+ $color-ste-checkout-bg, $color-ste-cart-bg, $color-ste-address-bg, $color-ste-delivery-bg, $color-ste-payment-bg, $color-ste-confirm-bg,
141
+ $color-ste-canceled-bg, $color-ste-failed-bg, $color-ste-ready-bg, $color-ste-void-bg, $color-ste-active-bg, $color-ste-inactive-bg, $color-ste-considered_risky-bg,
142
+ $color-ste-success-bg, $color-ste-notice-bg, $color-ste-error-bg !default;
143
+
144
+ $states-text-colors: $color-ste-completed-text, $color-ste-complete-text, $color-ste-sold-text, $color-ste-pending-text, $color-ste-awaiting_return-text,
145
+ $color-ste-returned-text, $color-ste-credit_owed-text, $color-ste-paid-text, $color-ste-shipped-text, $color-ste-balance_due-text, $color-ste-backorder-text,
146
+ $color-ste-checkout-text, $color-ste-cart-text, $color-ste-address-text, $color-ste-delivery-text, $color-ste-payment-text, $color-ste-confirm-text,
147
+ $color-ste-canceled-text, $color-ste-failed-text, $color-ste-ready-text, $color-ste-void-text, $color-ste-active-text, $color-ste-inactive-text, $color-ste-considered_risky-text,
148
+ $color-ste-success-text, $color-ste-notice-text, $color-ste-error-text !default;
139
149
 
140
150
  // Available actions
141
151
  $actions: edit, clone, remove, void, capture, save, cancel, mail !default;
@@ -22,7 +22,7 @@ module Spree
22
22
  def create
23
23
  invoke_callbacks(:create, :before)
24
24
  @payment ||= @order.payments.build(object_params)
25
- if params[:card].present? and params[:card] != 'new'
25
+ if @payment.payment_method.source_required? && params[:card].present? and params[:card] != 'new'
26
26
  @payment.source = @payment.payment_method.payment_source_class.find_by_id(params[:card])
27
27
  end
28
28
 
@@ -43,7 +43,7 @@
43
43
  </div>
44
44
  <div class="field">
45
45
  <%= label_tag nil, Spree.t(:email) %>
46
- <%= f.email_field :email_cont %>
46
+ <%= f.text_field :email_cont %>
47
47
  </div>
48
48
  </div>
49
49
 
@@ -67,7 +67,7 @@
67
67
  </div>
68
68
  <div class="field">
69
69
  <%= label_tag nil, Spree.t(:promotion) %>
70
- <%= f.select :promotions_id_in, Spree::Promotion.all.collect {|p| [p.name, p.id]}, {:include_blank => true}, :class => 'select2' %>
70
+ <%= f.select :promotions_id_in, Spree::Promotion.applied.pluck(:name, :id), {:include_blank => true}, :class => 'select2' %>
71
71
  </div>
72
72
  </div>
73
73
 
@@ -2,7 +2,8 @@
2
2
 
3
3
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @product } %>
4
4
 
5
- <%= form_for [:admin, @product], :html => { :multipart => true } do |f| %>
5
+ <%= form_for [:admin, @product], method: :post, url: admin_products_path, :html => { :multipart => true } do |f| %>
6
+
6
7
  <fieldset data-hook="new_product">
7
8
 
8
9
  <legend align="center"><%= Spree.t(:new_product) %></legend>
@@ -17,21 +17,21 @@
17
17
  <%= search_form_for [:admin, @search] do |f| %>
18
18
  <div class="five columns">
19
19
  <div class="field">
20
- <%= label_tag nil, 'name' %>
20
+ <%= label_tag nil, Spree.t(:name) %>
21
21
  <%= f.text_field :name_cont, tabindex: 1 %>
22
22
  </div>
23
23
  </div>
24
24
 
25
25
  <div class="five columns">
26
26
  <div class="field">
27
- <%= label_tag nil, 'code' %>
27
+ <%= label_tag nil, Spree.t(:code) %>
28
28
  <%= f.text_field :code_cont, tabindex: 1 %>
29
29
  </div>
30
30
  </div>
31
31
 
32
32
  <div class="five columns">
33
33
  <div class="field">
34
- <%= label_tag nil, 'path' %>
34
+ <%= label_tag nil, Spree.t(:path) %>
35
35
  <%= f.text_field :path_cont, tabindex: 1 %>
36
36
  </div>
37
37
  </div>
@@ -94,4 +94,4 @@
94
94
  <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/promotion')) %>,
95
95
  <%= link_to Spree.t(:add_one), spree.new_admin_promotion_path %>!
96
96
  </div>
97
- <% end %>
97
+ <% end %>
@@ -21,7 +21,7 @@
21
21
 
22
22
  </div>
23
23
 
24
- <div class="omega six columns">
24
+ <div data-hook="admin_user_form_password_fields" class="omega six columns">
25
25
  <%= f.field_container :password do %>
26
26
  <%= f.label :password, Spree.t(:password) %>
27
27
  <%= f.password_field :password, :class => 'fullwidth' %>
@@ -0,0 +1 @@
1
+ Rails.application.config.assets.precompile += %w( jquery-ui/* )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-29 00:00:00.000000000 Z
11
+ date: 2014-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_api
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.3.2
19
+ version: 2.3.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.3.2
26
+ version: 2.3.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: spree_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.3.2
33
+ version: 2.3.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.3.2
40
+ version: 2.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jquery-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.1.0
47
+ version: 3.1.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.1.0
54
+ version: 3.1.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jquery-ui-rails
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -458,6 +458,7 @@ files:
458
458
  - app/views/spree/admin/zones/new.html.erb
459
459
  - app/views/spree/layouts/admin.html.erb
460
460
  - app/views/spree/test_mailer/test_email.text.erb
461
+ - config/initializers/assets.rb
461
462
  - config/initializers/form_builder.rb
462
463
  - config/locales/en.yml
463
464
  - config/routes.rb