mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-04-17 19:58:27 +00:00
146 lines
6.4 KiB
PHP
146 lines
6.4 KiB
PHP
@extends('layouts.main')
|
|
|
|
@section('breadcrumb')
|
|
@if (auth()->user()->superAdmin)
|
|
@include('admin.parts.breadcrumb.spaces.show')
|
|
@else
|
|
<li class="breadcrumb-item">
|
|
<a href="{{ route('admin.spaces.me') }}">
|
|
{{ $space->name }}
|
|
</a>
|
|
</li>
|
|
@endif
|
|
<li class="breadcrumb-item active" aria-current="page">{{ __('Configuration') }}</li>
|
|
@endsection
|
|
|
|
@section('content')
|
|
@include('admin.space.head')
|
|
@include('admin.space.tabs')
|
|
|
|
<form method="POST" action="{{ route('admin.spaces.configuration.update', $space) }}" accept-charset="UTF-8">
|
|
@csrf
|
|
@method('put')
|
|
|
|
<h3 class="large">{{ __('Plateforme customization') }}</h3>
|
|
|
|
<div>
|
|
<label for="logo-picker" style="font-weight: 700;">{{ __('Select an image') }} </label>
|
|
<div class="color-picker">
|
|
{{-- Gérer les types de fichiers accepter --}}
|
|
<input id="logo-input" name="logo" type="file" accept=".png">
|
|
@include('parts.errors', ['name' => 'logo'])
|
|
<canvas id="logo-canvas"></canvas>
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="color-slider" style="font-weight: 700;">{{ __('Select a color') }} </label>
|
|
<input name="theme_hue" id="theme_hue" type="text" style="display:none;" value="22">
|
|
<div class="color-picker">
|
|
<div id="color-div"></div>
|
|
<div>
|
|
<input id="color-input" type="text" value="#ff5e00">
|
|
<label for="color-input">{{ __('Hex') }}</label>
|
|
<input class="range" type="range" name="color-slider" id="color-slider" min="0" max="360"
|
|
value="22">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<span class="supporting"> {{ __('Your color will be snapped to the nearest 500 shade') }}</span>
|
|
</div>
|
|
|
|
<div class="large">
|
|
<textarea name="copyright_text" id="copyright_text">{{ $space->copyright_text }}</textarea>
|
|
<label for="copyright_text">{{ __('Copyright text') }}</label>
|
|
@include('parts.errors', ['name' => 'copyright_text'])
|
|
</div>
|
|
|
|
<div class="large">
|
|
<textarea name="intro_registration_text" id="intro_registration_text">{{ $space->intro_registration_text }}</textarea>
|
|
<label for="intro_registration_text">{{ __('Registration introduction') }}</label>
|
|
<span class="supporting">{{ __('Markdown text') }}</span>
|
|
@include('parts.errors', ['name' => 'intro_registration_text'])
|
|
</div>
|
|
|
|
<div>
|
|
<input name="newsletter_registration_address" id="newsletter_registration_address"
|
|
placeholder="email@server.tld" type="email" value="{{ $space->newsletter_registration_address }}">
|
|
<label for="newsletter_registration_address">{{ __('Newsletter registration email address') }}</label>
|
|
<span
|
|
class="supporting">{{ __('An email will be sent to this email when someone join the newsletter') }}</span>
|
|
@include('parts.errors', ['name' => 'newsletter_registration_address'])
|
|
</div>
|
|
|
|
<div>
|
|
<input name="account_proxy_registrar_address" id="account_proxy_registrar_address" placeholder="server.tld"
|
|
value="{{ $space->account_proxy_registrar_address }}">
|
|
<label for="account_proxy_registrar_address">Account proxy registrar address</label>
|
|
<span class="supporting">Will be used for informational purpose in the user panel and communication
|
|
emails</span>
|
|
@include('parts.errors', ['name' => 'account_proxy_registrar_address'])
|
|
</div>
|
|
|
|
<div>
|
|
<input name="account_realm" @if ($space->accounts()->count() > 0) disabled @endif id="account_realm"
|
|
placeholder="server.tld" value="{{ $space->account_realm }}">
|
|
<label for="account_realm">Account realm</label>
|
|
<span class="supporting">A custom realm for the Space accounts</span>
|
|
@include('parts.errors', ['name' => 'account_realm'])
|
|
</div>
|
|
|
|
<h3 class="large">{{ __('Remote provisioning') }}</h3>
|
|
|
|
<div class="large">
|
|
<textarea style="min-height: 200px;" name="custom_provisioning_entries" id="custom_provisioning_entries">{{ $space->custom_provisioning_entries }}</textarea>
|
|
<label for="custom_provisioning_entries">{{ __('Custom entries') }}</label>
|
|
<span class="supporting">{{ __('In ini format, will complete the other settings.') }}</span>
|
|
<span class="supporting">{{ __('Use ; to comment, key="value" to declare a complex string.') }} <a
|
|
target="_blank"
|
|
href="https://cheatsheets.zip/ini.html">{{ __('Checkout the cheatsheets to know how to format things correctly.') }}</a></span>
|
|
@include('parts.errors', ['name' => 'custom_provisioning_entries'])
|
|
</div>
|
|
|
|
<div>
|
|
@include('parts.form.toggle', [
|
|
'object' => $space,
|
|
'key' => 'custom_provisioning_overwrite_all',
|
|
'label' => __('Allow client settings to be overwritten by the provisioning ones'),
|
|
])
|
|
</div>
|
|
|
|
<div>
|
|
@include('parts.form.toggle', [
|
|
'object' => $space,
|
|
'key' => 'provisioning_use_linphone_provisioning_header',
|
|
'label' => 'Enforce X-Linphone-Provisioning header',
|
|
])
|
|
</div>
|
|
|
|
<h3 class="large">{{ __('Features') }}</h3>
|
|
<div>
|
|
@include('parts.form.toggle', [
|
|
'object' => $space,
|
|
'key' => 'public_registration',
|
|
'label' => __('Public registration'),
|
|
])
|
|
</div>
|
|
<div @include('parts.form.toggle', [
|
|
'object' => $space,
|
|
'key' => 'phone_registration',
|
|
'label' => __('Phone registration'),
|
|
]) </div>
|
|
<div>
|
|
@include('parts.form.toggle', [
|
|
'object' => $space,
|
|
'key' => 'intercom_features',
|
|
'label' => __('Intercom features'),
|
|
])
|
|
</div>
|
|
|
|
<div class="large">
|
|
<input class="btn" type="submit" value="{{ __('Update') }}">
|
|
</div>
|
|
</form>
|
|
<script src="{{ asset('scripts/colorPicker.js') }}"></script>
|
|
@endsection
|