From 5575ac68cc27b302c9e67f1b3158f83e1d174760 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 6 Dec 2017 14:01:59 +0200 Subject: [PATCH] Clarify canceling feedback --- resources/views/accounts/management.blade.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/resources/views/accounts/management.blade.php b/resources/views/accounts/management.blade.php index f251365de756..01361ee3f6b7 100644 --- a/resources/views/accounts/management.blade.php +++ b/resources/views/accounts/management.blade.php @@ -273,7 +273,7 @@ {!! Former::close() !!} - @if (! $account->hasMultipleAccounts() || $account->getPrimaryAccount()->id != auth()->user()->account->id) + @if (! $account->hasMultipleAccounts() || $account->getPrimaryAccount()->id != $account->id) {!! Former::open('settings/cancel_account')->addClass('cancel-account') !!} {!! Former::actions( Button::danger($account->hasMultipleAccounts() ? trans('texts.delete_company') : trans('texts.cancel_account'))->large()->withAttributes(['onclick' => 'showCancelConfirm()'])->appendIcon(Icon::create('trash'))) !!}
@@ -292,10 +292,12 @@

{{ $account->hasMultipleAccounts() ? trans('texts.delete_company_message') : trans('texts.cancel_account_message') }}


-

{!! Former::textarea('reason') - ->placeholder(trans('texts.reason_for_canceling')) - ->raw() - ->rows(4) !!}

+ @if ($account->getPrimaryAccount()->id == $account->id) +

{!! Former::textarea('reason') + ->placeholder(trans('texts.reason_for_canceling')) + ->raw() + ->rows(4) !!}

+ @endif