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.

Add Bootstrap classes to radio buttons.

Matthew Kennedy299eeba9c2f0
diff --git a/backend/app/views/spree/admin/payment_methods/_form.html.erb b/backend/app/views/spree/admin/payment_methods/_form.html.erb
index fa5a8cd722..e044fc480e 100644
--- a/backend/app/views/spree/admin/payment_methods/_form.html.erb
+++ b/backend/app/views/spree/admin/payment_methods/_form.html.erb
@@ -30,18 +30,14 @@
</div>
<div data-hook="active" class="form-group">
<strong><%= Spree.t(:active) %></strong>
- <div class="radio my-2">
- <%= label_tag :payment_method_active_true do %>
- <%= radio_button :payment_method, :active, true %>
- <%= Spree.t(:say_yes) %>
- <% end %>
+ <div class="radio my-2 form-check">
+ <%= radio_button :payment_method, :active, true, class: 'form-check-input' %>
+ <%= label_tag :payment_method_active_true, Spree.t(:say_yes), class: 'form-check-label' %>
</div>
- <div class="radio my-2">
- <%= label_tag :payment_method_active_false do %>
- <%= radio_button :payment_method, :active, false %>
- <%= Spree.t(:say_no) %>
- <% end %>
+ <div class="radio my-2 form-check">
+ <%= radio_button :payment_method, :active, false, class: 'form-check-input' %>
+ <%= label_tag :payment_method_active_false, Spree.t(:say_no), class: 'form-check-label' %>
</div>
</div>
</div>