X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/fff5bbcee458992443e3732fbcbbbe34f765fcc3..refs/pull/1755/head:/resources/views/settings/index.blade.php diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php index 757729763..a52774186 100644 --- a/resources/views/settings/index.blade.php +++ b/resources/views/settings/index.blade.php @@ -1,142 +1,249 @@ -@extends('base') +@extends('simple-layout') -@section('content') +@section('body') +
- @include('settings/navbar', ['selected' => 'settings']) - -
- -

{{ trans('settings.settings') }}

- -
- {!! csrf_field() !!} +
+
+ @include('settings.navbar', ['selected' => 'settings']) +
+ +
-

App Settings

+
+

{{ trans('settings.app_features_security') }}

+ + {!! csrf_field() !!} + +
+ + +
+
+ +

{!! trans('settings.app_public_access_desc') !!}

+ @if(userCan('users-manage')) +

+ {!! trans('settings.app_public_access_desc_guest') !!} +

+ @endif +
+
+ @include('components.toggle-switch', [ + 'name' => 'setting-app-public', + 'value' => setting('app-public'), + 'label' => trans('settings.app_public_access_toggle'), + ]) +
+
+ +
+
+ +

{{ trans('settings.app_secure_images_desc') }}

+
+
+ @include('components.toggle-switch', [ + 'name' => 'setting-app-secure-images', + 'value' => setting('app-secure-images'), + 'label' => trans('settings.app_secure_images_toggle'), + ]) +
+
+ +
+
+ +

{!! trans('settings.app_disable_comments_desc') !!}

+
+
+ @include('components.toggle-switch', [ + 'name' => 'setting-app-disable-comments', + 'value' => setting('app-disable-comments'), + 'label' => trans('settings.app_disable_comments_toggle'), + ]) +
+
-
-
-
- -

{{ trans('settings.app_name_desc') }}

-
-
- -
-
-
- -
-
-
- -

{{ trans('settings.app_secure_images_desc') }}

-
-
-
- -

{{ trans('settings.app_editor_desc') }}

- -
-
-
-
- -

{!! trans('settings.app_logo_desc') !!}

- -
-
- -

{!! trans('settings.app_primary_color_desc') !!}

- - +
+
-
- +
-
- -

{{ trans('settings.app_custom_html_desc') }}

- -
+
+

{{ trans('settings.app_customization') }}

+
+ {!! csrf_field() !!} + +
+ +
+
+ +

{{ trans('settings.app_name_desc') }}

+
+
+ + @include('components.toggle-switch', [ + 'name' => 'setting-app-name-header', + 'value' => setting('app-name-header'), + 'label' => trans('settings.app_name_header'), + ]) +
+
+ +
+
+ +

{{ trans('settings.app_editor_desc') }}

+
+
+ +
+
+ +
+
+ +

{!! trans('settings.app_logo_desc') !!}

+
+
+ @include('components.image-picker', [ + 'removeName' => 'setting-app-logo', + 'removeValue' => 'none', + 'defaultImage' => url('/http/source.bookstackapp.com/logo.png'), + 'currentImage' => setting('app-logo'), + 'name' => 'app_logo', + 'imageClass' => 'logo-image', + ]) +
+
+ +
+
+ +

{!! trans('settings.app_primary_color_desc') !!}

+
+
+ + +
+ +
+
+ +
+
+ +

{{ trans('settings.app_homepage_desc') }}

+
+
+ + + +
+
+ + +
+ +

{{ trans('settings.app_custom_html_desc') }}

+ +

{{ trans('settings.app_custom_html_disabled_notice') }}

+
-
-

{{ trans('settings.reg_settings') }}

+
-
-
-
- -
+
+
-
- - has('setting-registration-role')) class="neg" @endif> + @foreach(\BookStack\Auth\Role::all() as $role) + - @endforeach - -
-
- -

{{ trans('settings.reg_confirm_email_desc') }}

-
+ {{ $role->display_name }} + + @endforeach + +
+
+ +
+
+ +

{!! trans('settings.reg_confirm_restrict_domain_desc') !!}

+
+
+ +
+
+ +
+
+ +

{{ trans('settings.reg_confirm_email_desc') }}

+
+
+ @include('components.toggle-switch', [ + 'name' => 'setting-registration-confirmation', + 'value' => setting('registration-confirmation'), + 'label' => trans('settings.reg_email_confirmation_toggle') + ]) +
+
+
-
-
-
- -

{!! trans('settings.reg_confirm_restrict_domain_desc') !!}

- + +
+
-
+
-
+
-
- - BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }} - - -
- - -
- -@include('partials/image-manager', ['imageType' => 'system']) - -@stop - -@section('scripts') - - + @include('components.image-manager', ['imageType' => 'system']) + @include('components.entity-selector-popup', ['entityTypes' => 'page']) @stop \ No newline at end of file