mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Clarify deleting company vs account
This commit is contained in:
parent
d16d27f939
commit
b18811f678
@ -2414,6 +2414,10 @@ $LANG = array(
|
|||||||
'item_tax1' => 'Item Tax1',
|
'item_tax1' => 'Item Tax1',
|
||||||
'item_tax2' => 'Item Tax2',
|
'item_tax2' => 'Item Tax2',
|
||||||
|
|
||||||
|
'delete_company' => 'Delete Company',
|
||||||
|
'delete_company_help' => 'Permanently delete the company along with all data and setting.',
|
||||||
|
'delete_company_message' => 'Warning: This will permanently delete your company, there is no undo.',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return $LANG;
|
return $LANG;
|
||||||
|
@ -274,10 +274,10 @@
|
|||||||
{!! Former::close() !!}
|
{!! Former::close() !!}
|
||||||
|
|
||||||
{!! Former::open('settings/cancel_account')->addClass('cancel-account') !!}
|
{!! Former::open('settings/cancel_account')->addClass('cancel-account') !!}
|
||||||
{!! Former::actions( Button::danger(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">
|
||||||
<div class="col-lg-8 col-sm-8 col-lg-offset-4 col-sm-offset-4">
|
<div class="col-lg-8 col-sm-8 col-lg-offset-4 col-sm-offset-4">
|
||||||
<span class="help-block">{{ trans('texts.cancel_account_help')}}</span>
|
<span class="help-block">{{ $account->hasMultipleAccounts() ? trans('texts.delete_company_help') : trans('texts.cancel_account_help') }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal fade" id="confirmCancelModal" tabindex="-1" role="dialog" aria-labelledby="confirmCancelModalLabel" aria-hidden="true">
|
<div class="modal fade" id="confirmCancelModal" tabindex="-1" role="dialog" aria-labelledby="confirmCancelModalLabel" aria-hidden="true">
|
||||||
@ -285,12 +285,12 @@
|
|||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
<h4 class="modal-title" id="confirmCancelModalLabel">{!! trans('texts.cancel_account') !!}</h4>
|
<h4 class="modal-title" id="confirmCancelModalLabel">{{ $account->hasMultipleAccounts() ? trans('texts.delete_company') : trans('texts.cancel_account') }}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="container" style="width: 100%; padding-bottom: 0px !important">
|
<div class="container" style="width: 100%; padding-bottom: 0px !important">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p><b>{{ 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/>
|
||||||
<p>{!! Former::textarea('reason')
|
<p>{!! Former::textarea('reason')
|
||||||
->placeholder(trans('texts.reason_for_canceling'))
|
->placeholder(trans('texts.reason_for_canceling'))
|
||||||
->raw()
|
->raw()
|
||||||
@ -301,7 +301,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer" style="margin-top: 2px">
|
<div class="modal-footer" style="margin-top: 2px">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.go_back') }}</button>
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.go_back') }}</button>
|
||||||
<button type="button" class="btn btn-danger" onclick="confirmCancel()">{{ trans('texts.cancel_account') }}</button>
|
<button type="button" class="btn btn-danger" onclick="confirmCancel()">{{ $account->hasMultipleAccounts() ? trans('texts.delete_company') : trans('texts.cancel_account') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -298,9 +298,7 @@
|
|||||||
@endif
|
@endif
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
@if (Utils::isAdmin() && Auth::user()->confirmed && Utils::getResllerType() != RESELLER_ACCOUNT_COUNT)
|
@if (Utils::isAdmin() && Auth::user()->confirmed && Utils::getResllerType() != RESELLER_ACCOUNT_COUNT)
|
||||||
@if (count(session(SESSION_USER_ACCOUNTS)) > 1)
|
@if (!session(SESSION_USER_ACCOUNTS) || count(session(SESSION_USER_ACCOUNTS)) < 5)
|
||||||
<li>{!! link_to('/manage_companies', trans('texts.manage_companies')) !!}</li>
|
|
||||||
@elseif (!session(SESSION_USER_ACCOUNTS) || count(session(SESSION_USER_ACCOUNTS)) < 5)
|
|
||||||
<li>{!! link_to('#', trans('texts.add_company'), ['onclick' => 'showSignUp()']) !!}</li>
|
<li>{!! link_to('#', trans('texts.add_company'), ['onclick' => 'showSignUp()']) !!}</li>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user