2016-03-13 09:30:47 -04:00
|
|
|
<div id="image-manager" image-type="{{ $imageType }}" ng-controller="ImageManagerController" uploaded-to="{{ $uploaded_to or 0 }}">
|
2017-08-06 16:08:03 -04:00
|
|
|
<div overlay ng-cloak ng-click="hide()">
|
2016-08-30 15:05:59 -04:00
|
|
|
<div class="popup-body" ng-click="$event.stopPropagation()">
|
|
|
|
|
|
|
|
<div class="popup-header primary-background">
|
2016-12-31 09:27:40 -05:00
|
|
|
<div class="popup-title">{{ trans('components.image_select') }}</div>
|
2017-08-06 16:08:03 -04:00
|
|
|
<button class="overlay-close neg corner-button button">x</button>
|
2016-08-30 15:05:59 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex-fill image-manager-body">
|
|
|
|
|
|
|
|
<div class="image-manager-content">
|
|
|
|
<div ng-if="imageType === 'gallery'" class="container">
|
|
|
|
<div class="image-manager-header row faded-small nav-tabs">
|
2016-12-31 09:27:40 -05:00
|
|
|
<div class="col-xs-4 tab-item" title="{{ trans('components.image_all_title') }}" ng-class="{selected: (view=='all')}" ng-click="setView('all')"><i class="zmdi zmdi-collection-image"></i> {{ trans('components.image_all') }}</div>
|
|
|
|
<div class="col-xs-4 tab-item" title="{{ trans('components.image_book_title') }}" ng-class="{selected: (view=='book')}" ng-click="setView('book')"><i class="zmdi zmdi-book text-book"></i> {{ trans('entities.book') }}</div>
|
|
|
|
<div class="col-xs-4 tab-item" title="{{ trans('components.image_page_title') }}" ng-class="{selected: (view=='page')}" ng-click="setView('page')"><i class="zmdi zmdi-file-text text-page"></i> {{ trans('entities.page') }}</div>
|
2016-08-30 15:05:59 -04:00
|
|
|
</div>
|
2016-04-03 09:59:54 -04:00
|
|
|
</div>
|
2016-08-30 15:05:59 -04:00
|
|
|
<div ng-show="view === 'all'" >
|
|
|
|
<form ng-submit="searchImages()" class="contained-search-box">
|
2016-12-31 09:27:40 -05:00
|
|
|
<input type="text" placeholder="{{ trans('components.image_search_hint') }}" ng-model="searchTerm">
|
2016-12-04 09:08:04 -05:00
|
|
|
<button ng-class="{active: searching}" title="{{ trans('common.search_clear') }}" type="button" ng-click="cancelSearch()" class="text-button cancel"><i class="zmdi zmdi-close-circle-o"></i></button>
|
|
|
|
<button title="{{ trans('common.search') }}" class="text-button" type="submit"><i class="zmdi zmdi-search"></i></button>
|
2016-08-30 15:05:59 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="image-manager-list">
|
|
|
|
<div ng-repeat="image in images">
|
|
|
|
<div class="image anim fadeIn" ng-style="{animationDelay: ($index > 26) ? '160ms' : ($index * 25) + 'ms'}"
|
|
|
|
ng-class="{selected: (image==selectedImage)}" ng-click="imageSelect(image)">
|
|
|
|
<img ng-src="@{{image.thumbs.gallery}}" ng-attr-alt="@{{image.title}}" ng-attr-title="@{{image.name}}">
|
|
|
|
<div class="image-meta">
|
|
|
|
<span class="name" ng-bind="image.name"></span>
|
2016-12-31 09:27:40 -05:00
|
|
|
<span class="date">{{ trans('components.image_uploaded', ['uploadedDate' => "{{ getDate(image.created_at) }" . "}"]) }}</span>
|
2016-08-30 15:05:59 -04:00
|
|
|
</div>
|
2016-02-07 05:14:11 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-31 09:27:40 -05:00
|
|
|
<div class="load-more" ng-show="hasMore" ng-click="fetchData()">{{ trans('components.image_load_more') }}</div>
|
2015-12-30 13:38:18 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-08-30 15:05:59 -04:00
|
|
|
<div class="image-manager-sidebar">
|
|
|
|
<div class="inner">
|
2015-12-30 13:38:18 -05:00
|
|
|
|
2016-08-30 15:05:59 -04:00
|
|
|
<div class="image-manager-details anim fadeIn" ng-show="selectedImage">
|
2015-12-30 13:38:18 -05:00
|
|
|
|
2016-08-30 15:05:59 -04:00
|
|
|
<form ng-submit="saveImageDetails($event)">
|
|
|
|
<div>
|
|
|
|
<a ng-href="@{{selectedImage.url}}" target="_blank" style="display: block;">
|
|
|
|
<img ng-src="@{{selectedImage.thumbs.gallery}}" ng-attr-alt="@{{selectedImage.title}}" ng-attr-title="@{{selectedImage.name}}">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-12-31 09:27:40 -05:00
|
|
|
<label for="name">{{ trans('components.image_image_name') }}</label>
|
2016-08-30 15:05:59 -04:00
|
|
|
<input type="text" id="name" name="name" ng-model="selectedImage.name">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div ng-show="dependantPages">
|
|
|
|
<p class="text-neg text-small">
|
2016-12-31 09:27:40 -05:00
|
|
|
{{ trans('components.image_delete_confirm') }}
|
2016-08-30 15:05:59 -04:00
|
|
|
</p>
|
|
|
|
<ul class="text-neg">
|
|
|
|
<li ng-repeat="page in dependantPages">
|
|
|
|
<a ng-href="@{{ page.url }}" target="_blank" class="text-neg" ng-bind="page.name"></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clearfix">
|
|
|
|
<form class="float left" ng-submit="deleteImage($event)">
|
2016-09-03 05:32:14 -04:00
|
|
|
<button class="button icon neg"><i class="zmdi zmdi-delete"></i></button>
|
2016-08-30 15:05:59 -04:00
|
|
|
</form>
|
|
|
|
<button class="button pos anim fadeIn float right" ng-show="selectedImage" ng-click="selectButtonClick()">
|
2016-12-31 09:27:40 -05:00
|
|
|
<i class="zmdi zmdi-square-right"></i>{{ trans('components.image_select_image') }}
|
2016-08-30 15:05:59 -04:00
|
|
|
</button>
|
|
|
|
</div>
|
2015-12-30 13:38:18 -05:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2016-12-31 09:27:40 -05:00
|
|
|
<drop-zone message="{{ trans('components.image_dropzone') }}" upload-url="@{{getUploadUrl()}}" uploaded-to="@{{uploadedTo}}" event-success="uploadSuccess"></drop-zone>
|
2015-12-30 13:38:18 -05:00
|
|
|
|
2016-08-30 15:05:59 -04:00
|
|
|
|
|
|
|
</div>
|
2015-12-30 13:38:18 -05:00
|
|
|
</div>
|
|
|
|
|
2016-08-30 15:05:59 -04:00
|
|
|
|
|
|
|
|
2015-12-30 13:38:18 -05:00
|
|
|
</div>
|
2016-08-30 15:05:59 -04:00
|
|
|
|
2015-12-30 13:38:18 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|