2015-08-30 16:31:16 +02:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
@include('settings/navbar', ['selected' => 'settings'])
|
|
|
|
|
2015-09-03 17:51:10 +02:00
|
|
|
<div class="container small">
|
2015-08-30 16:31:16 +02:00
|
|
|
|
2015-09-03 17:51:10 +02:00
|
|
|
<h1>Settings</h1>
|
2015-08-30 16:31:16 +02:00
|
|
|
|
2015-09-03 17:51:10 +02:00
|
|
|
<form action="/settings" method="POST">
|
|
|
|
{!! csrf_field() !!}
|
2015-09-05 18:42:05 +02:00
|
|
|
|
|
|
|
<h3>App Settings</h3>
|
2015-10-08 00:17:48 +02:00
|
|
|
|
|
|
|
<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">
|
2015-10-18 18:29:26 +02:00
|
|
|
<label>Allow public viewing?</label>
|
|
|
|
<toggle-switch name="setting-app-public" value="{{ Setting::get('app-public') }}"></toggle-switch>
|
2015-10-08 00:17:48 +02:00
|
|
|
</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. </p>
|
2015-11-09 20:20:44 +01:00
|
|
|
<image-picker current-image="{{ Setting::get('app-logo', '') }}" default-image="/logo.png" name="setting-app-logo" image-class="logo-image"></image-picker>
|
2015-10-08 00:17:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-05 18:42:05 +02:00
|
|
|
</div>
|
|
|
|
|
2015-10-08 00:17:48 +02:00
|
|
|
|
|
|
|
|
2015-09-05 18:42:05 +02:00
|
|
|
<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>
|
2015-10-18 18:29:26 +02:00
|
|
|
<toggle-switch name="setting-registration-enabled" value="{{ Setting::get('registration-enabled') }}"></toggle-switch>
|
2015-09-05 18:42:05 +02:00
|
|
|
</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>
|
2015-09-10 20:31:09 +02:00
|
|
|
@foreach(\BookStack\Role::all() as $role)
|
2015-09-05 18:42:05 +02:00
|
|
|
<option value="{{$role->id}}"
|
2015-09-10 20:31:09 +02:00
|
|
|
@if(\Setting::get('registration-role', \BookStack\Role::getDefault()->id) == $role->id) selected @endif
|
2015-09-05 18:42:05 +02:00
|
|
|
>
|
|
|
|
{{ $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>
|
2015-10-18 18:29:26 +02:00
|
|
|
<toggle-switch name="setting-registration-confirmation" value="{{ Setting::get('registration-confirmation') }}"></toggle-switch>
|
2015-09-05 18:42:05 +02:00
|
|
|
</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>
|
2015-09-03 17:51:10 +02:00
|
|
|
</div>
|
2015-09-05 18:42:05 +02:00
|
|
|
|
|
|
|
<hr class="margin-top">
|
|
|
|
|
2015-09-03 17:51:10 +02:00
|
|
|
<div class="form-group">
|
2015-09-05 18:42:05 +02:00
|
|
|
<button type="submit" class="button pos">Save Settings</button>
|
2015-09-03 17:51:10 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
2015-08-30 16:31:16 +02:00
|
|
|
|
2015-10-09 00:49:18 +02:00
|
|
|
<image-manager></image-manager>
|
2015-10-08 00:17:48 +02:00
|
|
|
|
2015-10-09 00:49:18 +02:00
|
|
|
@stop
|