mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
98 lines
5.3 KiB
PHP
98 lines
5.3 KiB
PHP
<div components="image-manager dropzone"
|
|
option:dropzone:url="{{ url('/images/gallery?' . http_build_query(['uploaded_to' => $uploaded_to ?? 0])) }}"
|
|
option:dropzone:success-message="{{ trans('components.image_upload_success') }}"
|
|
option:dropzone:error-message="{{ trans('errors.image_upload_error') }}"
|
|
option:dropzone:upload-limit="{{ config('app.upload_limit') }}"
|
|
option:dropzone:upload-limit-message="{{ trans('errors.server_upload_limit') }}"
|
|
option:dropzone:zone-text="{{ trans('components.image_dropzone_drop') }}"
|
|
option:dropzone:file-accept="image/*"
|
|
option:dropzone:allow-multiple="true"
|
|
option:image-manager:uploaded-to="{{ $uploaded_to ?? 0 }}"
|
|
class="image-manager">
|
|
|
|
<div component="popup"
|
|
refs="image-manager@popup"
|
|
class="popup-background">
|
|
<div class="popup-body" tabindex="-1">
|
|
|
|
<div class="popup-header primary-background">
|
|
<div class="popup-title">{{ trans('components.image_select') }}</div>
|
|
<button refs="dropzone@selectButton image-manager@uploadButton" type="button">
|
|
<span>@icon('upload')</span>
|
|
<span>{{ trans('components.image_upload') }}</span>
|
|
</button>
|
|
<button refs="popup@hide" type="button" class="popup-header-close">@icon('close')</button>
|
|
</div>
|
|
|
|
<div refs="dropzone@drop-target" class="flex-fill image-manager-body">
|
|
<div class="image-manager-content">
|
|
<div class="image-manager-filter-bar flex-container-row justify-space-between">
|
|
<div class="primary-background image-manager-filter-bar-bg"></div>
|
|
<div>
|
|
<form refs="image-manager@searchForm" class="contained-search-box">
|
|
<input refs="image-manager@searchInput"
|
|
placeholder="{{ trans('components.image_search_hint') }}"
|
|
type="text">
|
|
<button refs="image-manager@cancelSearch"
|
|
title="{{ trans('common.search_clear') }}"
|
|
type="button"
|
|
class="cancel">@icon('close')</button>
|
|
<button type="submit"
|
|
title="{{ trans('common.search') }}">@icon('search')</button>
|
|
</form>
|
|
</div>
|
|
<div class="tab-container bordered tab-primary">
|
|
<div role="tablist" class="image-manager-filters flex-container-row">
|
|
<button refs="image-manager@filterTabs"
|
|
data-filter="all"
|
|
role="tab"
|
|
aria-selected="true"
|
|
type="button"
|
|
title="{{ trans('components.image_all_title') }}">@icon('images')</button>
|
|
<button refs="image-manager@filterTabs"
|
|
data-filter="book"
|
|
role="tab"
|
|
aria-selected="false"
|
|
type="button"
|
|
title="{{ trans('components.image_book_title') }}">@icon('book', ['class' => 'svg-icon'])</button>
|
|
<button refs="image-manager@filterTabs"
|
|
data-filter="page"
|
|
role="tab"
|
|
aria-selected="false"
|
|
type="button"
|
|
title="{{ trans('components.image_page_title') }}">@icon('page', ['class' => 'svg-icon'])</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div refs="image-manager@listContainer" class="image-manager-list"></div>
|
|
<div refs="image-manager@loadMore" class="load-more" hidden>
|
|
<button type="button" class="button small outline">Load More</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="image-manager-sidebar flex-container-column">
|
|
|
|
<div refs="image-manager@dropzoneContainer">
|
|
<div refs="dropzone@status-area"></div>
|
|
</div>
|
|
|
|
<div refs="image-manager@form-container-placeholder" class="p-m text-small text-muted">
|
|
<p>{{ trans('components.image_intro') }}</p>
|
|
<p refs="image-manager@upload-hint">{{ trans('components.image_intro_upload') }}</p>
|
|
</div>
|
|
|
|
<div refs="image-manager@formContainer" class="inner flex">
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="popup-footer">
|
|
<button refs="image-manager@selectButton" type="button" class="hidden button">
|
|
{{ trans('components.image_select_image') }}
|
|
</button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div> |