2017-04-10 17:29:45 +01:00
|
|
|
<div role="tabpanel" class="tab-pane{{ $active_tab == 'photos' ? ' active' : '' }}" id="photos-tab">
|
|
|
|
@if (count($photos) == 0)
|
|
|
|
<div class="text-center" style="margin-top: 30px;">
|
|
|
|
<h4 class="text-danger"><b>@lang('admin.album_no_photos_p1')</b></h4>
|
2017-04-18 17:25:27 +01:00
|
|
|
|
|
|
|
@if (Gate::check('upload-photos', $album))
|
|
|
|
<p>@lang('admin.album_no_photos_p2')</p>
|
|
|
|
<p style="margin-top: 30px;"><button class="btn btn-lg btn-success" v-on:click="switchToUploadTab"><i class="fa fa-fw fa-upload"></i> @lang('admin.album_no_photos_button')</button></p>
|
|
|
|
@else
|
|
|
|
<p>@lang('admin.album_no_photos_p2_no_upload')</p>
|
|
|
|
@endif
|
2017-04-10 17:29:45 +01:00
|
|
|
</div>
|
|
|
|
@else
|
2017-09-04 20:56:30 +01:00
|
|
|
<form action="{{ route('photos.updateBulk', [$album->id, 'page' => Request::get('page', 1)]) }}" method="POST">
|
2017-04-10 17:29:45 +01:00
|
|
|
{{ csrf_field() }}
|
|
|
|
{{ method_field('PUT') }}
|
|
|
|
|
|
|
|
@foreach ($photos as $photo)
|
|
|
|
@include (Theme::viewName('partials.single_photo_admin'))
|
|
|
|
@endforeach
|
|
|
|
|
2017-04-16 09:00:57 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6 mb-3">
|
|
|
|
<p style="margin-bottom: 15px;">
|
|
|
|
<button v-on:click="selectAll" type="button" class="btn btn-secondary">@lang('admin.select_all_action')</button>
|
|
|
|
<button v-on:click="selectNone" type="button" class="btn btn-secondary">@lang('admin.select_none_action')</button>
|
|
|
|
</p>
|
|
|
|
<input v-model="selectAllInAlbum" type="hidden" name="select-all-album"/>
|
2017-04-10 17:29:45 +01:00
|
|
|
|
2017-04-16 09:00:57 +01:00
|
|
|
<div v-if="selectAllInAlbum" class="alert alert-warning">
|
|
|
|
@lang('admin.select_all_album_active')
|
|
|
|
</div>
|
2017-04-10 17:29:45 +01:00
|
|
|
|
2017-04-16 09:00:57 +01:00
|
|
|
<p><label class="control-label" for="bulk-action">@lang('forms.bulk_edit_photos_label')</label></p>
|
|
|
|
<input type="hidden" name="new-album-id" value="{{ $album->id }}"/>
|
|
|
|
<select name="bulk-action" v-model="bulkModifyMethod">
|
|
|
|
<option>@lang('forms.bulk_edit_photos_placeholder')</option>
|
|
|
|
@foreach ($bulk_actions as $key => $value)
|
|
|
|
<option value="{{ $key }}"{{ $key == old('bulk-action') ? ' selected="selected"' : '' }}>{{ $value }}</option>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
<button type="submit" class="btn btn-sm btn-primary" name="bulk-apply" value="clicked" v-on:click="bulkModifySelected">@lang('forms.apply_action')</button>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6 text-right">
|
|
|
|
<button type="submit" class="btn btn-success">@lang('forms.save_action')</button>
|
|
|
|
</div>
|
2017-04-10 17:29:45 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
{{ $photos->links() }}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|