solidus_backend 3.1.7 → 3.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spree/backend/variant_autocomplete.js +4 -2
- data/app/views/spree/admin/product_properties/index.html.erb +2 -2
- data/app/views/spree/admin/products/_form.html.erb +1 -1
- data/app/views/spree/admin/stores/_form.html.erb +2 -2
- data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -1
- data/app/views/spree/admin/users/index.html.erb +1 -1
- data/app/views/spree/admin/users/items.html.erb +1 -1
- data/app/views/spree/admin/users/orders.html.erb +1 -1
- data/app/views/spree/admin/variants/_table.html.erb +7 -6
- data/app/views/spree/admin/variants/_table_filter.html.erb +8 -9
- data/app/views/spree/admin/variants/index.html.erb +1 -1
- data/vendor/assets/stylesheets/solidus_admin/select2.scss +2 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68a1543b1368db833acd5d99fedacbcb94b6a29796e686b60910e610320e0ea3
|
4
|
+
data.tar.gz: 85130236d083ace48d0a4a0ceded5d856e912419fe29593c568c736480e7a21f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b5bbb57cccca2c85b6c463cfddc1f1c5aff508d677e4bd6c9895a7a7df25c8bc6f6344563e81eb8cb2ff57499263062e16f0da288794e226645500827106d64
|
7
|
+
data.tar.gz: 976db3f4710ecdf6557d45d39a6db8d265d95e654ecd3820fe2c7efdb8e635e5bc47fad73b799238bf358d13e0cf59650228a2c85e511ce2a4240da2b7285e49
|
@@ -34,7 +34,8 @@
|
|
34
34
|
q: {
|
35
35
|
product_name_or_sku_cont: term
|
36
36
|
},
|
37
|
-
token: Spree.api_key
|
37
|
+
token: Spree.api_key,
|
38
|
+
page: page
|
38
39
|
};
|
39
40
|
return _.extend(searchData, searchOptions);
|
40
41
|
},
|
@@ -42,7 +43,8 @@
|
|
42
43
|
results: function(data, page) {
|
43
44
|
window.variants = data["variants"];
|
44
45
|
return {
|
45
|
-
results: data["variants"]
|
46
|
+
results: data["variants"],
|
47
|
+
more: data.current_page * data.per_page < data.total_count
|
46
48
|
};
|
47
49
|
}
|
48
50
|
},
|
@@ -36,7 +36,7 @@
|
|
36
36
|
</tbody>
|
37
37
|
</table>
|
38
38
|
|
39
|
-
<% if can?(
|
39
|
+
<% if can?(:create, Spree::ProductProperty) && can?(:update, Spree::ProductProperty) %>
|
40
40
|
<%= render 'spree/admin/shared/edit_resource_links' %>
|
41
41
|
<% end %>
|
42
42
|
|
@@ -95,7 +95,7 @@
|
|
95
95
|
<% end %>
|
96
96
|
</tbody>
|
97
97
|
</table>
|
98
|
-
<% if can?(
|
98
|
+
<% if can?(:create, Spree::VariantPropertyRule) && can?(:update, Spree::VariantPropertyRule) %>
|
99
99
|
<%= render 'spree/admin/shared/edit_resource_links' %>
|
100
100
|
<% end %>
|
101
101
|
</fieldset>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<%= f.field_container :price do %>
|
34
34
|
<%= f.label :price, class: Spree::Config.require_master_price ? 'required' : '' %>
|
35
35
|
|
36
|
-
<% if f.object.new_record? || f.object.has_default_price? %>
|
36
|
+
<% if (f.object.new_record? || f.object.has_default_price?) && !f.object.discarded? %>
|
37
37
|
<%= render "spree/admin/shared/number_with_currency",
|
38
38
|
f: f,
|
39
39
|
amount_attr: :price,
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<%= f.field_container :cart_tax_country_iso do %>
|
63
63
|
<%= f.label :cart_tax_country_iso %>
|
64
64
|
<%= f.field_hint :cart_tax_country_iso %>
|
65
|
-
<%= f.
|
66
|
-
|
65
|
+
<%= f.collection_select :cart_tax_country_iso,
|
66
|
+
available_countries(restrict_to_zone: nil), :iso, :name,
|
67
67
|
{ include_blank: t(".no_cart_tax_country") },
|
68
68
|
{ class: "custom-select fullwidth" } %>
|
69
69
|
<%= f.error_message_on :cart_tax_country_iso %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% content_for :page_actions do %>
|
2
|
-
<% if can?(
|
2
|
+
<% if can?(:admin, Spree::Order) && can?(:create, Spree::Order) %>
|
3
3
|
<li>
|
4
4
|
<%= link_to t(".create_order"), spree.new_admin_order_path(user_id: @user.id), class: 'btn btn-primary' %>
|
5
5
|
</li>
|
@@ -89,7 +89,7 @@
|
|
89
89
|
<% if can?(:edit, user) %>
|
90
90
|
<%= link_to_edit user, no_text: true %>
|
91
91
|
<% end %>
|
92
|
-
<% if can?(:destroy, user) && user.
|
92
|
+
<% if can?(:destroy, user) && user.can_be_deleted? %>
|
93
93
|
<%= link_to_delete user, no_text: true %>
|
94
94
|
<% end %>
|
95
95
|
</td>
|
@@ -38,7 +38,7 @@
|
|
38
38
|
<tr data-hook="admin_orders_index_rows">
|
39
39
|
<td class="order-completed-at"><%= l(order.completed_at.to_date) if order.completed_at %></td>
|
40
40
|
<td class="order-number">
|
41
|
-
<% if can?(
|
41
|
+
<% if can?(:admin, order) && can?(:edit, order) %>
|
42
42
|
<%= link_to order.number, edit_admin_order_path(order) %>
|
43
43
|
<% else %>
|
44
44
|
<%= order.number %>
|
@@ -3,10 +3,9 @@
|
|
3
3
|
<table class="index sortable" data-sortable-link="<%= update_positions_admin_product_variants_path(@product) %>">
|
4
4
|
<colgroup>
|
5
5
|
<col style="width: 5%" />
|
6
|
-
<col style="width:
|
7
|
-
<col style="width: 20%" />
|
6
|
+
<col style="width: 35%" />
|
8
7
|
<col style="width: 20%" />
|
9
|
-
<col style="width:
|
8
|
+
<col style="width: 25%" />
|
10
9
|
<col style="width: 15%" />
|
11
10
|
</colgroup>
|
12
11
|
<thead data-hook="variants_header">
|
@@ -40,9 +39,11 @@
|
|
40
39
|
</td>
|
41
40
|
</tr>
|
42
41
|
<% end %>
|
43
|
-
<% if variants.empty? %>
|
44
|
-
<tr><td colspan="4"><%= t('spree.none') %></td></tr>
|
45
|
-
<% end %>
|
46
42
|
</tbody>
|
47
43
|
</table>
|
44
|
+
<% if variants.empty? %>
|
45
|
+
<div class="alert alert-warning">
|
46
|
+
<%= t('.no_variants_found', term: params[:variant_search_term]) %>
|
47
|
+
</div>
|
48
|
+
<% end %>
|
48
49
|
<%= paginate variants, theme: "solidus_admin" %>
|
@@ -4,14 +4,13 @@
|
|
4
4
|
|
5
5
|
<% content_for :table_filter do %>
|
6
6
|
<%= form_for :variant_search, url: spree.admin_product_variants_path(product), method: :get do |f| %>
|
7
|
-
<div class="
|
8
|
-
<div
|
9
|
-
|
10
|
-
|
7
|
+
<div class="row">
|
8
|
+
<div class="col-10">
|
9
|
+
<div data-hook="admin_variants_index_search" class="field">
|
10
|
+
<%= f.label :variant_search_term, t('spree.variant_search_placeholder') %>
|
11
|
+
<%= text_field_tag :variant_search_term, params[:variant_search_term], class: "fullwidth", placeholder: t('spree.variant_search_placeholder') %>
|
12
|
+
</div>
|
11
13
|
</div>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<% if product.variants.with_discarded.discarded.any? %>
|
15
14
|
<div class="col-2">
|
16
15
|
<div class="field checkbox">
|
17
16
|
<label>
|
@@ -20,10 +19,10 @@
|
|
20
19
|
</label>
|
21
20
|
</div>
|
22
21
|
</div>
|
23
|
-
|
22
|
+
</div>
|
24
23
|
|
25
24
|
<div class="actions filter-actions">
|
26
|
-
<%=
|
25
|
+
<%= button_tag t('spree.filter_results'), class: 'btn btn-primary' %>
|
27
26
|
</div>
|
28
27
|
<% end %>
|
29
28
|
<% end %>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<% end %>
|
15
15
|
<% end %>
|
16
16
|
|
17
|
-
<% if @product.variants.with_discarded.any? %>
|
17
|
+
<% if @product.variants.with_discarded.any? || params[:variant_search_term].present? %>
|
18
18
|
<%= render "table_filter", product: @product %>
|
19
19
|
<%= render "table", variants: @variants %>
|
20
20
|
<% else %>
|
@@ -439,7 +439,7 @@ disabled look for disabled choices in the results dropdown
|
|
439
439
|
}
|
440
440
|
|
441
441
|
.select2-more-results.select2-active {
|
442
|
-
background: #f4f4f4 image-url('solidus_admin/select2-spinner.gif') no-repeat
|
442
|
+
background: #f4f4f4 image-url('solidus_admin/select2-spinner.gif') no-repeat 95% center;
|
443
443
|
}
|
444
444
|
|
445
445
|
.select2-results .select2-ajax-error {
|
@@ -449,6 +449,7 @@ disabled look for disabled choices in the results dropdown
|
|
449
449
|
.select2-more-results {
|
450
450
|
background: #f4f4f4;
|
451
451
|
display: list-item;
|
452
|
+
padding: 0.5em 1em
|
452
453
|
}
|
453
454
|
|
454
455
|
/* disabled styles */
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_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.9
|
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.9
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: solidus_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.9
|
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.9
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: coffee-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -905,7 +905,7 @@ homepage: http://solidus.io
|
|
905
905
|
licenses:
|
906
906
|
- BSD-3-Clause
|
907
907
|
metadata: {}
|
908
|
-
post_install_message:
|
908
|
+
post_install_message:
|
909
909
|
rdoc_options: []
|
910
910
|
require_paths:
|
911
911
|
- lib
|
@@ -920,8 +920,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
920
920
|
- !ruby/object:Gem::Version
|
921
921
|
version: 1.8.23
|
922
922
|
requirements: []
|
923
|
-
rubygems_version: 3.
|
924
|
-
signing_key:
|
923
|
+
rubygems_version: 3.3.7
|
924
|
+
signing_key:
|
925
925
|
specification_version: 4
|
926
926
|
summary: Admin interface for the Solidus e-commerce framework.
|
927
927
|
test_files: []
|