mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 20:02:35 +01:00
92 lines
4.6 KiB
PHP
92 lines
4.6 KiB
PHP
@extends('base')
|
|
|
|
@section('content')
|
|
|
|
@include('settings/navbar', ['selected' => 'settings'])
|
|
|
|
<div class="container small">
|
|
|
|
<h1>Settings</h1>
|
|
|
|
<form action="/settings" method="POST">
|
|
{!! csrf_field() !!}
|
|
|
|
<h3>App Settings</h3>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="setting-app-name">Application name</label>
|
|
<input type="text" value="{{ Setting::get('app-name', 'BookStack') }}" name="setting-app-name" id="setting-app-name">
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Allow public viewing?</label>
|
|
<toggle-switch name="setting-app-public" value="{{ Setting::get('app-public') }}"></toggle-switch>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Enable higher security image uploads?</label>
|
|
<p class="small">For performance reasons, all images are public by default, This option adds a random, hard-to-guess characters in front of image names. Ensure directory indexes are not enabled to prevent easy access.</p>
|
|
<toggle-switch name="setting-app-secure-images" value="{{ Setting::get('app-secure-images') }}"></toggle-switch>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group" id="logo-control">
|
|
<label for="setting-app-logo">Application Logo</label>
|
|
<p class="small">This image should be 43px in height. <br>Large images will be scaled down.</p>
|
|
<image-picker current-image="{{ Setting::get('app-logo', '') }}" default-image="/logo.png" name="setting-app-logo" image-class="logo-image"></image-picker>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<hr class="margin-top">
|
|
|
|
<h3>Registration Settings</h3>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="setting-registration-enabled">Allow registration?</label>
|
|
<toggle-switch name="setting-registration-enabled" value="{{ Setting::get('registration-enabled') }}"></toggle-switch>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="setting-registration-role">Default user role after registration</label>
|
|
<select id="setting-registration-role" name="setting-registration-role" @if($errors->has('setting-registration-role')) class="neg" @endif>
|
|
@foreach(\BookStack\Role::all() as $role)
|
|
<option value="{{$role->id}}"
|
|
@if(\Setting::get('registration-role', \BookStack\Role::getDefault()->id) == $role->id) selected @endif
|
|
>
|
|
{{ $role->display_name }}
|
|
</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="setting-registration-confirmation">Require email confirmation?</label>
|
|
<p class="small">If domain restriction is used then email confirmation will be required and the below value will be ignored.</p>
|
|
<toggle-switch name="setting-registration-confirmation" value="{{ Setting::get('registration-confirmation') }}"></toggle-switch>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="setting-registration-restrict">Restrict registration to domain</label>
|
|
<p class="small">Enter a comma separated list of email domains you would like to restrict registration to. Users will be sent an email to confirm their address before being allowed to interact with the application.
|
|
<br> Note that users will be able to change their email addresses after successful registration.</p>
|
|
<input type="text" id="setting-registration-restrict" name="setting-registration-restrict" placeholder="No restriction set" value="{{ Setting::get('registration-restrict', '') }}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<hr class="margin-top">
|
|
|
|
<div class="form-group">
|
|
<button type="submit" class="button pos">Save Settings</button>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<image-manager image-type="system" resize-height="43" resize-width="200"></image-manager>
|
|
|
|
@stop
|