mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Compacted entity color options in settings view
- Also extracted the view code into it's own blade template - Made smaller color input styles
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
{{--
|
||||
@type - Name of entity type
|
||||
--}}
|
||||
<div setting-color-picker class="grid no-break half mb-l">
|
||||
<div>
|
||||
<label for="setting-{{ $type }}-color" class="text-dark">{{ trans('settings.'. str_replace('-', '_', $type) .'_color') }}</label>
|
||||
<button type="button" class="text-button text-muted" setting-color-picker-default>{{ trans('common.default') }}</button>
|
||||
<span class="sep mx-xs">|</span>
|
||||
<button type="button" class="text-button text-muted" setting-color-picker-reset>{{ trans('common.reset') }}</button>
|
||||
</div>
|
||||
<div>
|
||||
<input type="color"
|
||||
data-default="{{ config('setting-defaults.'. $type .'-color') }}"
|
||||
data-current="{{ setting($type .'-color') }}"
|
||||
value="{{ setting($type .'-color') }}"
|
||||
name="setting-{{ $type }}-color"
|
||||
id="setting-{{ $type }}-color"
|
||||
placeholder="{{ config('setting-defaults.'. $type .'-color') }}"
|
||||
class="small">
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user