Clarify gateways vs bank accounts
This commit is contained in:
parent
62d31999ed
commit
8385e20c53
3 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue