Skip to content

Commit

Permalink
update form view partial
Browse files Browse the repository at this point in the history
  • Loading branch information
mateus-po committed Dec 5, 2023
1 parent 18eb77b commit 9a30ea4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/spree/admin/payment_methods/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
</div>
</div>

<% unless @object.new_record? %>
<div class="col-12 col-md-6">
<div class="card mb-3">
<div class="card-header">
<h5 class="mb-0"><%= Spree.t(:payment_provider_settings) %></h5>
</div>
<div class="card-body">
<div id="preference-settings" data-hook class="form-group">
<% unless @object.new_record? %>
<% if preference_fields(@object, f).empty? %>
<%= Spree.t('no_payment_provider_settings_message') %>
<% end %>
Expand All @@ -72,10 +72,11 @@
<% if @object.respond_to?(:preferences) %>
<div id="gateway-settings-warning" class="info warning"><%= Spree.t(:provider_settings_warning) %></div>
<% end %>
<% end %>
</div>
</div>
</div>
</div>
<% end %>

</div>
</div>

0 comments on commit 9a30ea4

Please sign in to comment.