2023-04-25 20:10:25 +08:00
|
|
|
<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') }}"
|
2023-04-26 23:41:34 +08:00
|
|
|
option:dropzone:error-message="{{ trans('errors.image_upload_error') }}"
|
2023-04-25 20:10:25 +08:00
|
|
|
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') }}"
|
2023-04-25 23:41:39 +08:00
|
|
|
option:dropzone:file-accept="image/*"
|
2023-05-22 21:19:18 +08:00
|
|
|
option:dropzone:allow-multiple="true"
|
2020-07-25 07:20:58 +08:00
|
|
|
option:image-manager:uploaded-to="{{ $uploaded_to ?? 0 }}"
|
|
|
|
class="image-manager">
|
2019-07-06 21:52:25 +08:00
|
|
|
|
2020-07-25 07:20:58 +08:00
|
|
|
<div component="popup"
|
|
|
|
refs="image-manager@popup"
|
|
|
|
class="popup-background">
|
|
|
|
<div class="popup-body" tabindex="-1">
|
2016-08-31 03:05:59 +08:00
|
|
|
|
|
|
|
<div class="popup-header primary-background">
|
2016-12-31 22:27:40 +08:00
|
|
|
<div class="popup-title">{{ trans('components.image_select') }}</div>
|
2023-04-26 21:23:28 +08:00
|
|
|
<button refs="dropzone@selectButton image-manager@uploadButton" type="button">
|
2023-04-25 20:10:25 +08:00
|
|
|
<span>@icon('upload')</span>
|
|
|
|
<span>{{ trans('components.image_upload') }}</span>
|
|
|
|
</button>
|
2023-05-29 23:21:44 +08:00
|
|
|
<button refs="popup@hide"
|
|
|
|
type="button"
|
|
|
|
title="{{ trans('common.close') }}"
|
|
|
|
class="popup-header-close">@icon('close')</button>
|
2016-08-31 03:05:59 +08:00
|
|
|
</div>
|
|
|
|
|
2023-05-27 23:58:10 +08:00
|
|
|
<div component="tabs"
|
|
|
|
option:tabs:active-under="880"
|
|
|
|
refs="dropzone@drop-target"
|
|
|
|
class="flex-container-column image-manager-body">
|
|
|
|
<div class="tab-container">
|
|
|
|
<div role="tablist" class="hide-over-m mb-none">
|
|
|
|
<button id="image-manager-list-tab"
|
|
|
|
aria-selected="true"
|
|
|
|
aria-controls="image-manager-list"
|
2023-05-28 18:37:49 +08:00
|
|
|
role="tab">{{ trans('components.image_list') }}</button>
|
2023-05-27 23:58:10 +08:00
|
|
|
<button id="image-manager-info-tab"
|
|
|
|
aria-selected="true"
|
|
|
|
aria-controls="image-manager-info"
|
2023-05-28 18:37:49 +08:00
|
|
|
role="tab">{{ trans('components.image_details') }}</button>
|
2023-05-27 23:58:10 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-29 22:50:36 +08:00
|
|
|
<div class="flex-container-row flex-fill flex">
|
2023-05-27 23:58:10 +08:00
|
|
|
<div id="image-manager-list"
|
|
|
|
tabindex="0"
|
|
|
|
role="tabpanel"
|
|
|
|
aria-labelledby="image-manager-list-tab"
|
|
|
|
class="image-manager-content">
|
|
|
|
<div class="image-manager-filter-bar flex-container-row wrap justify-space-between">
|
|
|
|
<div class="primary-background image-manager-filter-bar-bg"></div>
|
|
|
|
<div>
|
2023-05-29 23:21:44 +08:00
|
|
|
<form refs="image-manager@searchForm" role="search" class="contained-search-box floating mx-m my-s">
|
2023-05-27 23:58:10 +08:00
|
|
|
<input refs="image-manager@searchInput"
|
|
|
|
placeholder="{{ trans('components.image_search_hint') }}"
|
2023-05-29 23:21:44 +08:00
|
|
|
type="search">
|
2023-05-27 23:58:10 +08:00
|
|
|
<button refs="image-manager@cancelSearch"
|
|
|
|
title="{{ trans('common.search_clear') }}"
|
|
|
|
type="button"
|
2023-05-28 18:37:49 +08:00
|
|
|
hidden="hidden"
|
2023-05-27 23:58:10 +08:00
|
|
|
class="cancel">@icon('close')</button>
|
|
|
|
<button type="submit"
|
|
|
|
title="{{ trans('common.search') }}">@icon('search')</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2023-05-29 22:50:36 +08:00
|
|
|
<div class="tab-container bordered mx-m my-s">
|
|
|
|
<div role="tablist" class="image-manager-filters flex-container-row mb-none">
|
2023-05-27 23:58:10 +08:00
|
|
|
<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>
|
2023-05-26 21:30:59 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-27 23:58:10 +08:00
|
|
|
<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>
|
2016-08-31 03:05:59 +08:00
|
|
|
</div>
|
2015-12-31 02:38:18 +08:00
|
|
|
|
2023-05-27 23:58:10 +08:00
|
|
|
<div id="image-manager-info"
|
|
|
|
tabindex="0"
|
|
|
|
role="tabpanel"
|
|
|
|
aria-labelledby="image-manager-info-tab"
|
|
|
|
class="image-manager-sidebar flex-container-column">
|
2015-12-31 02:38:18 +08:00
|
|
|
|
2023-05-27 23:58:10 +08:00
|
|
|
<div refs="image-manager@dropzoneContainer">
|
|
|
|
<div refs="dropzone@status-area"></div>
|
|
|
|
</div>
|
2023-04-25 20:10:25 +08:00
|
|
|
|
2023-05-27 23:58:10 +08:00
|
|
|
<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>
|
2018-05-13 19:07:38 +08:00
|
|
|
|
2023-05-27 23:58:10 +08:00
|
|
|
<div refs="image-manager@formContainer" class="inner flex">
|
|
|
|
</div>
|
2023-04-25 20:10:25 +08:00
|
|
|
</div>
|
2015-12-31 02:38:18 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-31 03:05:59 +08:00
|
|
|
|
2022-06-21 06:02:06 +08:00
|
|
|
<div class="popup-footer">
|
|
|
|
<button refs="image-manager@selectButton" type="button" class="hidden button">
|
|
|
|
{{ trans('components.image_select_image') }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
2015-12-31 02:38:18 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|