Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fixed metafields form boolean type

Damian Legawiec1a983af38087
diff --git a/admin/app/views/spree/admin/metafields/types/_boolean.html.erb b/admin/app/views/spree/admin/metafields/types/_boolean.html.erb
index 5465ca9df1..5bf0034aa1 100644
--- a/admin/app/views/spree/admin/metafields/types/_boolean.html.erb
+++ b/admin/app/views/spree/admin/metafields/types/_boolean.html.erb
@@ -1 +1,4 @@
-<%= f.spree_check_box :value %>
\ No newline at end of file
+<div class="custom-control custom-checkbox">
+ <%= f.check_box :value, class: 'custom-control-input' %>
+ <%= f.label :value, Spree.t(:say_yes), class: 'custom-control-label' %>
+</div>
\ No newline at end of file