Add stripe account owner selector as a new row

Otherwise, not displayed.
This commit is contained in:
Jean-Baptiste Bellet
2021-02-01 18:00:28 +01:00
parent adf67475be
commit 370a108b3d

View File

@@ -3,16 +3,17 @@
= t(:provider_settings)
.preference-settings{ ng: { controller: "StripeController" } }
= fields_for :payment_method, @payment_method do |payment_method_form|
.alpha.four.columns
= payment_method_form.label :stripe_account_owner
.omega.twelve.columns
- if @stripe_account_holder.nil? || spree_current_user.enterprises.include?(@stripe_account_holder)
%input.ofn-select2.fullwidth#payment_method_preferred_enterprise_id{ type: 'number',
name: 'payment_method[preferred_enterprise_id]',
placeholder: t(".enterprise_select_placeholder"),
data: 'shops', ng: { model: 'paymentMethod.preferred_enterprise_id' } }
- else
%strong= Enterprise.find_by(id: @payment_method).andand.name
.row
.alpha.four.columns
= payment_method_form.label :stripe_account_owner
.omega.twelve.columns
- if @stripe_account_holder.nil? || spree_current_user.enterprises.include?(@stripe_account_holder)
%input.ofn-select2.fullwidth#payment_method_preferred_enterprise_id{ type: 'number',
name: 'payment_method[preferred_enterprise_id]',
placeholder: t(".enterprise_select_placeholder"),
data: 'shops', ng: { model: 'paymentMethod.preferred_enterprise_id' } }
- else
%strong= Enterprise.find_by(id: @payment_method).andand.name
#stripe-account-status{ ng: { show: "paymentMethod.preferred_enterprise_id" } }
.alert-box.warning{ ng: { hide: "stripe_account.status" } }