mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-02 06:51:40 +00:00
Add stripe account owner selector as a new row
Otherwise, not displayed.
This commit is contained in:
@@ -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" } }
|
||||
|
||||
Reference in New Issue
Block a user