spree_backend 3.1.1 → 3.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 462c24c0ea7bcd330a6eeaf3e8f27dae6d0cc954
|
4
|
+
data.tar.gz: 1a9790046c08cfcf4b89c48011da4fbbf53dc055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 491105783d07bc80c285e9651071ead3444b1972997b1c9cc5d4271c5260e7a70f4ae96181375956497b1d8eb7d27f4ffa12ed0468573c08266b17361b6228a6
|
7
|
+
data.tar.gz: 1ef421f821223485b55ea00d3d5a2d7e973942b2a8de53f83838aa4227853ed34d1e051be28fda8c15a3f3707d6f41c86e8ba27ecd0a3e4e4b1e040b1f04e9ee
|
@@ -30,8 +30,8 @@
|
|
30
30
|
}
|
31
31
|
}
|
32
32
|
|
33
|
-
.btn-sm .glyphicon { padding: 0 }
|
33
|
+
.btn-sm .glyphicon { padding: 0; }
|
34
34
|
|
35
35
|
.btn.action-void { @extend .btn-danger; }
|
36
36
|
.btn.action-capture { @extend .btn-success; }
|
37
|
-
.btn.payment-action-edit { @extend .btn-primary; }
|
37
|
+
.btn.payment-action-edit { @extend .btn-primary; }
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<div data-hook="admin_product_form_price">
|
34
34
|
<%= f.field_container :price, class: ['form-group'] do %>
|
35
35
|
<%= f.label :price, raw(Spree.t(:master_price) + content_tag(:span, ' *', class: "required")) %>
|
36
|
-
<%= f.text_field :price, value: number_to_currency(@product.price, unit: ''), class: 'form-control', disabled: (cannot? :update,
|
36
|
+
<%= f.text_field :price, value: number_to_currency(@product.price, unit: ''), class: 'form-control', disabled: (cannot? :update, @product.price) %>
|
37
37
|
<%= f.error_message_on :price %>
|
38
38
|
<% end %>
|
39
39
|
</div>
|
@@ -141,7 +141,7 @@
|
|
141
141
|
<div data-hook="admin_product_form_shipping_categories">
|
142
142
|
<%= f.field_container :shipping_categories, class: ['form-group'] do %>
|
143
143
|
<%= f.label :shipping_category_id, Spree.t(:shipping_categories) %>
|
144
|
-
<%= f.collection_select(:shipping_category_id, @shipping_categories, :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2'
|
144
|
+
<%= f.collection_select(:shipping_category_id, @shipping_categories, :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2' }) %>
|
145
145
|
<%= f.error_message_on :shipping_category %>
|
146
146
|
<% end %>
|
147
147
|
</div>
|
@@ -149,7 +149,7 @@
|
|
149
149
|
<div data-hook="admin_product_form_tax_category">
|
150
150
|
<%= f.field_container :tax_category, class: ['form-group'] do %>
|
151
151
|
<%= f.label :tax_category_id, Spree.t(:tax_category) %>
|
152
|
-
<%= f.collection_select(:tax_category_id, @tax_categories, :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2'
|
152
|
+
<%= f.collection_select(:tax_category_id, @tax_categories, :id, :name, { include_blank: Spree.t('match_choices.none') }, { class: 'select2' }) %>
|
153
153
|
<%= f.error_message_on :tax_category %>
|
154
154
|
<% end %>
|
155
155
|
</div>
|
@@ -180,7 +180,7 @@
|
|
180
180
|
<%= f.field_container :option_types, class: ['form-group'] do %>
|
181
181
|
<%= f.label :option_type_ids, Spree.t(:option_types) %>
|
182
182
|
|
183
|
-
<% if can? :modify, Spree::
|
183
|
+
<% if can? :modify, Spree::ProductOptionType %>
|
184
184
|
<%= f.hidden_field :option_type_ids, value: @product.option_type_ids.join(',') %>
|
185
185
|
<% elsif @product.option_types.any? %>
|
186
186
|
<ul class="text_list">
|
@@ -19,6 +19,6 @@
|
|
19
19
|
<% end if can?(:admin, Spree::ProductProperty) %>
|
20
20
|
<%= content_tag :li, class: ('active' if current == :stock) do %>
|
21
21
|
<%= link_to_with_icon 'home', Spree.t(:stock), stock_admin_product_url(@product) %>
|
22
|
-
<% end if can?(:
|
22
|
+
<% end if can?(:admin, Spree::Stock) %>
|
23
23
|
</ul>
|
24
24
|
<% end %>
|
@@ -47,12 +47,14 @@
|
|
47
47
|
<% end %>
|
48
48
|
|
49
49
|
<% if @product.empty_option_values? %>
|
50
|
-
<% if can?(:
|
50
|
+
<% if can?(:modify, Spree::ProductOptionType) %>
|
51
51
|
<p class='first_add_option_types no-objects-found' data-hook="first_add_option_types">
|
52
52
|
<%= Spree.t(:to_add_variants_you_must_first_define) %>
|
53
53
|
<%= link_to(Spree.t(:option_types), spree.admin_product_url(@product)) %>
|
54
|
-
|
55
|
-
|
54
|
+
<% if can?(:display, Spree::OptionType) && can?([:create, :display], Spree::OptionValue) %>
|
55
|
+
<%= Spree.t(:and) %>
|
56
|
+
<%= link_to Spree.t(:option_values), spree.admin_option_types_url %>
|
57
|
+
<% end %>
|
56
58
|
</p>
|
57
59
|
<% end %>
|
58
60
|
<% else %>
|
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: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_api
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.1.
|
19
|
+
version: 3.1.2
|
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: 3.1.
|
26
|
+
version: 3.1.2
|
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: 3.1.
|
33
|
+
version: 3.1.2
|
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: 3.1.
|
40
|
+
version: 3.1.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bootstrap-sass
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|