mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-05 11:10:16 -04:00
Clarify canceling feedback
This commit is contained in:
parent
6b15025092
commit
5575ac68cc
@ -273,7 +273,7 @@
|
||||
</div>
|
||||
{!! 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'))) !!}
|
||||
<div class="form-group">
|
||||
@ -292,10 +292,12 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<p><b>{{ $account->hasMultipleAccounts() ? trans('texts.delete_company_message') : trans('texts.cancel_account_message') }}</b></p><br/>
|
||||
<p>{!! Former::textarea('reason')
|
||||
->placeholder(trans('texts.reason_for_canceling'))
|
||||
->raw()
|
||||
->rows(4) !!}</p>
|
||||
@if ($account->getPrimaryAccount()->id == $account->id)
|
||||
<p>{!! Former::textarea('reason')
|
||||
->placeholder(trans('texts.reason_for_canceling'))
|
||||
->raw()
|
||||
->rows(4) !!}</p>
|
||||
@endif
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user