From 1a12cd30d3deecb707a9e079d3fc14973747a8fc Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Tue, 26 Apr 2016 20:02:52 -0400 Subject: [PATCH] Hide autobill when both Stripe and Braintree are not configured --- resources/views/invoices/edit.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 823e9765f09d..1ce548133c06 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -157,12 +157,14 @@ ->label(trans("texts.{$entityType}_number_short")) ->data_bind("value: invoice_number, valueUpdate: 'afterkeydown'") !!} + @if($account->getTokenGatewayId()) {!! Former::checkbox('auto_bill') ->label(trans('texts.auto_bill')) - ->text(trans('texts.enable_with_stripe')) + ->text(trans('texts.enable')) ->data_bind("checked: auto_bill, valueUpdate: 'afterkeydown'") !!} + @endif {!! Former::text('po_number')->label(trans('texts.po_number_short'))->data_bind("value: po_number, valueUpdate: 'afterkeydown'") !!} {!! Former::text('discount')->data_bind("value: discount, valueUpdate: 'afterkeydown'") ->addGroupClass('discount-group')->type('number')->min('0')->step('any')->append(