mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-29 12:16:04 +08:00
895f656897
- Split settings out to new views using a core shared layout. - Extracted added language text to translation files. - Updated settings routes to be dynamic to category. - Added redirect for old primary settings route. - Updated existing tests to cover settings route changes. - Added tests to cover settings view. - Improved contrast of settings links for dark mode.
66 lines
2.7 KiB
PHP
66 lines
2.7 KiB
PHP
@extends('settings.layout')
|
|
|
|
@section('card')
|
|
<h1 id="features" class="list-heading">{{ trans('settings.app_features_security') }}</h1>
|
|
<form action="{{ url("/settings/features") }}" method="POST">
|
|
{!! csrf_field() !!}
|
|
<input type="hidden" name="section" value="features">
|
|
|
|
<div class="setting-list">
|
|
|
|
|
|
<div class="grid half gap-xl">
|
|
<div>
|
|
<label for="setting-app-public" class="setting-list-label">{{ trans('settings.app_public_access') }}</label>
|
|
<p class="small">{!! trans('settings.app_public_access_desc') !!}</p>
|
|
@if(userCan('users-manage'))
|
|
<p class="small mb-none">
|
|
<a href="{{ url($guestUser->getEditUrl()) }}">{!! trans('settings.app_public_access_desc_guest') !!}</a>
|
|
</p>
|
|
@endif
|
|
</div>
|
|
<div>
|
|
@include('form.toggle-switch', [
|
|
'name' => 'setting-app-public',
|
|
'value' => setting('app-public'),
|
|
'label' => trans('settings.app_public_access_toggle'),
|
|
])
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid half gap-xl">
|
|
<div>
|
|
<label class="setting-list-label">{{ trans('settings.app_secure_images') }}</label>
|
|
<p class="small">{{ trans('settings.app_secure_images_desc') }}</p>
|
|
</div>
|
|
<div>
|
|
@include('form.toggle-switch', [
|
|
'name' => 'setting-app-secure-images',
|
|
'value' => setting('app-secure-images'),
|
|
'label' => trans('settings.app_secure_images_toggle'),
|
|
])
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid half gap-xl">
|
|
<div>
|
|
<label class="setting-list-label">{{ trans('settings.app_disable_comments') }}</label>
|
|
<p class="small">{!! trans('settings.app_disable_comments_desc') !!}</p>
|
|
</div>
|
|
<div>
|
|
@include('form.toggle-switch', [
|
|
'name' => 'setting-app-disable-comments',
|
|
'value' => setting('app-disable-comments'),
|
|
'label' => trans('settings.app_disable_comments_toggle'),
|
|
])
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="form-group text-right">
|
|
<button type="submit" class="button">{{ trans('settings.settings_save') }}</button>
|
|
</div>
|
|
</form>
|
|
@endsection |