From 4dded687b51ec51126c226eb7ccb843941ef246a Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Wed, 25 May 2016 15:55:23 -0400 Subject: [PATCH] Tweak payment settings page --- resources/lang/en/texts.php | 4 +++- resources/views/accounts/payments.blade.php | 12 ++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index c0f4f97f4ec0..7f6f5305bc3a 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -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; diff --git a/resources/views/accounts/payments.blade.php b/resources/views/accounts/payments.blade.php index a2f289c782ad..603aec4bf6f5 100644 --- a/resources/views/accounts/payments.blade.php +++ b/resources/views/accounts/payments.blade.php @@ -14,14 +14,18 @@

{!! trans('texts.payment_settings') !!}

- {!! 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')) !!} +
+

{!! trans('texts.payment_settings_supported_gateways') !!}

+
{!! Former::actions( Button::success(trans('texts.save'))->submit()->appendIcon(Icon::create('floppy-disk')) ) !!}