spree_admin 5.4.0.beta4 → 5.4.0.beta5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/spree/admin/stores_controller.rb +0 -2
- data/app/helpers/spree/admin/stores_helper.rb +1 -1
- data/app/views/spree/admin/stores/edit.html.erb +0 -1
- data/app/views/spree/admin/stores/form/_checkout.html.erb +0 -27
- metadata +6 -11
- data/app/views/spree/admin/shared/_page_section_image.html.erb +0 -4
- data/app/views/spree/admin/shared/_page_section_logo.html.erb +0 -1
- data/app/views/spree/admin/stores/form/_buttons.html.erb +0 -3
- data/app/views/spree/admin/stores/form/_checkout_links.html.erb +0 -28
- data/app/views/spree/admin/stores/form/_policies.html.erb +0 -69
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f45183de9d64006954bcebdd91c2c544994ea85f1f5b574b69a6a35f337f5af4
|
|
4
|
+
data.tar.gz: 4f3f18d194978187237fa890bd90d6632bbeee79928c8fa228e98a3581e8f328
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 624c5d873b90a4b4a7f2570b263b70f506c80be33549326a3915bfee92479a7de0bd9c85c87654cb16c1202095bb8c09f855e57e485bb7dddc4e4033540dcc46
|
|
7
|
+
data.tar.gz: 26d013dab76bebf422f1d0ff17b68a21f574d4954ad65bc661b789cce8e75d743d003cf7e1fc844e6ecd877890175b0b4b1b68a00f1b7c746ed938f48ef93f63
|
|
@@ -11,8 +11,6 @@ module Spree
|
|
|
11
11
|
def edit
|
|
12
12
|
if params[:section] == 'emails'
|
|
13
13
|
add_breadcrumb Spree.t(:emails), spree.edit_admin_store_path(section: params[:section])
|
|
14
|
-
elsif params[:section] == 'policies'
|
|
15
|
-
add_breadcrumb Spree.t(:policies), spree.edit_admin_store_path(section: params[:section])
|
|
16
14
|
elsif params[:section] == 'checkout'
|
|
17
15
|
add_breadcrumb Spree.t(:checkout), spree.edit_admin_store_path(section: params[:section])
|
|
18
16
|
else
|
|
@@ -17,7 +17,7 @@ module Spree
|
|
|
17
17
|
Rails.cache.fetch(["#{store.cache_key_with_version}/admin_icon", opts.to_param]) do
|
|
18
18
|
if store.logo&.attached? && store.logo&.variable?
|
|
19
19
|
spree_image_tag(store.logo, class: opts[:class], width: opts[:width], height: opts[:height])
|
|
20
|
-
elsif store.favicon_image&.attached? && store.favicon_image&.variable?
|
|
20
|
+
elsif store.respond_to?(:favicon_image) && store.favicon_image&.attached? && store.favicon_image&.variable?
|
|
21
21
|
spree_image_tag(store.favicon_image, class: opts[:class], width: opts[:width], height: opts[:height])
|
|
22
22
|
else
|
|
23
23
|
first_letter_icon(store.name, opts)
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
<%= render partial: 'spree/admin/stores/form/basic', locals: { f: f } if params[:section].blank? || params[:section] == 'general-settings' %>
|
|
11
11
|
<%= render partial: 'spree/admin/stores/form/emails', locals: { f: f } if params[:section] == 'emails' %>
|
|
12
12
|
<%= render partial: 'spree/admin/stores/form/checkout', locals: { f: f } if params[:section] == 'checkout' %>
|
|
13
|
-
<%= render partial: 'spree/admin/stores/form/policies', locals: { f: f } if params[:section] == 'policies' %>
|
|
14
13
|
<% end %>
|
|
15
14
|
</div>
|
|
16
15
|
</div>
|
|
@@ -20,30 +20,3 @@
|
|
|
20
20
|
<%= f.spree_check_box :preferred_special_instructions_enabled, label: Spree.t('admin.checkout_settings.special_instructions.label'), help: Spree.t('admin.checkout_settings.special_instructions.description') %>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
|
-
|
|
24
|
-
<div class="card mb-6">
|
|
25
|
-
<div class="card-header">
|
|
26
|
-
<h5 class="card-title"><%= Spree.t(:checkout_message) %></h5>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<div class="card-body">
|
|
30
|
-
<%= f.spree_rich_text_area :checkout_message, label: false, help: Spree.t('admin.checkout_settings.checkout_message_description') %>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<% if current_store.respond_to?(:links) %>
|
|
35
|
-
<div class="card mb-6">
|
|
36
|
-
<div class="card-header">
|
|
37
|
-
<h5 class="card-title"><%= Spree.t('admin.checkout_settings.checkout_links.label') %></h5>
|
|
38
|
-
</div>
|
|
39
|
-
|
|
40
|
-
<div class="card-body">
|
|
41
|
-
<div class="alert alert-info">
|
|
42
|
-
<div>
|
|
43
|
-
<%= Spree.t('admin.checkout_settings.checkout_links.description') %>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<%= render 'spree/admin/stores/form/checkout_links' %>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
<% end %>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.4.0.
|
|
4
|
+
version: 5.4.0.beta5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vendo Connect Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: spree
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 5.4.0.
|
|
19
|
+
version: 5.4.0.beta5
|
|
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: 5.4.0.
|
|
26
|
+
version: 5.4.0.beta5
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: active_link_to
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -891,8 +891,6 @@ files:
|
|
|
891
891
|
- app/views/spree/admin/shared/_no_image.html.erb
|
|
892
892
|
- app/views/spree/admin/shared/_no_resource_found.html.erb
|
|
893
893
|
- app/views/spree/admin/shared/_page_alerts.html.erb
|
|
894
|
-
- app/views/spree/admin/shared/_page_section_image.html.erb
|
|
895
|
-
- app/views/spree/admin/shared/_page_section_logo.html.erb
|
|
896
894
|
- app/views/spree/admin/shared/_page_tabs.html.erb
|
|
897
895
|
- app/views/spree/admin/shared/_preferences.html.erb
|
|
898
896
|
- app/views/spree/admin/shared/_product_image.html.erb
|
|
@@ -962,11 +960,8 @@ files:
|
|
|
962
960
|
- app/views/spree/admin/stores/edit.html.erb
|
|
963
961
|
- app/views/spree/admin/stores/edit_emails.html.erb
|
|
964
962
|
- app/views/spree/admin/stores/form/_basic.html.erb
|
|
965
|
-
- app/views/spree/admin/stores/form/_buttons.html.erb
|
|
966
963
|
- app/views/spree/admin/stores/form/_checkout.html.erb
|
|
967
|
-
- app/views/spree/admin/stores/form/_checkout_links.html.erb
|
|
968
964
|
- app/views/spree/admin/stores/form/_emails.html.erb
|
|
969
|
-
- app/views/spree/admin/stores/form/_policies.html.erb
|
|
970
965
|
- app/views/spree/admin/stores/update.turbo_stream.erb
|
|
971
966
|
- app/views/spree/admin/tables/_column_selector.html.erb
|
|
972
967
|
- app/views/spree/admin/tables/_filter_group.html.erb
|
|
@@ -1169,9 +1164,9 @@ licenses:
|
|
|
1169
1164
|
- BSD-3-Clause
|
|
1170
1165
|
metadata:
|
|
1171
1166
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
|
1172
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v5.4.0.
|
|
1167
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v5.4.0.beta5
|
|
1173
1168
|
documentation_uri: https://docs.spreecommerce.org/
|
|
1174
|
-
source_code_uri: https://github.com/spree/spree/tree/v5.4.0.
|
|
1169
|
+
source_code_uri: https://github.com/spree/spree/tree/v5.4.0.beta5
|
|
1175
1170
|
post_install_message:
|
|
1176
1171
|
rdoc_options: []
|
|
1177
1172
|
require_paths:
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<%= f.spree_file_field :asset, width: 400, height: 128, auto_submit: true, label: Spree.t(:image) %>
|
|
2
|
-
<% if f.object.has_preference?(:image_alt) %>
|
|
3
|
-
<%= f.spree_text_field :preferred_image_alt, label: Spree.t(:alt_text), data: { action: 'auto-submit#submit' } %>
|
|
4
|
-
<% end %>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<%= f.spree_file_field :asset, width: 400, height: 128, auto_submit: true, label: Spree.t(:logo) %>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<div id="checkout_links">
|
|
2
|
-
<% if current_store.links.any? %>
|
|
3
|
-
<ul class="list-group rounded-lg mb-6 border-gray-200"
|
|
4
|
-
data-controller="sortable"
|
|
5
|
-
data-sortable-handle-value=".handle"
|
|
6
|
-
data-sortable-resource-name-value="page_link"
|
|
7
|
-
data-sortable-response-kind-value="turbo-stream">
|
|
8
|
-
<% current_store.links.each do |link| %>
|
|
9
|
-
<li class="list-group-item p-0 hover:bg-gray-25"
|
|
10
|
-
data-sortable-update-url="<%= spree.admin_page_link_path(link, sorting_only: true, format: :turbo_stream) %>"
|
|
11
|
-
>
|
|
12
|
-
<%= turbo_frame_tag spree_dom_id(link), class: 'flex items-center w-full py-2 pl-6 pr-2' do %>
|
|
13
|
-
<%= link_to link.label, spree.edit_admin_page_link_path(link), class: 'block text-gray-900 flex-1 no-underline' %>
|
|
14
|
-
<span class="btn btn-sm handle shadow-none hover:bg-gray-100 px-1 cursor-move ml-4">
|
|
15
|
-
<%= icon 'grip-vertical', class: 'mr-0' %>
|
|
16
|
-
</span>
|
|
17
|
-
<% end %>
|
|
18
|
-
</li>
|
|
19
|
-
<% end %>
|
|
20
|
-
</ul>
|
|
21
|
-
<% else %>
|
|
22
|
-
<p class="text-gray-600 text-center p-12">
|
|
23
|
-
<%= Spree.t(:no_resource_found, resource: Spree::PageLink.model_name.human) %>
|
|
24
|
-
</p>
|
|
25
|
-
<% end %>
|
|
26
|
-
|
|
27
|
-
<%= link_to_with_icon 'plus', Spree.t(:add_link), spree.admin_store_links_path(current_store), class: 'btn btn-primary w-full', data: { turbo_method: :post } %>
|
|
28
|
-
</div>
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<%= content_for(:page_title) do %>
|
|
2
|
-
<%= Spree.t(:policies) %>
|
|
3
|
-
<% end %>
|
|
4
|
-
|
|
5
|
-
<div class="alert alert-info">
|
|
6
|
-
Policies will be automatically added to footer of your store and will be available to customers during checkout.
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<div class="card mb-6">
|
|
10
|
-
<div class="card-header">
|
|
11
|
-
<h5 class="card-title"><%= Spree.t(:terms_of_service) %></h5>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="card-body">
|
|
14
|
-
<p class="text-gray-600">
|
|
15
|
-
Customers will need to accept these terms of service during signup.
|
|
16
|
-
</p>
|
|
17
|
-
<%= f.spree_rich_text_area :customer_terms_of_service, label: Spree.t(:terms_of_service) %>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<div class="card mb-6">
|
|
22
|
-
<div class="card-header">
|
|
23
|
-
<h5 class="card-title"><%= Spree.t(:privacy_policy) %></h5>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="card-body">
|
|
26
|
-
<p class="text-gray-600">
|
|
27
|
-
Customers will need to accept these privacy policy during signup.
|
|
28
|
-
</p>
|
|
29
|
-
<%= f.spree_rich_text_area :customer_privacy_policy, label: Spree.t(:privacy_policy) %>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
|
-
<div class="card mb-6">
|
|
34
|
-
<div class="card-header">
|
|
35
|
-
<h5 class="card-title"><%= Spree.t(:returns_policy) %></h5>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="card-body">
|
|
38
|
-
<p class="text-gray-600">
|
|
39
|
-
Please provide your customers with a clear and transparent returns policy.
|
|
40
|
-
</p>
|
|
41
|
-
<%= f.spree_rich_text_area :customer_returns_policy, label: Spree.t(:returns_policy) %>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
<div class="card mb-6">
|
|
46
|
-
<div class="card-header">
|
|
47
|
-
<h5 class="card-title"><%= Spree.t(:shipping_policy) %></h5>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="card-body">
|
|
50
|
-
<p class="text-gray-600">
|
|
51
|
-
Please provide your customers with a clear and transparent shipping policy.
|
|
52
|
-
</p>
|
|
53
|
-
<%= f.spree_rich_text_area :customer_shipping_policy, label: Spree.t(:shipping_policy) %>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<% if current_store.respond_to?(:partners_terms_of_service) %>
|
|
58
|
-
<div class="card mb-6">
|
|
59
|
-
<div class="card-header">
|
|
60
|
-
<h5 class="card-title">Vendors <%= Spree.t(:terms_of_service) %></h5>
|
|
61
|
-
</div>
|
|
62
|
-
<div class="card-body">
|
|
63
|
-
<p class="text-gray-600">
|
|
64
|
-
Vendors you invite will need to accept these terms of service during their onboarding process.
|
|
65
|
-
</p>
|
|
66
|
-
<%= f.spree_rich_text_area :partners_terms_of_service, label: Spree.t(:terms_of_service) %>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
<% end %>
|