mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-04-17 19:58:27 +00:00
58 lines
No EOL
2.5 KiB
PHP
58 lines
No EOL
2.5 KiB
PHP
<h3>
|
|
{{ __('Call Forwarding') }}
|
|
</h3>
|
|
|
|
<form id="edit" method="POST" action="@if ($account->admin) {{ route('admin.account.call_forwardings.update', $account->id) }}@else{{ route('account.call_forwardings.update') }}@endif" accept-charset="UTF-8">
|
|
@csrf
|
|
@method('put')
|
|
@php($callForwardings = $account->callForwardingsDefault)
|
|
|
|
<section>
|
|
<h4>{{ __('All the calls') }}</h4>
|
|
|
|
<div class="checkbox">
|
|
<input id="always[enabled]" type="checkbox" @if ($callForwardings['always']->enabled) checked @endif name="always[enabled]"
|
|
onchange="if (this.checked) { setCheckboxValue('away[enabled]', false); setCheckboxValue('busy[enabled]', false); }">
|
|
<label for="always[enabled]"></label>
|
|
</div>
|
|
|
|
@include('account.call_forwardings.edit_select_part', ['callForwarding' => $callForwardings, 'type' => 'always'])
|
|
@if (!$account->admin)
|
|
<small class="large">{{ __('All incoming calls are forwarded, whether you answer, decline the call or are already on a call.') }}</small>
|
|
@endif
|
|
</section>
|
|
|
|
<section>
|
|
<h4>{{ __('No answer') }}</h4>
|
|
|
|
<div class="checkbox">
|
|
<input id="away[enabled]" type="checkbox" @if ($callForwardings['away']->enabled) checked @endif name="away[enabled]"
|
|
onchange="if (this.checked) { setCheckboxValue('always[enabled]', false); }">
|
|
<label for="away[enabled]"></label>
|
|
</div>
|
|
|
|
@include('account.call_forwardings.edit_select_part', ['callForwarding' => $callForwardings, 'type' => 'away'])
|
|
@if (!$account->admin)
|
|
<small class="large">{{ __('Calls are only forwarded when your line is busy with another call.') }}</small>
|
|
@endif
|
|
</section>
|
|
|
|
<section>
|
|
<h4>{{ __('Line occupied') }}</h4>
|
|
|
|
<div class="checkbox">
|
|
<input id="busy[enabled]" type="checkbox" @if ($callForwardings['busy']->enabled) checked @endif name="busy[enabled]"
|
|
onchange="if (this.checked) { setCheckboxValue('always[enabled]', false); }">
|
|
<label for="busy[enabled]"></label>
|
|
</div>
|
|
|
|
@include('account.call_forwardings.edit_select_part', ['callForwarding' => $callForwardings, 'type' => 'busy'])
|
|
@if (!$account->admin)
|
|
<small class="large">{{ __('Calls are only forwarded if you do not answer or if you decline the call.') }}</small>
|
|
@endif
|
|
</section>
|
|
|
|
<div class="large">
|
|
<input class="btn small oppose" type="submit" value="{{ __('Update') }}">
|
|
</div>
|
|
</form> |