+
+
+
+ @include('components.toggle-switch', ['name' => 'setting-app-name-header', 'value' => setting('app-name-header')])
+
+
+
+ @include('components.toggle-switch', ['name' => 'setting-app-public', 'value' => setting('app-public')])
+
+
+
+
+
+
+
+
+
+
{{ trans('settings.app_homepage_desc') }}
+ @include('components.page-picker', ['name' => 'setting-app-homepage', 'placeholder' => trans('settings.app_homepage_default'), 'value' => setting('app-homepage')])
+
+
-
-
-
-
-
+
+
+
+
+
@icon('users-add') {{ trans('settings.reg_settings') }}
+
-
+
-
-
-
-
- BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }}
-
-
-
-
-@include('partials/image-manager', ['imageType' => 'system'])
+@include('components.image-manager', ['imageType' => 'system'])
+@include('components.entity-selector-popup', ['entityTypes' => 'page'])
@stop
@@ -128,14 +163,21 @@
var hexVal = '#' + this.color.colors.HEX;
var rgb = this.color.colors.RND.rgb;
var rgbLightVal = 'rgba('+ [rgb.r, rgb.g, rgb.b, '0.15'].join(',') +')';
+
// Set textbox color to hex color code.
var isEmpty = $.trim($elm.val()).length === 0;
if (!isEmpty) $elm.val(hexVal);
$('#setting-app-color-light').val(isEmpty ? '' : rgbLightVal);
- // Set page elements to provide preview
- $('#header, .image-picker .button').attr('style', 'background-color:'+ hexVal+'!important;');
- $('.faded-small').css('background-color', rgbLightVal);
- $('.setting-nav a.selected').css('border-bottom-color', hexVal + '!important');
+
+ var customStyles = document.getElementById('custom-styles');
+ var oldColor = customStyles.getAttribute('data-color');
+ var oldColorLight = customStyles.getAttribute('data-color-light');
+
+ customStyles.innerHTML = customStyles.innerHTML.split(oldColor).join(hexVal);
+ customStyles.innerHTML = customStyles.innerHTML.split(oldColorLight).join(rgbLightVal);
+
+ customStyles.setAttribute('data-color', hexVal);
+ customStyles.setAttribute('data-color-light', rgbLightVal);
}
});