1 @extends('settings.layout')
4 <h1 id="customization" class="list-heading">{{ trans('settings.app_customization') }}</h1>
5 <form action="{{ url("/settings/customization") }}" method="POST" enctype="multipart/form-data">
7 <input type="hidden" name="section" value="customization">
9 <div class="setting-list">
11 <div class="grid half gap-xl">
13 <label for="setting-app-name" class="setting-list-label">{{ trans('settings.app_name') }}</label>
14 <p class="small">{{ trans('settings.app_name_desc') }}</p>
17 <input type="text" value="{{ setting('app-name', 'BookStack') }}" name="setting-app-name" id="setting-app-name">
18 @include('form.toggle-switch', [
19 'name' => 'setting-app-name-header',
20 'value' => setting('app-name-header'),
21 'label' => trans('settings.app_name_header'),
26 <div class="grid half gap-xl items-center">
28 <label class="setting-list-label" for="setting-app-editor">{{ trans('settings.app_default_editor') }}</label>
29 <p class="small">{{ trans('settings.app_default_editor_desc') }}</p>
32 <select name="setting-app-editor" id="setting-app-editor">
33 <option @if(setting('app-editor') === 'wysiwyg') selected @endif value="wysiwyg">WYSIWYG</option>
34 <option @if(setting('app-editor') === 'markdown') selected @endif value="markdown">Markdown</option>
39 <div class="grid half gap-xl">
41 <label class="setting-list-label">{{ trans('settings.app_logo') }}</label>
42 <p class="small">{!! trans('settings.app_logo_desc') !!}</p>
45 @include('form.image-picker', [
46 'removeName' => 'setting-app-logo',
47 'removeValue' => 'none',
48 'defaultImage' => url('/logo.png'),
49 'currentImage' => setting('app-logo'),
51 'imageClass' => 'logo-image',
56 <!-- Primary Color -->
57 <div class="grid half gap-xl">
59 <label class="setting-list-label">{{ trans('settings.app_primary_color') }}</label>
60 <p class="small">{!! trans('settings.app_primary_color_desc') !!}</p>
62 <div setting-app-color-picker class="text-m-right pt-xs">
63 <input type="color" data-default="#206ea7" data-current="{{ setting('app-color') }}" value="{{ setting('app-color') }}" name="setting-app-color" id="setting-app-color" placeholder="#206ea7">
64 <input type="hidden" value="{{ setting('app-color-light') }}" name="setting-app-color-light" id="setting-app-color-light">
66 <button type="button" class="text-button text-muted mt-s" setting-app-color-picker-default>{{ trans('common.default') }}</button>
67 <span class="sep">|</span>
68 <button type="button" class="text-button text-muted mt-s" setting-app-color-picker-reset>{{ trans('common.reset') }}</button>
77 <label class="setting-list-label">{{ trans('settings.content_colors') }}</label>
78 <p class="small">{!! trans('settings.content_colors_desc') !!}</p>
80 <div class="grid half pt-m">
82 @include('settings.parts.setting-entity-color-picker', ['type' => 'bookshelf'])
83 @include('settings.parts.setting-entity-color-picker', ['type' => 'book'])
84 @include('settings.parts.setting-entity-color-picker', ['type' => 'chapter'])
87 @include('settings.parts.setting-entity-color-picker', ['type' => 'page'])
88 @include('settings.parts.setting-entity-color-picker', ['type' => 'page-draft'])
93 <div homepage-control id="homepage-control" class="grid half gap-xl items-center">
95 <label for="setting-app-homepage-type" class="setting-list-label">{{ trans('settings.app_homepage') }}</label>
96 <p class="small">{{ trans('settings.app_homepage_desc') }}</p>
99 <select name="setting-app-homepage-type" id="setting-app-homepage-type">
100 <option @if(setting('app-homepage-type') === 'default') selected @endif value="default">{{ trans('common.default') }}</option>
101 <option @if(setting('app-homepage-type') === 'books') selected @endif value="books">{{ trans('entities.books') }}</option>
102 <option @if(setting('app-homepage-type') === 'bookshelves') selected @endif value="bookshelves">{{ trans('entities.shelves') }}</option>
103 <option @if(setting('app-homepage-type') === 'page') selected @endif value="page">{{ trans('entities.pages_specific') }}</option>
106 <div page-picker-container style="display: none;" class="mt-m">
107 @include('settings.parts.page-picker', ['name' => 'setting-app-homepage', 'placeholder' => trans('settings.app_homepage_select'), 'value' => setting('app-homepage')])
113 <label for="setting-app-privacy-link" class="setting-list-label">{{ trans('settings.app_footer_links') }}</label>
114 <p class="small mb-m">{{ trans('settings.app_footer_links_desc') }}</p>
115 @include('settings.parts.footer-links', ['name' => 'setting-app-footer-links', 'value' => setting('app-footer-links', [])])
120 <label for="setting-app-custom-head" class="setting-list-label">{{ trans('settings.app_custom_html') }}</label>
121 <p class="small">{{ trans('settings.app_custom_html_desc') }}</p>
123 <textarea component="code-textarea"
124 option:code-textarea:mode="html"
125 name="setting-app-custom-head"
126 id="setting-app-custom-head"
127 class="simple-code-input">{{ setting('app-custom-head', '') }}</textarea>
129 <p class="small text-right">{{ trans('settings.app_custom_html_disabled_notice') }}</p>
135 <div class="form-group text-right">
136 <button type="submit" class="button">{{ trans('settings.settings_save') }}</button>
141 @section('after-content')
142 @include('entities.selector-popup', ['entityTypes' => 'page'])