Clarify canceling feedback

This commit is contained in:
Hillel Coren 2017-12-06 14:01:59 +02:00
parent 6b15025092
commit 5575ac68cc

View File

@ -273,7 +273,7 @@
</div> </div>
{!! Former::close() !!} {!! 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::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'))) !!} {!! Former::actions( Button::danger($account->hasMultipleAccounts() ? trans('texts.delete_company') : trans('texts.cancel_account'))->large()->withAttributes(['onclick' => 'showCancelConfirm()'])->appendIcon(Icon::create('trash'))) !!}
<div class="form-group"> <div class="form-group">
@ -292,10 +292,12 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-body"> <div class="panel-body">
<p><b>{{ $account->hasMultipleAccounts() ? trans('texts.delete_company_message') : trans('texts.cancel_account_message') }}</b></p><br/> <p><b>{{ $account->hasMultipleAccounts() ? trans('texts.delete_company_message') : trans('texts.cancel_account_message') }}</b></p><br/>
@if ($account->getPrimaryAccount()->id == $account->id)
<p>{!! Former::textarea('reason') <p>{!! Former::textarea('reason')
->placeholder(trans('texts.reason_for_canceling')) ->placeholder(trans('texts.reason_for_canceling'))
->raw() ->raw()
->rows(4) !!}</p> ->rows(4) !!}</p>
@endif
<br/> <br/>
</div> </div>
</div> </div>