1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Tweak payment settings page

This commit is contained in:
Joshua Dwire 2016-05-25 15:55:23 -04:00
parent c9f00274b1
commit 4dded687b5
2 changed files with 11 additions and 5 deletions

View File

@ -1324,7 +1324,8 @@ $LANG = array(
'auto_bill_notification_placeholder' => 'This invoice will automatically be billed to your Visa card ending in 4242 on the due date.',
'payment_settings' => 'Payment Settings',
'auto_bill_on_due_date' => 'Auto bill on due date instead of send date',
'on_send_date' => 'On send date',
'on_due_date' => 'On due date',
'auto_bill_ach_date_help' => 'ACH auto bill will always happen on the due date',
'warn_change_auto_bill' => 'Due to NACHA rules, changes to this invoice may prevent ACH auto bill.',
@ -1333,6 +1334,7 @@ $LANG = array(
'wepay_payment_tos_agree' => 'I agree to the WePay :terms and :privacy_policy.',
'privacy_policy' => 'Privacy Policy',
'wepay_payment_tos_agree_required' => 'You must agree to the WePay Terms of Service and Privacy Policy.',
'payment_settings_supported_gateways' => 'These options are supported by the WePay, Stripe, and Braintree gateways.'
);
return $LANG;

View File

@ -14,14 +14,18 @@
<h3 class="panel-title">{!! trans('texts.payment_settings') !!}</h3>
</div>
<div class="panel-body">
{!! Former::select('token_billing_type_id')
->options($tokenBillingOptions)
->help(trans('texts.token_billing_help')) !!}
{!! Former::checkbox('auto_bill_on_due_date')
{!! Former::inline_radios('auto_bill_on_due_date')
->label(trans('texts.auto_bill'))
->text(trans('texts.auto_bill_on_due_date'))
->help(trans('texts.auto_bill_ach_date_help')) !!}
->radios([
trans('texts.on_send_date') => ['value'=>0, 'name'=>'auto_bill_on_due_date'],
trans('texts.on_due_date') => ['value'=>1, 'name'=>'auto_bill_on_due_date'],
])->help(trans('texts.auto_bill_ach_date_help')) !!}
<div class="form-group">
<div class="col-sm-offset-4 col-sm-8"><p>{!! trans('texts.payment_settings_supported_gateways') !!}</p></div>
</div>
{!! Former::actions( Button::success(trans('texts.save'))->submit()->appendIcon(Icon::create('floppy-disk')) ) !!}
</div>
</div>