mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 22:13:26 +08:00
6ee35f55cc
Also adjusted default cover image size
17 lines
1.1 KiB
PHP
17 lines
1.1 KiB
PHP
<div class="image-picker" image-picker="{{$name}}" data-default-image="{{ $defaultImage }}" data-resize-height="{{ $resizeHeight }}" data-resize-width="{{ $resizeWidth }}" data-current-id="{{ $currentId or '' }}" data-resize-crop="{{ $resizeCrop or '' }}">
|
|
|
|
<div>
|
|
<img @if($currentImage && $currentImage !== 'none') src="{{$currentImage}}" @else src="{{$defaultImage}}" @endif class="{{$imageClass}} @if($currentImage=== 'none') none @endif" alt="{{ trans('components.image_preview') }}">
|
|
</div>
|
|
|
|
<button class="button" type="button" data-action="show-image-manager">{{ trans('components.image_select_image') }}</button>
|
|
<br>
|
|
<button class="text-button" data-action="reset-image" type="button">{{ trans('common.reset') }}</button>
|
|
|
|
@if ($showRemove)
|
|
<span class="sep">|</span>
|
|
<button class="text-button neg" data-action="remove-image" type="button">{{ trans('common.remove') }}</button>
|
|
@endif
|
|
|
|
<input type="hidden" name="{{$name}}" id="{{$name}}" value="{{ isset($currentId) && ($currentId !== 0 && $currentId !== false) ? $currentId : $currentImage}}">
|
|
</div> |