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: 2576b7e7409bd237d0a969011b99430430bd2fe4
4
- data.tar.gz: 080fb92f9d02a049ad453e76d017970d5eb1ecb4
3
+ metadata.gz: 462c24c0ea7bcd330a6eeaf3e8f27dae6d0cc954
4
+ data.tar.gz: 1a9790046c08cfcf4b89c48011da4fbbf53dc055
5
5
  SHA512:
6
- metadata.gz: e5fc4c72e6f3b9aac105215c86fdca50160d1046e50aea638095eaef9da9448eb200a6e829b38ec6add206fe4deccfba66b8a0f333f1f28de8d9e14c241501db
7
- data.tar.gz: dc838a7b4114c56e63ed83c29e1a6049e0f2fae92fa15d29d08a338011cc8b0a0c5847900bc5c0a3fc8435f678e229a33bb963c065c78f5cca9de45ddd8ee114
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, Spree::Price) %>
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', disabled: (cannot? :edit, Spree::ShippingCategory) }) %>
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', disabled: (cannot? :edit, Spree::TaxCategory) }) %>
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::OptionType %>
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?(:stock, Spree::Product) %>
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?(:create, Spree::OptionType) && can?(:create, Spree::OptionValue) %>
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
- <%= Spree.t(:and) %>
55
- <%= link_to Spree.t(:option_values), spree.admin_option_types_url %>
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.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-08-16 00:00:00.000000000 Z
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.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.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.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.1
40
+ version: 3.1.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bootstrap-sass
43
43
  requirement: !ruby/object:Gem::Requirement