mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Clarify gateways vs bank accounts
This commit is contained in:
parent
62d31999ed
commit
8385e20c53
@ -431,9 +431,12 @@ class AccountController extends BaseController
|
||||
*/
|
||||
private function showBankAccounts()
|
||||
{
|
||||
$account = auth()->user()->account;
|
||||
|
||||
return View::make('accounts.banks', [
|
||||
'title' => trans('texts.bank_accounts'),
|
||||
'advanced' => ! Auth::user()->hasFeature(FEATURE_EXPENSES),
|
||||
'warnPaymentGateway' => ! $account->account_gateways->count(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -2481,7 +2481,7 @@ $LANG = array(
|
||||
'time_hr' => 'hr',
|
||||
'time_hrs' => 'hrs',
|
||||
'clear' => 'Clear',
|
||||
|
||||
'warn_payment_gateway' => 'Note: to accept online payments :link to add a payment gateway.',
|
||||
);
|
||||
|
||||
return $LANG;
|
||||
|
@ -4,6 +4,10 @@
|
||||
@parent
|
||||
@include('accounts.nav', ['selected' => ACCOUNT_BANKS])
|
||||
|
||||
@if (isset($warnPaymentGateway) && $warnPaymentGateway)
|
||||
<div class="alert alert-warning">{!! trans('texts.warn_payment_gateway', ['link' => link_to('/gateways/create', trans('texts.click_here'))]) !!}</div>
|
||||
@endif
|
||||
|
||||
@if (Auth::user()->hasFeature(FEATURE_EXPENSES))
|
||||
<div class="pull-right">
|
||||
{!! Button::normal(trans('texts.import_ofx'))
|
||||
|
Loading…
Reference in New Issue
Block a user