From 9bb64d49845aa1bf02da296892dab2ab8ab85309 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 19 Aug 2016 16:11:00 +0300 Subject: [PATCH] Add help message to explain limited gateways --- resources/lang/en/texts.php | 3 ++- resources/views/accounts/account_gateway.blade.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 8ebf0a545dae..a5aa49c040c2 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2075,7 +2075,8 @@ $LANG = array( 'include_item_taxes_inline' => 'Include line item taxes in line total', 'created_quotes' => 'Successfully created :count quotes(s)', - + 'limited_gateways' => 'Note: we support one credit card gateway per company.', + ); return $LANG; diff --git a/resources/views/accounts/account_gateway.blade.php b/resources/views/accounts/account_gateway.blade.php index 5823a37fceaf..da9141260071 100644 --- a/resources/views/accounts/account_gateway.blade.php +++ b/resources/views/accounts/account_gateway.blade.php @@ -50,7 +50,8 @@ {!! Former::select('primary_gateway_id') ->fromQuery($primaryGateways, 'name', 'id') ->label(trans('texts.gateway_id')) - ->onchange('setFieldsShown()') !!} + ->onchange('setFieldsShown()') + ->help(count($secondaryGateways) ? false : 'limited_gateways') !!} @if (count($secondaryGateways)) {!! Former::select('secondary_gateway_id')